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
with the next commit the yaml file content changed because of a typo to apiVersion <-> piVersion - and the commit id is now master/f218296faac11060a98b6b3a9babfcaabf934553
{"level":"info","ts":"2022-01-20T12:03:48.030Z","logger":"controller.kustomization","msg":"server-side apply completed","reconciler group":"kustomize.toolkit.fluxcd.io","reconciler kind":"Kustomization","name":"central-crossplane-prod","namespace":"flux-system","output":{"Cluster/default/central-crossplane-prod":"unchanged","Configuration/crossplane-sop":"unchanged","ControllerConfig/provider-aws":"unchanged","Kustomization/flux-system/sources":"unchanged","Network/default/central-crossplane-prod-network":"unchanged","Provider/crossplane-provider-aws":"unchanged","ProviderConfig/aws-provider-1234567891012":"unchanged"}}{"level":"info","ts":"2022-01-20T12:03:48.030Z","logger":"controller.kustomization","msg":"server-side apply completed","reconciler group":"kustomize.toolkit.fluxcd.io","reconciler kind":"Kustomization","name":"central-crossplane-prod","namespace":"flux-system","output":{"Cluster/default/central-crossplane-prod":"unchanged","Configuration/crossplane-sop":"unchanged","ControllerConfig/provider-aws":"unchanged","Kustomization/flux-system/sources":"unchanged","Network/default/central-crossplane-prod-network":"unchanged","Provider/crossplane-provider-aws":"unchanged","ProviderConfig/aws-provider-1234567891012":"unchanged"}}{"level":"info","ts":"2022-01-20T12:03:48.041Z","logger":"controller.kustomization","msg":"Reconciliation finished in 1.985765791s, next run in 10m0s","reconciler group":"kustomize.toolkit.fluxcd.io","reconciler kind":"Kustomization","name":"central-crossplane-prod","namespace":"flux-system","revision":"master/f218296faac11060a98b6b3a9babfcaabf934553"}
in next reconcile loop we see that the resource is silently dropped - without an issue in kustomization build
error validating "STDIN": error validating data: apiVersion not set; if you choose to ignore these errors, turn validation off with --validate=false
Apply failed with 1 conflict: conflict with "kustomize-controller": .spec.ports
Please review the fields above--they currently have other managers. Here
are the ways you can resolve this warning:
* If you intend to manage all of these fields, please re-run the apply
command with the `--force-conflicts` flag.
* If you do not intend to manage all of the fields, please edit your
manifest to remove references to the fields that should keep their
current managers.
* You may co-own fields by updating your manifest to match the existing
value; in this case, you'll become the manager if the other manager(s)
stop managing the field (remove it from their configuration).
See https://kubernetes.io/docs/reference/using-api/server-side-apply/#conflicts
haarchri
changed the title
kustomization resources are silently dropped if there is an typo issue for apiVersion
kustomization resources are silently dropped if there is an typo an yaml is no valid kubernetes yaml anymore
Jan 20, 2022
kustomization resources are silently dropped if there is an typo an yaml is no valid kubernetes yaml anymore
let's say we have a repo with lot of yaml files and
kustomization.yaml
inside - and the commit id ismaster/db9bb76889ce22441f2e63e2d79702b97f4e35f1
we see the following in the logs - everything okay and expected:
{"level":"info","ts":"2022-01-20T11:03:48.030Z","logger":"controller.kustomization","msg":"server-side apply completed","reconciler group":"kustomize.toolkit.fluxcd.io","reconciler kind":"Kustomization","name":"central-crossplane-prod","namespace":"flux-system","output":{"Cluster/default/central-crossplane-prod":"unchanged","Configuration/crossplane-sop":"unchanged","ControllerConfig/provider-aws":"unchanged","Kustomization/flux-system/sources":"unchanged","Network/default/central-crossplane-prod-network":"unchanged","Provider/crossplane-provider-aws":"unchanged","ProviderConfig/aws-provider-1234567891012":"unchanged"}}
with the next commit the yaml file content changed because of a typo to
apiVersion
<->piVersion
- and the commit id is nowmaster/f218296faac11060a98b6b3a9babfcaabf934553
we see the following in the logs:
in next reconcile loop we see that the resource is silently dropped - without an issue in kustomization build
if we run the kustomization build locally we can see the following issue:
our kustomization looks like:
The text was updated successfully, but these errors were encountered: