-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recurring Scheduled Resource Creation Support (#80)
- Loading branch information
1 parent
b5afc84
commit e693400
Showing
30 changed files
with
452 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: expiration-example | ||
name: expiration-duration | ||
namespace: default | ||
annotations: | ||
mayfly.cloud.namecheap.com/expire: "50s" | ||
mayfly.cloud.namecheap.com/expire: "10s" | ||
data: | ||
.secret-file: dmFsdWUtMg0KDQo= |
2 changes: 1 addition & 1 deletion
2
examples/exact-expiration.yaml → examples/expiration-exact-date.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: cloud.namecheap.com/v1alpha2 | ||
kind: ScheduledResource | ||
metadata: | ||
name: scheduled-resource-cronjob | ||
spec: | ||
schedule: "*/10 * * * * *" # Creates every 10 second | ||
content: | | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: scheduled-resource-cronjob-example | ||
namespace: default | ||
data: | ||
.secret-file: dmFsdWUtMg0KDQo= |
8 changes: 4 additions & 4 deletions
8
examples/scheduled_resource.yaml → examples/scheduled-resource-duration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
apiVersion: cloud.namecheap.com/v1alpha1 | ||
apiVersion: cloud.namecheap.com/v1alpha2 | ||
kind: ScheduledResource | ||
metadata: | ||
name: scheduled-resource-example | ||
name: scheduled-resource-duration | ||
spec: | ||
in: "5s" | ||
schedule: "10s" # Creates in 10 seconds | ||
content: | | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: scheduled-resource-example | ||
name: scheduled-resource-duration-example | ||
namespace: default | ||
data: | ||
.secret-file: dmFsdWUtMg0KDQo= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: cloud.namecheap.com/v1alpha2 | ||
kind: ScheduledResource | ||
metadata: | ||
name: scheduled-resource-exact-date | ||
spec: | ||
schedule: "2024-12-31T00:00:00Z" # Creates at exact date | ||
content: | | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: scheduled-resource-exact-date-example | ||
namespace: default | ||
data: | ||
.secret-file: dmFsdWUtMg0KDQo= |
16 changes: 16 additions & 0 deletions
16
examples/scheduled-resource-with-expiration-combination.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: cloud.namecheap.com/v1alpha2 | ||
kind: ScheduledResource | ||
metadata: | ||
name: scheduled-resource-with-expiration-combination | ||
spec: | ||
schedule: "*/20 * * * * *" # Creates every 20 seconds | ||
content: | | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
generateName: scheduled-resource-with-expiration-combination-example- | ||
namespace: default | ||
annotations: | ||
mayfly.cloud.namecheap.com/expire: "10s" # Deletes in 10 seconds after created | ||
data: | ||
.secret-file: dmFsdWUtMg0KDQo= |
Oops, something went wrong.