Skip to content

Commit

Permalink
Create k8s Secret for GMX Github webhook (#952)
Browse files Browse the repository at this point in the history
Currently, the secret is deployed as part of the
github-maintenance-exporter build. This commit creates the secret as
part of the prometheus-support build, after which the GMX build can be
nothing but running unit tests, and migrated to Cloud Build.
  • Loading branch information
nkinkade authored Sep 20, 2022
1 parent 2a434ea commit bd8767f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apply-global-prometheus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@ kubectl create secret generic switch-monitoring-credentials\
"--from-file=/tmp/switch-monitoring.key" \
--dry-run="client" -o json | kubectl apply -f -

## Github Maintenance Exporter

# Create GMX Github webhook secret as a Kubernetes secret.
kubectl create secret generic gmx-webhook-secret \
"--from-literal=gmx-webhook-secret=${GMX_GITHUB_WEBHOOK_SECRET}" \
--dry-run="client" -o json | kubectl apply -f -

## OAuth2 Proxy

# Replace template variables in oauth2-proxy.yml.
Expand Down
3 changes: 3 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ availableSecrets:
env: GF_AUTH_GOOGLE_CLIENT_ID
- versionName: projects/${PROJECT_NUMBER}/secrets/prometheus-support-build-github-receiver-auth-token/versions/latest
env: GITHUB_RECEIVER_AUTH_TOKEN
- versionName: projects/${PROJECT_NUMBER}/secrets/prometheus-support-build-gmx-github-webhook-secret/versions/latest
env: GMX_GITHUB_WEBHOOK_SECRET
- versionName: projects/${PROJECT_NUMBER}/secrets/prometheus-support-build-linode-private-key-ipv6-monitoring/versions/latest
env: LINODE_PRIVATE_KEY_ipv6_monitoring
- versionName: projects/${PROJECT_NUMBER}/secrets/prometheus-support-build-script-exporter-monitoring-signer-key/versions/latest
Expand Down Expand Up @@ -58,6 +60,7 @@ steps:
- GF_AUTH_GOOGLE_CLIENT_SECRET
- GF_AUTH_GOOGLE_CLIENT_ID
- GITHUB_RECEIVER_AUTH_TOKEN
- GMX_GITHUB_WEBHOOK_SECRET
- LINODE_PRIVATE_KEY_ipv6_monitoring
- MONITORING_SIGNER_KEY
- OAUTH_PROXY_CLIENT_ID
Expand Down

0 comments on commit bd8767f

Please sign in to comment.