Add ExternalSecret CR for snyk_token#22298
Add ExternalSecret CR for snyk_token#22298navidshaikh wants to merge 4 commits intokubernetes:masterfrom
Conversation
|
/hold for actual secret to be created in gsm |
cjwagner
left a comment
There was a problem hiding this comment.
If this secret is for a job in the default build cluster then it needs to be defined in config/prow/cluster/build_kubernetes-external-secrets_customresource.yaml. The file you updated in this PR would incorrectly add the secret to the Prow service cluster. Instructions for setting up secrets for the default build cluster can be found here: https://github.com/kubernetes/test-infra/blob/master/prow/prow_secrets.md#usage-prow-clients
|
FWIW I am working to get the k8s-infra-prow-build-trusted cluster setup with kubernetes-external-secrets. Perhaps we can run there? |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: navidshaikh The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| namespace: test-pods | ||
| spec: | ||
| backendType: gcpSecretsManager | ||
| projectId: kubernetes-upstream # gsm project id |
There was a problem hiding this comment.
..to be verified if this projectId is correct
/hold
There was a problem hiding this comment.
| projectId: kubernetes-upstream # gsm project id | |
| projectId: k8s-infra-prow-build-trusted # gsm project id |
There was a problem hiding this comment.
@spiffxp : can this CR reside in this file ? or should I move to https://github.com/kubernetes/k8s.io/tree/main/infra/gcp/clusters/projects/k8s-infra-prow-build-trusted/prow-build-trusted/resources ?
- This CR brings snyk_token defined in google secret manager into test infra for running periodic snyk CI job.
d231a4f to
14dc3dc
Compare
| --- | ||
| apiVersion: kubernetes-client.io/v1 | ||
| kind: ExternalSecret | ||
| metadata: | ||
| name: snyk-token | ||
| namespace: test-pods | ||
| spec: | ||
| backendType: gcpSecretsManager | ||
| projectId: k8s-infra-prow-build-trusted # gsm project id | ||
| data: | ||
| - key: snyk-token # name of the GCP secret | ||
| name: SNYK_TOKEN # key name in the k8s secret | ||
| version: latest |
There was a problem hiding this comment.
This is going to need to be redone as a PR to https://github.com/kubernetes/k8s.io/blob/main/infra/gcp/clusters/projects/k8s-infra-prow-build-trusted/prow-build-trusted/resources/test-pods-externalsecrets.yaml
Let me check on the job definition PR
|
/close |
|
@spiffxp: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
into test infra for running periodic snyk CI job.
xref: kubernetes/kubernetes#101528
/cc: @cjwagner @spiffxp