Skip to content

Commit dbba2c1

Browse files
authored
Merge pull request kubernetes#91013 from soltysh/fix_createcronjob
Fix create cronjob help message
2 parents 6734266 + b2b5952 commit dbba2c1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/create/create_cronjob.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ var (
4141

4242
cronjobExample = templates.Examples(`
4343
# Create a cronjob
44-
kubectl create cronjob my-job --image=busybox
44+
kubectl create cronjob my-job --image=busybox --schedule="*/1 * * * *"
4545
4646
# Create a cronjob with command
47-
kubectl create cronjob my-job --image=busybox -- date
48-
49-
# Create a cronjob with schedule
50-
kubectl create cronjob test-job --image=busybox --schedule="*/1 * * * *"`)
47+
kubectl create cronjob my-job --image=busybox --schedule="*/1 * * * *" -- date`)
5148
)
5249

5350
type CreateCronJobOptions struct {

0 commit comments

Comments
 (0)