From 825447b71206d2cf18418329d7b2413097352317 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 9 Dec 2020 12:47:35 +0000 Subject: [PATCH] Added git-sync --- manifests/git-sync.yaml | 54 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 manifests/git-sync.yaml diff --git a/manifests/git-sync.yaml b/manifests/git-sync.yaml new file mode 100644 index 0000000..f68b026 --- /dev/null +++ b/manifests/git-sync.yaml @@ -0,0 +1,54 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: git-sync +--- +apiVersion: v1 +kind: Secret +metadata: + name: git-sync-github + namespace: git-sync + annotations: + kube-1password: cfo2ufhgem57clbscxetxgevue + kube-1password/vault: Kubernetes +type: Opaque +data: +--- +apiVersion: v1 +kind: Secret +metadata: + name: git-sync-gitea + namespace: git-sync + annotations: + kube-1password: b7kpdlcvt7y63bozu3i4j4lojm + kube-1password/vault: Kubernetes +type: Opaque +data: +--- +apiVersion: batch/v1beta1 +kind: CronJob +metadata: + name: git-sync + namespace: git-sync +spec: + schedule: "0 */1 * * *" + jobTemplate: + spec: + template: + spec: + containers: + - name: sync + image: docker.cluster.fun/averagemarcus/git-sync:latest + imagePullPolicy: IfNotPresent + env: + - name: GITHUB_TOKEN + valueFrom: + secretKeyRef: + name: git-sync-github + key: password + - name: GITEA_TOKEN + valueFrom: + secretKeyRef: + name: git-sync-gitea + key: password + restartPolicy: Never