Skip to content

Commit d4ac177

Browse files
authored
Merge pull request #6948 from borg-land/copy-nfd-creds
Create nfd codecov token secret
2 parents 332d510 + abcb25a commit d4ac177

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

infra/aws/terraform/prow-build-cluster/resources/test-pods/externalsecrets.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,14 @@ spec:
130130
secretStoreRef:
131131
kind: ClusterSecretStore
132132
name: k8s-infra-prow-build
133+
---
134+
apiVersion: external-secrets.io/v1beta1
135+
kind: ExternalSecret
136+
metadata:
137+
name: nfd-creds
138+
namespace: test-pods
139+
spec:
140+
data:
141+
- remoteRef:
142+
key: nfd-codecov-token
143+
secretKey: codecov-token

infra/gcp/terraform/k8s-infra-prow-build/prow-build/resources/test-pods/externalsecrets.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,16 @@ spec:
8787
- key: k8s-gcr-audit-test-prod-service-account
8888
name: service-account.json
8989
version: latest
90+
---
91+
apiVersion: kubernetes-client.io/v1
92+
kind: ExternalSecret
93+
metadata:
94+
name: nfd-creds # The name of the Kubernetes Secret
95+
namespace: test-pods
96+
spec:
97+
backendType: gcpSecretsManager
98+
projectId: k8s-infra-prow-build
99+
data:
100+
- key: nfd-codecov-token # The name of the GSM Secret
101+
name: codecov-token # The key to write to in the Kubernetes Secret
102+
version: latest # The version of the GSM Secret

0 commit comments

Comments
 (0)