Support to add ResoureManagerTags to Compute Instances #992
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/active
Indicates that an issue or PR is actively being worked on by a contributor.
/kind feature
GCP Tags are key-value pairs that are bind to the GCP resources. Unlike currently supported labels, tags are not part of the resource metadata but resource in itself. Tag Keys, Values, Bindings are all discreet resources. Tags are used for defining IAM policy conditions, Organization conditionals policies and integrating with Cloud billing for cost management, which are not supported by labels.
Describe the solution you'd like
Anything else you would like to add:
Currently tag resources tag keys and tag values can only be created at Organization and Project level with the required permissions. Tag keys and Tag Values will be created by the user and only the Tag bindings to the Compute Instance to be created and which would require below changes
GCPClusterSpec
with new field for defining tags.GCPMachineSpec
with new field for defining tags.ResourceManagerTags can be included during InstanceSpec generation like below
Users provide names of the Tag Keys(e.g. foo) and Tag Values(e.g. bar), but the
InstanceParams
expects the unique IDs generated by GCP service to be provided as below.And this requires additional logic to transform the user provided input to one as expected by the API.
Reference Links
The text was updated successfully, but these errors were encountered: