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
A resource is deleted when the resource is updated with an invalid spec.
Expected behavior is the resource fails to update but not delete the existing resource.
To reproduce
Prior to change, verify resource exist
kubectl get svc -n zebrafinch zt-ms-zf-master-pre-release
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
zt-ms-zf-master-pre-release ClusterIP 192.168.122.47 <none> 443/TCP 24s
Then introduce invalid spec change, in this case an empty ports section for the Service Object
Once committed, the resource is deleted from the cluster even though the resource still exists in git and the update fails.
kubectl get svc -n zebrafinch zt-ms-zf-master-pre-release
Error from server (NotFound): services "zt-ms-zf-master-pre-release " not found
Event from the Kustomize Object states it cannot find the object because it deleted by Kustomize
caas-zerotouch-ms-zebrafinch-master 396d False Service/zebrafinch/zt-ms-zf-master-pre-release immutable field detected, failed to delete object, error: services "zt-ms-zf-master-pre-release" not found
A resource is deleted when the resource is updated with an invalid spec.
Expected behavior is the resource fails to update but not delete the existing resource.
To reproduce
Prior to change, verify resource exist
Then introduce invalid spec change, in this case an empty ports section for the Service Object
Once committed, the resource is deleted from the cluster even though the resource still exists in git and the update fails.
Event from the Kustomize Object states it cannot find the object because it deleted by Kustomize
Spec from Kustomize Object include Prune
Kustomize object still has resource in inventory
Kustomize Controller should not delete resource if it encounters invalid spec.
The text was updated successfully, but these errors were encountered: