Skip to content

Commit

Permalink
refactor(renovate): get token from Vault
Browse files Browse the repository at this point in the history
  • Loading branch information
khuedoan committed Mar 24, 2022
1 parent 10c148f commit 4e8de63
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
19 changes: 19 additions & 0 deletions platform/renovate/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
name: {{ .Values.renovate.existingSecret }}
namespace: {{ .Release.Namespace }}
spec:
secretStoreRef:
kind: ClusterSecretStore
name: vault
target:
template:
engineVersion: v2
data:
RENOVATE_TOKEN: {{` "{{ .token }}" `}}
data:
- secretKey: token
remoteRef:
key: /gitea/renovate
property: token
7 changes: 2 additions & 5 deletions platform/renovate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ renovate:
"platform": "gitea",
"endpoint": "https://git.khuedoan.com/api/v1",
"gitAuthor": "Renovate Bot <bot@renovateapp.com>",
"token": "31a914fe134384e4044a7d3f7f965bea7a5be5b0",
"autodiscover": false,
"repositories": [
"ops/homelab"
]
"autodiscover": true
}
existingSecret: renovate-secret

0 comments on commit 4e8de63

Please sign in to comment.