-
Notifications
You must be signed in to change notification settings - Fork 27
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 table gcp_cloud_run_service Closes #479 #497
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.
@ParthaI Please have a look at the comments, thanks!
gcp/table_gcp_cloudrun_service.go
Outdated
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.
We have missed out on adding some columns -
- TerminalCondition
- Traffic
- TrafficStatuses
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.
@madhushreeray30 , I had added traffic_statuses
column earlier, rest of missing column I added in.
gcp/table_gcp_cloudrun_service.go
Outdated
{ | ||
Name: "location", | ||
Require: plugin.Optional, | ||
}, |
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.
{ | |
Name: "location", | |
Require: plugin.Optional, | |
}, | |
{ | |
Name: "location", | |
Require: plugin.Optional, | |
}, |
gcp/table_gcp_cloudrun_service.go
Outdated
Name: "name", | ||
Description: "The fully qualified name of this Service.", | ||
Type: proto.ColumnType_STRING, | ||
Transform: transform.FromField("Name").Transform(lastPathElement), |
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.
Transform: transform.FromField("Name").Transform(lastPathElement), | |
Transform: transform.FromField("Name").Transform(lastPathElement), |
gcp/table_gcp_cloudrun_service.go
Outdated
if region != "" && region != location{ | ||
return nil, nil | ||
} |
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.
if region != "" && region != location{ | |
return nil, nil | |
} | |
if region != "" && region != location { | |
return nil, nil | |
} |
t ->> 'Type' as type | ||
from | ||
gcp_cloud_run_service, | ||
jsonb_array_elements(traffic) as t; |
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.
Column traffic needs to be added
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.
@ParthaI please take a look at the review comments. Thanks!!
docs/tables/gcp_cloud_run_service.md
Outdated
@@ -0,0 +1,135 @@ | |||
# Table: gcp_cloud_run_service |
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.
# Table: gcp_cloud_run_service | |
# Table: gcp_cloud_run_service |
from | ||
gcp_cloud_run_service; | ||
``` | ||
|
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.
docs/tables/gcp_cloud_run_service.md
Outdated
reconciling; | ||
``` | ||
|
||
### List services that are created in the last 30 days |
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.
### List services that are created in the last 30 days | |
### List services created in the last 30 days |
@@ -23,7 +24,7 @@ import ( | |||
"google.golang.org/api/logging/v2" | |||
"google.golang.org/api/monitoring/v3" | |||
"google.golang.org/api/pubsub/v1" | |||
"cloud.google.com/go/redis/apiv1" | |||
"google.golang.org/api/run/v2" |
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.
Does the removal of this package break any other service?
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.
It has been shifted to top automatically after prettifying the code. Nothing is breaking the package name is correct.
gcp/table_gcp_cloudrun_service.go
Outdated
Name: "name", | ||
Description: "The fully qualified name of this Service.", | ||
Type: proto.ColumnType_STRING, | ||
Transform: transform.FromField("Name").Transform(lastPathElement), |
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.
Could you please fix the formatting?
Integration test logs
Logs
Example query results
Results