You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argo CD returns an error. Similar to kubectl saying that Kubernetes manifest is not valid.
kubectl apply -f manifests/manifest.yaml
Error from server (BadRequest): error when creating "manifests/manifest.yaml": CronTab in version "v1" cannot be handled as a CronTab: strict decoding error: unknown field "spec.thisfiledisnotallowed"
See the Workaround section for the UI behaviour I would expect.
Argo CD does client-side apply before deploying manifests which don't catch the error. As you said, the server-side apply would and is the future default.
❯ k apply -f cron-tab.yaml
customresourcedefinition.apiextensions.k8s.io/crontabs.stable.example.com created
❯ k apply --dry-run=client -f invalid-cron.yaml
crontab.stable.example.com/my-new-cron-object created (dry run)
I hit this issue too today, argoCD deployed an invalid k8s manifest in helm chart, and this invalid manifest failed with both kubectl create ... and helm install ... due to error below:
Error from server: error when creating "gw.yaml": admission webhook "validation.istio.io" denied the request: configuration is invalid: server config must contain at least one host
I hit this issue too today, argoCD deployed an invalid k8s manifest in helm chart, and this invalid manifest failed with both kubectl create ... and helm install ... due to error below:
Error from server: error when creating "gw.yaml": admission webhook "validation.istio.io" denied the request: configuration is invalid: server config must contain at least one host
Checklist:
argocd version
.Describe the bug
Argo CD swallows the error and applies invalid Kubernetes manifests. Which is inconsistent with kubectl and ServerSideApply behaviour.
To Reproduce
Apply new CRD
Put the manifest with invalid filed into your repo
Create Argo CD Application pointing to your repo with manifest
Click Sync in Argo CD UI.
Expected behavior
Argo CD returns an error. Similar to kubectl saying that Kubernetes manifest is not valid.
See the Workaround section for the UI behaviour I would expect.
Screenshots
Version
Logs
Workaround
Use server-side apply
Argo CD does not sync invalid manifest and returns a clear error.
The text was updated successfully, but these errors were encountered: