Resources with long manifests cannot be created due to too long last-applied-configuration annotation #1048
Labels
customer/feedback
Feedback from customers
last-applied-configuration
Issues related to the last-applied-configuration annotation
resolution/fixed
This issue was fixed
Problem description
As described in kubernetes/kubectl#712 and prometheus-operator/prometheus-operator#535, objects with long manifests cannot be created via
kubectl apply
, because it adds an annotationkubectl.kubernetes.io/last-applied-configuration
with whole content of the manifest.Errors & Logs
Affected product version(s)
pulumi 1.13.0
pulumi-kubernetes 1.6.0
Reproducing the issue
Suggestions for a fix
kubectl create
/kubectl replace
semantics. Potentially related to Remove undocumented invoke call #738Current workaround
provider_yaml = Provider('yaml', render_yaml_to_directory='resources/yaml')
kubectl create -f resources/yaml/999-manifest/
kubectl replace -f resources/yaml/999-manifest/
Script to remove annotations (uses
pyyaml
). Apologies for non-idiomatic python, I've just started using it:The text was updated successfully, but these errors were encountered: