about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <Vincent Ambo>2020-01-18T15·48+0000
committerVincent Ambo <Vincent Ambo>2020-01-18T15·48+0000
commit61830ebc5bfbfedee9e3fb37a5d89f530595dca0 (patch)
treee95822ee90d14e71eef82eb20d47b54fd0e3d816 /ops
parentaf63d2604ef4bf0867609206fa373f6613489b17 (diff)
feat(ops/infra/k8s): Add sourcehut configuration to sync-gcsr r/408
Diffstat (limited to 'ops')
-rw-r--r--ops/infra/kubernetes/cgit/config.yaml9
-rw-r--r--ops/secrets/sr.ht-tokenbin0 -> 114 bytes
2 files changed, 8 insertions, 1 deletions
diff --git a/ops/infra/kubernetes/cgit/config.yaml b/ops/infra/kubernetes/cgit/config.yaml
index 43bfe9d7fb..73392adaad 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
diff --git a/ops/secrets/sr.ht-token b/ops/secrets/sr.ht-token
new file mode 100644
index 0000000000..53eb0d16b0
--- /dev/null
+++ b/ops/secrets/sr.ht-token
Binary files differ