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
Deploy two config maps, one with just the strategy.spinnaker.io/replace annotation and another with both annotations strategy.spinnaker.io/replace and strategy.spinnaker.io/max-version-history. Note that only the first removes the annotation kubectl.kubernetes.io/last-applied-configuration generated by kubectl on replace. The second config map still has this annotation, which for large config maps results in this error on replace:
error applying manifest (kind: ConfigMap, apiVersion: v1, name: test-v000): ConfigMap "test-v000" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
The text was updated successfully, but these errors were encountered:
it looks like when the max-version-history annotation (or really any numerical annotation) is added without explicit quotes on the value it gets parsed as an int when converted to JSON. So when the request makes it to go-clouddriver, any time Unstructured.GetAnnotations() is called, the below error occurs internally but gets ignored because that func doesn't examine the return values of NestedStringMap(). This causes the annotations to be reset to empty when go-clouddriver begins adding Spinnaker's reserved annotations.
.metadata.annotations accessor error: contains non-string key in the map: 10 is of the type int64, expected string
Deploy two config maps, one with just the
strategy.spinnaker.io/replace
annotation and another with both annotationsstrategy.spinnaker.io/replace
andstrategy.spinnaker.io/max-version-history
. Note that only the first removes the annotationkubectl.kubernetes.io/last-applied-configuration
generated by kubectl on replace. The second config map still has this annotation, which for large config maps results in this error on replace:The text was updated successfully, but these errors were encountered: