Skip to content

Commit 3c715ed

Browse files
Merge pull request #10 from FikaWorks/deprecate-exec-cronjob
docs: deprecate exec-cronjob in favor of kubectl create
2 parents d38573f + 1e3d3ca commit 3c715ed

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
@@ -40,6 +40,13 @@ Options:
4040

4141
### Exec cronjob
4242

43+
> DEPRECATION NOTICE:
44+
> This plugin isn't necessary anymore, the kubectl cli let you create
45+
> cronjob with the create subcommand:
46+
> ```
47+
> $ kubectl create job --from cronjob/my-cronjob my-job
48+
> ```
49+
4350
```bash
4451
# install the exec-cronjob plugins
4552
$ 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)