Skip to content

Recurring Scheduled Resource Creation Support#80

Merged
yunussandikci merged 5 commits intomainfrom
scheduledresource-v1alpha2
Aug 11, 2024
Merged

Recurring Scheduled Resource Creation Support#80
yunussandikci merged 5 commits intomainfrom
scheduledresource-v1alpha2

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
@github-actions
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
@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