-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Labels
schemaschema issue that should be raised at https://github.com/instrumenta/kubernetes-json-schemaschema issue that should be raised at https://github.com/instrumenta/kubernetes-json-schema
Description
We have some Job configuration and we expect kubeval to stop us if developers provide wrong settings. However, kubeval (0.15.0) simply ignored and at the final step we got an error with helm upgrade
Error: UPGRADE FAILED: failed to create resource: Job.batch "foo-tw-232-tre-two-worker-job" is invalid:
spec.template.spec.restartPolicy: Unsupported value: "Always": supported values: "OnFailure", "Never"
helm.go:84: [debug] Job.batch "foo-tw-232-tre-two-worker-job" is invalid:
spec.template.spec.restartPolicy: Unsupported value: "Always": supported values: "OnFailure", "Never"
failed to create resource
helm.sh/helm/v3/pkg/kube.(*Client).Update.func1
/home/circleci/helm.sh/helm/pkg/kube/client.go:190
helm.sh/helm/v3/pkg/kube.ResourceList.Visit
/home/circleci/helm.sh/helm/pkg/kube/resour
Metadata
Metadata
Assignees
Labels
schemaschema issue that should be raised at https://github.com/instrumenta/kubernetes-json-schemaschema issue that should be raised at https://github.com/instrumenta/kubernetes-json-schema