-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(source cronjobs): Implementation of CronJobSource management
Contains create/delete/update/describe but not tests yet. Still todo: * Think how to provide a namespace for the sink * Support for more sinks * Synchronous mode for create & update * Add list (or implement "source list")
- Loading branch information
Showing
34 changed files
with
1,018 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## kn source cronjob | ||
|
||
Cronjob source command group | ||
|
||
### Synopsis | ||
|
||
Cronjob source command group | ||
|
||
``` | ||
kn source cronjob [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for cronjob | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string kn config file (default is $HOME/.kn/config.yaml) | ||
--kubeconfig string kubectl config file (default is $HOME/.kube/config) | ||
--log-http log http traffic | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [kn source](kn_source.md) - Event source command group | ||
* [kn source cronjob create](kn_source_cronjob_create.md) - Create a Cronjob source. | ||
* [kn source cronjob delete](kn_source_cronjob_delete.md) - Delete a Cronjob source. | ||
* [kn source cronjob describe](kn_source_cronjob_describe.md) - Describe a Cronjob source. | ||
* [kn source cronjob update](kn_source_cronjob_update.md) - Update a Cronjob source. | ||
|
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,42 @@ | ||
## kn source cronjob create | ||
|
||
Create a Cronjob source. | ||
|
||
### Synopsis | ||
|
||
Create a Cronjob source. | ||
|
||
``` | ||
kn source cronjob create NAME --schedule SCHEDULE --sink SINK --data DATA [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Create a crontab scheduler 'my-cron-trigger' which fires every minute and sends 'ping' to service 'mysvc' as a cloudevent | ||
kn source cronjob create my-cron-trigger --schedule "* * * * */1" --data "ping" --sink svc:mysvc | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-d, --data string String data to send | ||
-h, --help help for create | ||
-n, --namespace string Specify the namespace to operate in. | ||
--schedule string Schedule specification in crontab format (e.g. '* * * * */2' for every two minutes | ||
-s, --sink string Addressable sink for events | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string kn config file (default is $HOME/.kn/config.yaml) | ||
--kubeconfig string kubectl config file (default is $HOME/.kube/config) | ||
--log-http log http traffic | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [kn source cronjob](kn_source_cronjob.md) - Cronjob source command group | ||
|
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,39 @@ | ||
## kn source cronjob delete | ||
|
||
Delete a Cronjob source. | ||
|
||
### Synopsis | ||
|
||
Delete a Cronjob source. | ||
|
||
``` | ||
kn source cronjob delete NAME [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Delete a CronJob source 'my-cron-trigger' | ||
kn source cronjob delete my-cron-trigger | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for delete | ||
-n, --namespace string Specify the namespace to operate in. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string kn config file (default is $HOME/.kn/config.yaml) | ||
--kubeconfig string kubectl config file (default is $HOME/.kube/config) | ||
--log-http log http traffic | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [kn source cronjob](kn_source_cronjob.md) - Cronjob source command group | ||
|
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,40 @@ | ||
## kn source cronjob describe | ||
|
||
Describe a Cronjob source. | ||
|
||
### Synopsis | ||
|
||
Describe a Cronjob source. | ||
|
||
``` | ||
kn source cronjob describe NAME [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Describe a cronjob source with name 'my-cron-trigger' | ||
kn source cronjob describe my-cron-trigger | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for describe | ||
-n, --namespace string Specify the namespace to operate in. | ||
-v, --verbose More output. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string kn config file (default is $HOME/.kn/config.yaml) | ||
--kubeconfig string kubectl config file (default is $HOME/.kube/config) | ||
--log-http log http traffic | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [kn source cronjob](kn_source_cronjob.md) - Cronjob source command group | ||
|
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,42 @@ | ||
## kn source cronjob update | ||
|
||
Update a Cronjob source. | ||
|
||
### Synopsis | ||
|
||
Update a Cronjob source. | ||
|
||
``` | ||
kn source cronjob update NAME --schedule SCHEDULE --sink SERVICE --data DATA [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Update the schedule of a crontab source 'my-cron-trigger' to fire every minute | ||
kn source cronjob update my-cron-trigger --schedule "* * * * */1" | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-d, --data string String data to send | ||
-h, --help help for update | ||
-n, --namespace string Specify the namespace to operate in. | ||
--schedule string Schedule specification in crontab format (e.g. '* * * * */2' for every two minutes | ||
-s, --sink string Addressable sink for events | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string kn config file (default is $HOME/.kn/config.yaml) | ||
--kubeconfig string kubectl config file (default is $HOME/.kube/config) | ||
--log-http log http traffic | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [kn source cronjob](kn_source_cronjob.md) - Cronjob source command group | ||
|
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
Oops, something went wrong.