Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recurring Scheduled Resource Creation Support #80

Merged
merged 5 commits into from
Aug 11, 2024

Conversation

yunussandikci
Copy link
Contributor

@yunussandikci yunussandikci commented Aug 4, 2024

Hello 👋
This PR contains the following changes while dropping support for package v1alpha1 and adding support to v1alpha2.

  • [Feature] Recurring resource creation support by using crontab values.
    You can also still choose exact date(e.g. 2024-12-31T00:00:00Z) or duration (e.g. 10h).
Example: 
apiVersion: cloud.namecheap.com/v1alpha2
kind: ScheduledResource
metadata:
  name: example
spec:
  schedule: "*/5 * * * * * " # Every 5 second  
  ### OR
  schedule:  "TZ=America/Chicago * * * * *" # Every minute in Chicago TZ
  content: |
    apiVersion: v1
    .
    .
  • [Improvement] Last Run, Next Run and Schedule information added to Status of ScheduledResource for better visibility.
    Screenshot 2024-08-04 at 21 05 34

  • [Improvement] Linter and Mock Generator is updated.

TODO:

  • Update README.md

closes #46

@yunussandikci yunussandikci changed the title [Feature] Recurring Scheduled Resource Creation Support Recurring Scheduled Resource Creation Support Aug 4, 2024
Copy link

github-actions bot commented Aug 4, 2024

Go test coverage: 91.4% for commit ff4d0fd
View coverage for all packages
# Package Name                                                | Coverage
+ github.com/NCCloud/mayfly/pkg/common                        |    92.3%
+ github.com/NCCloud/mayfly/pkg/controllers/expiration        |    95.2%
+ github.com/NCCloud/mayfly/pkg/controllers/scheduledresource |    88.4%

@yunussandikci yunussandikci merged commit e693400 into main Aug 11, 2024
2 checks passed
@yunussandikci yunussandikci deleted the scheduledresource-v1alpha2 branch August 11, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for "every" for ScheduledResource
1 participant