Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kubernetes): non-string annotation values cause the annotation map in a manifest's Go representation to be empty #175

Merged

Conversation

alice485
Copy link
Contributor

@alice485 alice485 commented Jan 9, 2024

Kubernetes expects manifest annotations to be a map with string values. This PR resolves the bug indirectly discovered in this issue by forcing all non-string annotations to string type when converting to a kubernetes unstructured.Unstructured object.

Failure because annotations were getting cleared out, thus strategy.spinnaker.io/replace was missing:

Screenshot 2024-01-09 at 5 04 22 PM

Successful deployment after fix:

Screenshot 2024-01-09 at 5 04 53 PM

@alice485 alice485 merged commit 96ece6f into master Jan 10, 2024
1 check passed
@alice485 alice485 deleted the CN-2578-go-clouddriver-metadata-annotations-max-256-k-size-bug branch January 10, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants