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

Extend bosh tagging for cpi #2603

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DennisAhausSAP
Copy link

What is this change about?

This change provides the default runtime tags to the upload stemcell cpi call. With this a stemcell can be tagged when it is uploaded.

Please provide contextual information.

We wanted to have a possibility to tag all relevant and "bound" resources. With tags clean ups of cloud resources is much easier because it is clear which resources belong together and have certain tags how to handle them. In this PR we want to provide the tags for the cpi.

What tests have you run against this PR?

Unit tests

How should this change be described in bosh release notes?

Provides default runtime tags to the cpi when a stemmcell is created.

Does this PR introduce a breaking change?

No

Tag your pair, your PM, and/or team!

@anshrupani, @fmoehler

Copy link

linux-foundation-easycla bot commented Feb 10, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@DennisAhausSAP
Copy link
Author

The PR for the cpi changes will follow.

@@ -109,7 +109,16 @@ def perform
upload_suffix = ' (already exists, skipped)' unless needs_upload
track_and_log("Uploading stemcell #{@name}/#{@version} to the cloud#{cpi_suffix}#{upload_suffix}") do
if needs_upload
stemcell.cid = cloud.create_stemcell(@stemcell_image, @cloud_properties)
tags = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we put this part in a separate method?

Copy link
Author

Choose a reason for hiding this comment

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

You mean like get_tags() returning the tags hash?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah something like that would be nice I think, what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants