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

feat(google): add support for partnerMetadata in GCE servergroup #10150

Merged
merged 12 commits into from
Oct 21, 2024

Conversation

edgarulg
Copy link
Contributor

@edgarulg edgarulg commented Oct 18, 2024

Add Partner Metadata field in GCE server group.

Partner Metadata is a Key Value Pair but the value needs to be a JSON object. In order to achieve this format in UI I defined a new component in angular named mapObjectEditor. It provides a textarea for the value to allow user to write/paste their JSON object.
Captura de pantalla 2024-10-18 a la(s) 6 05 05 p m

Then, the partnerMetadata is included in the pipeline configuration as a JSON object. This is expected for the backend (clouddriver).
Captura de pantalla 2024-10-18 a la(s) 6 06 19 p m

Issue related: spinnaker/spinnaker#6931
clouddriver PR related: spinnaker/clouddriver#6297
Kork PR related: spinnaker/kork#1208

Copy link
Member

@christosarvanitis christosarvanitis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@edgarulg edgarulg added ready to merge Reviewed and ready for merge auto merged Merged automatically by a bot target-release/1.36 and removed auto merged Merged automatically by a bot target-release/1.36 labels Oct 21, 2024
@mergify mergify bot added the auto merged Merged automatically by a bot label Oct 21, 2024
@mergify mergify bot merged commit 6b004d3 into spinnaker:master Oct 21, 2024
4 checks passed
christosarvanitis pushed a commit to armory-io/deck that referenced this pull request Nov 12, 2024
…nnaker#10150)

* feat(google): add support for partnerMetadata in GCE servergroup

* feat(google): fix prettier issues

* feat(google): render JSON object as its string representation

* feat(google): update tests with textarea

* feat(google): fix prettier issue

* feat(google): move display logic to controller

* feat(google): fix tests

* feat(google): expect JSON string in test

* feat(google): use formatValueForDisplay in ng-model

* feat(google): define json-text directive to handle view

* feat(google): add space to JSON format

* feat(google): remove hiddenKeys test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Reviewed and ready for merge target-release/1.36
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants