Fix gitea-runner ExternalSecret: use template for static GITEA_INSTANCE_URL
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
# gitea-runner-secret — Gitea act-runner registration token
|
||||
# GITEA_INSTANCE_URL is static (not a secret); GITEA_RUNNER_REGISTRATION_TOKEN comes from Vault
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
@@ -13,12 +14,12 @@ spec:
|
||||
target:
|
||||
name: gitea-runner-secret
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
data:
|
||||
GITEA_INSTANCE_URL: "https://git.neuralplatform.ai"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ .runner_token }}"
|
||||
data:
|
||||
- secretKey: GITEA_INSTANCE_URL
|
||||
remoteRef:
|
||||
key: secret/data/gitea
|
||||
property: instance_url
|
||||
- secretKey: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
- secretKey: runner_token
|
||||
remoteRef:
|
||||
key: secret/data/gitea
|
||||
property: runner_token
|
||||
|
||||
Reference in New Issue
Block a user