lwolf / kube-cleanup-operator

Kubernetes Operator to automatically delete completed Jobs and their Pods
MIT License
503 stars 109 forks source link

validation error #3

Closed Laxman-SM closed 6 years ago

Laxman-SM commented 7 years ago

MacBook-Pro:kube-cleanup-operator itru$ kubectl create -f https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master/docs/concepts/workloads/controllers/job.yaml error: error validating "https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master/docs/concepts/workloads/controllers/job.yaml": error validating data: found invalid field backoffLimit for v1.JobSpec; if you choose to ignore these errors, turn validation off with --validate=false

after turning off this creating job successfully kubectl create -f https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master/docs/concepts/workloads/controllers/job.yaml --validate=false job "pi" created

Laxman-SM commented 7 years ago

Also remove kubectl create that mentioned twice in below command.

presents

Use simple job to test it

kubectl create -f kubectl create -f https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master/docs/concepts/workloads/controllers/job.yaml

After kubectl create -f https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master/docs/concepts/workloads/controllers/job.yaml

lwolf commented 7 years ago
  1. what version of k8s are you using?
  2. thanks for noticing
Laxman-SM commented 7 years ago

HI,

i am using 1.7.5 version.

lwolf commented 7 years ago

.spec.backoffLimit was added only in 1.8 Could you try to fetch that failing manifest, remove this field and try again?

lwolf commented 6 years ago

do you still have a problem with it?

Laxman-SM commented 6 years ago

Hi,

Sorry for delayed reply i will check and let you if in few days.


From: Sergey Nuzhdin notifications@github.com Sent: Friday, December 29, 2017 5:59:59 PM To: lwolf/kube-cleanup-operator Cc: Laxman Singh; Author Subject: Re: [lwolf/kube-cleanup-operator] validation error (#3)

do you still have a problem with it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/lwolf/kube-cleanup-operator/issues/3#issuecomment-354440301, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKHFnl7p7PmvrSO_p-3CSOHX9aHam9TIks5tFNtHgaJpZM4QKxa3.

Laxman-SM commented 6 years ago

Hi,

That working fine after removal of mentioned field.


From: Laxman Singh Rathore laxmansingh_m@hotmail.com Sent: Monday, January 1, 2018 12:12:35 PM To: lwolf/kube-cleanup-operator Subject: Re: [lwolf/kube-cleanup-operator] validation error (#3)

Hi,

Sorry for delayed reply i will check and let you if in few days.


From: Sergey Nuzhdin notifications@github.com Sent: Friday, December 29, 2017 5:59:59 PM To: lwolf/kube-cleanup-operator Cc: Laxman Singh; Author Subject: Re: [lwolf/kube-cleanup-operator] validation error (#3)

do you still have a problem with it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/lwolf/kube-cleanup-operator/issues/3#issuecomment-354440301, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKHFnl7p7PmvrSO_p-3CSOHX9aHam9TIks5tFNtHgaJpZM4QKxa3.

lwolf commented 6 years ago

great, closing now