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-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
|
apiVersion: external-secrets.io/v1beta1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
@@ -13,12 +14,12 @@ spec:
|
|||||||
target:
|
target:
|
||||||
name: gitea-runner-secret
|
name: gitea-runner-secret
|
||||||
creationPolicy: Owner
|
creationPolicy: Owner
|
||||||
|
template:
|
||||||
data:
|
data:
|
||||||
- secretKey: GITEA_INSTANCE_URL
|
GITEA_INSTANCE_URL: "https://git.neuralplatform.ai"
|
||||||
remoteRef:
|
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ .runner_token }}"
|
||||||
key: secret/data/gitea
|
data:
|
||||||
property: instance_url
|
- secretKey: runner_token
|
||||||
- secretKey: GITEA_RUNNER_REGISTRATION_TOKEN
|
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: secret/data/gitea
|
key: secret/data/gitea
|
||||||
property: runner_token
|
property: runner_token
|
||||||
|
|||||||
Reference in New Issue
Block a user