-
Notifications
You must be signed in to change notification settings - Fork 245
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
feat: listing direct ctrl #2993
feat: listing direct ctrl #2993
Conversation
f8b6d74
to
96a6d87
Compare
cab9a85
to
ddb7f4a
Compare
pkg/controller/direct/bigqueryanalyticshub/listing_controller.go
Outdated
Show resolved
Hide resolved
return mapCtx.Err() | ||
} | ||
|
||
updateMask := &fieldmaskpb.FieldMask{} |
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.
Suggest using comment.CompareProtoMessage
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 I follow up here?
pkg/controller/direct/bigqueryanalyticshub/listing_controller.go
Outdated
Show resolved
Hide resolved
0d79492
to
23d0bda
Compare
return fmt.Sprintf("projects/%s/datasets/%s/tables/%s", d.projectID, d.datasetID, d.tableID) | ||
} | ||
|
||
func ResolveDatasetForObject(ctx context.Context, reader client.Reader, obj *unstructured.Unstructured) (*BigQueryDataset, error) { |
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.
Suggest changing this to implement the ExternalNormalizer
interface
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.
I don't think I can get rid of this just yet. If I start importing the DatasetRef from apis/bigquery
we create an import cycle here. I added a TODO to remove these code blocks once we have a BigQueryTableRef
pkg/controller/direct/bigqueryanalyticshub/listing_controller.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
b57d0cf
to
db7d3e0
Compare
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
db7d3e0
to
115cfc8
Compare
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.
/lgtm
Signed-off-by: Alex Pana <[email protected]>
115cfc8
to
4556cde
Compare
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yuwenma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
28df5a4
into
GoogleCloudPlatform:master
Parking some of my work for the
BigQueryAnalyticsHubListing
resource.Coming as separate PRs