-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add labels column to gcp_kms_key and gcp_compute_instance_template table. Closes #299 #301
Conversation
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.
Please see comments
gcp/table_gcp_kms_key.go
Outdated
@@ -74,6 +74,11 @@ func tableGcpKmsKey(ctx context.Context) *plugin.Table { | |||
Hydrate: getKeyIamPolicy, | |||
Transform: transform.FromValue(), | |||
}, | |||
{ | |||
Name: "labels", | |||
Description: "Labels that apply to this kms key.", |
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.
@bigdatasourav Where is this description from? Is it from the SDK, API, or somewhere else?
@@ -156,6 +156,12 @@ func tableGcpComputeInstanceTemplate(ctx context.Context) *plugin.Table { | |||
Type: proto.ColumnType_JSON, | |||
Transform: transform.FromField("Properties.Tags"), | |||
}, | |||
{ | |||
Name: "labels", | |||
Description: "Labels associated with the instance template.", |
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.
How are labels used with instance templates? From the API I can see the description:
Labels to apply to instances that are created from these properties.
So are these labels on the instance template themselves and/or labels applied to instances created from these templates?
Also, description wise, similar to the comment below, where did you get this comment from? The API has a different description (https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates).
@@ -32,7 +32,7 @@ func tableGcpKubernetesNodePool(ctx context.Context) *plugin.Table { | |||
Type: proto.ColumnType_STRING, | |||
}, | |||
{ | |||
Name: "selfLink", | |||
Name: "self_link", |
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.
This should be in a different PR since it's a bug fix
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.
will fix it in different PR.
Example query results
Results