Skip to content
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

chore: refactor the external reference for SecretManagerSecret #3176

Conversation

yuwenma
Copy link
Collaborator

@yuwenma yuwenma commented Nov 14, 2024

Separate identity and reference to different go struct; Use struct and functions to define the meaning and usage of each key component.

@yuwenma yuwenma changed the title chore: external ref for SecretManagerSecret chore: refactor the external reference for SecretManagerSecret Nov 14, 2024
}

type SecretParent struct {
ProjectID string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we planning to add to SecretParent? If not we could probably drop the struct as per https://go.dev/play/p/D8y1EF81zyF

@cheftako
Copy link
Collaborator

/lgtm
/approve

I like that we have isolated the reference code to its own file. I think we should discuss centralizing it into a library. When we get to dealing with something like https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/master/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_iamauditconfigs.iam.cnrm.cloud.google.com.yaml#L89 I think we will want a central library.

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheftako

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 9e87297 into GoogleCloudPlatform:master Nov 14, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants