Skip to content

Commit 1e3d3ca

Browse files
committed
docs: deprecate exec-cronjob in favor of kubctl create
1 parent f224972 commit 1e3d3ca

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ Options:
3939

4040
### Exec cronjob
4141

42+
> DEPRECATION NOTICE:
43+
> This plugin isn't necessary anymore, the kubectl cli let you create
44+
> cronjob with the create subcommand:
45+
> ```
46+
> $ kubectl create job --from cronjob/my-cronjob my-job
47+
> ```
48+
4249
```bash
4350
# install the exec-cronjob plugins
4451
$ kubectl krew install exec-cronjob

exec-cronjob/kubectl-exec_cronjob.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
set -e
66

77
function usage() {
8+
echo "DEPRECATION NOTICE:"
9+
echo "This plugin isn't necessary anymore, the kubectl cli let you create"
10+
echo "cronjob with the create subcommand:"
11+
echo " kubectl create job --from cronjob/my-cronjob my-job"
12+
echo ""
13+
echo ""
814
echo "Run a CronJob immediately as Job by extracting the Job spec and"
915
echo "creating a Job instance thereof."
1016
echo ""

0 commit comments

Comments
 (0)