Skip to content

Commit

Permalink
Patch vault path for route53 key in each overlay
Browse files Browse the repository at this point in the history
While we have a "nerc-certificate-issuer" component, it was only used on
nerc-ocp-prod. In order to use this on other clusters, we'll need to patch
the ExternalSecret resource with a new key path.

This commit implements that behavior for nerc-ocp-prod to keep things
consistent as we add new clusters.

Part-of: nerc-project/operations#285
  • Loading branch information
larsks committed Nov 14, 2023
1 parent 7e7e069 commit e4b2e46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
labels: {}
dataFrom:
- extract:
key: nerc/nerc-ocp-prod/aws-route53-credentials
key: REPLACE_IN_OVERLAY
7 changes: 7 additions & 0 deletions cluster-scope/overlays/nerc-ocp-prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ patches:
- op: replace
path: /spec/data/0/remoteRef/key
value: nerc/nerc-ocp-prod/openshift-config/oauths-clientsecret-nerc
- target:
kind: ExternalSecret
name: aws-route53-credentials
patch: |
- op: replace
path: /spec/dataFrom/0/extract/key
value: nerc/nerc-ocp-prod/aws-route53-credentials
- target:
kind: ExternalSecret
name: github-client-secret
Expand Down

0 comments on commit e4b2e46

Please sign in to comment.