From 61830ebc5bfbfedee9e3fb37a5d89f530595dca0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 18 Jan 2020 15:48:52 +0000 Subject: feat(ops/infra/k8s): Add sourcehut configuration to sync-gcsr --- ops/infra/kubernetes/cgit/config.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ops/infra/kubernetes/cgit') diff --git a/ops/infra/kubernetes/cgit/config.yaml b/ops/infra/kubernetes/cgit/config.yaml index 43bfe9d7fb45..73392adaad81 100644 --- a/ops/infra/kubernetes/cgit/config.yaml +++ b/ops/infra/kubernetes/cgit/config.yaml @@ -8,6 +8,8 @@ data: username: "Z2l0LXRhemppbi5nbWFpbC5jb20=" # This credential is a GCSR 'gitcookie' token. password: '{{ passLookup "gcsr-tazjin-password" | b64enc }}' + # This credential is an OAuth token for builds.sr.ht + sourcehut: '{{ passLookup "sr.ht-token" | b64enc }}' --- apiVersion: apps/v1 kind: Deployment @@ -16,7 +18,7 @@ metadata: labels: app: cgit spec: - replicas: 2 + replicas: 1 selector: matchLabels: app: cgit @@ -53,6 +55,11 @@ spec: secretKeyRef: name: gcsr-secrets key: password + - name: SRHT_TOKEN + valueFrom: + secretKeyRef: + name: gcsr-secrets + key: sourcehut volumeMounts: - name: git-volume mountPath: /git -- cgit 1.4.1