-
Notifications
You must be signed in to change notification settings - Fork 657
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
base: main
Are you sure you want to change the base?
Extend bosh tagging for cpi #2603
Conversation
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 = {} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
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