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(google): Add partner metadata on instanceTemplate properties #6334

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

edgarulg
Copy link
Contributor

@edgarulg edgarulg commented Jan 17, 2025

When cloning a server group using the UI. The resourceManagerTags and partnerMetadata are not populated even if the deployment is configured with resourceManagerTags and partnerMetadata.

In clouddriver we include the resourceManagerTags under the instanceTemplate properties but by default the partnerMetadata is not included. See https://cloud.google.com/sdk/gcloud/reference/beta/compute/instance-templates/list

The fix only set the view option to "FULL". This ensure the partnerMetadata is included in the instanceTemplate properties.

Deck PR: spinnaker/deck#10161

@@ -61,11 +61,13 @@ public GoogleComputeOperationRequest<Compute.InstanceTemplates.Insert> insert(
return requestFactory.wrapOperationRequest(request, "insert");
}

public PaginatedComputeRequest<Compute.InstanceTemplates.List, InstanceTemplate> list() {
public PaginatedComputeRequest<Compute.InstanceTemplates.List, InstanceTemplate> list(
String view) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this api used anywhere else? I see the one spot below in the abstract caching agent that passes a fixed value of "FULL", but no place else this list call is updated?

Copy link
Member

Choose a reason for hiding this comment

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

IF it's only ever called in that ONE operation - why not just add that as a fixed value here?

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.

2 participants