Skip to content

Commit

Permalink
fix: use variables instead of hard-coded names (chart only)
Browse files Browse the repository at this point in the history
  • Loading branch information
TJM committed Nov 6, 2021
1 parent 5d510f0 commit 3fe1a85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.tgz
4 changes: 2 additions & 2 deletions charts/vault-gcr-secrets/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
appVersion: 0.1.5
appVersion: 0.1.6
description: Create Kubernetes Docker-Registry secrets from Vault GCP Secrets Engine to access GCR.
home: https://github.com/TJM/vault-gcr-secrets
#icon: https://raw.githubusercontent.com/ricoberger/vault-gcr-secrets/master/assets/logo.png
maintainers:
- name: Tommy McNeely
#url:
name: vault-gcr-secrets
version: 0.1.5
version: 0.1.6
2 changes: 1 addition & 1 deletion charts/vault-gcr-secrets/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data:
error_on_missing_key = true
source = "/srv/vault-agent/template.ctmpl"
destination = "/dev/shm/key.json"
command = "bash -c 'kubectl create secret docker-registry gcr-secret --docker-server gcr.io --docker-username _json_key --docker-email \"$(jq -r .client_email /dev/shm/key.json)\" --docker-password \"$(cat /dev/shm/key.json)\" --dry-run=client -o yaml | kubectl apply -f -'"
command = "bash -c 'kubectl create secret docker-registry \"{{ .Values.secret.name }}\" --docker-server \"{{ .Values.secret.dockerServer }}\" --docker-username \"{{ .Values.secret.dockerUsername }}\" --docker-email \"$(jq -r .client_email /dev/shm/key.json)\" --docker-password \"$(cat /dev/shm/key.json)\" --dry-run=client -o yaml | kubectl apply -f -'"
}
template_config {
Expand Down

0 comments on commit 3fe1a85

Please sign in to comment.