Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions infra/gcp/ensure-main-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ function ensure_aaa_external_secrets() {

# another sign that we should move to using YAML as source of intent;
# bash and indirect array access don't play nice, so we get this...

# prow as in the k8s-infra-prow instance being stood up on aaa, not the
# build clusters managed via infra/gcp/clusters/k8s-infra-prow-build*
local prow_secrets=(
k8s-infra-ci-robot-github-token
)
local slack_infra_secrets=(
recaptcha
slack-event-log-config
Expand All @@ -343,6 +349,7 @@ function ensure_aaa_external_secrets() {
triage-party-github-token
)
mapfile -t secret_specs < <(
printf "%s/prow/sig-testing\n" "${prow_secrets[@]}"
printf "%s/slack-infra/sig-contributor-experience\n" "${slack_infra_secrets[@]}"
printf "%s/triageparty-release/sig-release\n" "${triageparty_release_secrets[@]}"
)
Expand Down
15 changes: 15 additions & 0 deletions prow/prow-externalsecrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This is a place holder for adding kubernetes external secrets, please add the
# ExternalSecret CR here, separated by `---`.
---
apiVersion: kubernetes-client.io/v1
kind: ExternalSecret
metadata:
name: k8s-infra-ci-robot-github-token
namespace: prow
spec:
backendType: gcpSecretsManager
projectId: kubernetes-public
data:
- key: k8s-infra-ci-robot-github-token # The name of the GSM Secret
name: token # The key to write to in the Kubernetes Secret
version: latest # The version of the GSM Secret