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(gce): add partnerMetadata in instanceProperties for GCE deployment #6297

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

edgarulg
Copy link
Contributor

@edgarulg edgarulg commented Oct 17, 2024

Support partnerMetadata in GCE deployment. See https://cloud.google.com/compute/docs/metadata/overview#partner_attributes

Basically clouddriver will receive partnerMetadata from the execution context and it will add it in the instanceProperties if partnerMetadata is defined.

PartnerMetadata is a feature under Preview but clouddriver currently uses beta google compute client and it recognizes it.

If there is an error in the structure of the parterMetadata the deployment will fail and it will describe the error like the following:
Captura de pantalla 2024-10-17 a la(s) 2 04 04 p m

We can validate that the instance template & instance itself has the partnerMetadata by using the following beta command in gcloud.
gcloud beta compute instance-templates describe armorytests-v005-92753465 --view=FULL
gcloud beta compute instances describe armorytests-v005-5mxg --view=FULL

Issue related: spinnaker/spinnaker#6931

PartnerMetadata is available in clouddriver because the newer client version: spinnaker/kork#1208

@jasonmcintosh jasonmcintosh added the ready to merge Approved and ready for a merge label Oct 17, 2024
@jasonmcintosh
Copy link
Member

Just added the metadata to the objects... orca's the bigger area in a sense... not sure there's a good way to test parsing of fields on this kinda thing...

@mergify mergify bot added the auto merged Merged automatically by a bot label Oct 17, 2024
@mergify mergify bot merged commit aab2a60 into spinnaker:master Oct 17, 2024
24 checks passed
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 Approved and ready for a merge target-release/1.36
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants