cluster.fun/manifests/git-sync/git-sync.yaml

110 lines
2.5 KiB
YAML
Raw Normal View History

2020-12-09 12:47:35 +00:00
apiVersion: v1
kind: Secret
metadata:
name: git-sync-github
namespace: git-sync
annotations:
kube-1password: cfo2ufhgem57clbscxetxgevue
kube-1password/vault: Kubernetes
2020-12-09 14:03:19 +00:00
kube-1password/password-key: token
2020-12-09 12:47:35 +00:00
type: Opaque
data:
---
apiVersion: v1
kind: Secret
metadata:
name: git-sync-gitea
namespace: git-sync
annotations:
kube-1password: b7kpdlcvt7y63bozu3i4j4lojm
kube-1password/vault: Kubernetes
2020-12-09 14:03:19 +00:00
kube-1password/password-key: token
type: Opaque
data:
---
apiVersion: v1
kind: Secret
metadata:
name: git-sync-gitlab
namespace: git-sync
annotations:
kube-1password: t47v3xdgadiifgoi4wmqibrlty
kube-1password/vault: Kubernetes
kube-1password/password-key: token
type: Opaque
data:
---
apiVersion: v1
kind: Secret
metadata:
name: git-sync-bitbucket
namespace: git-sync
annotations:
kube-1password: adrki45krr2tq34sug7dhdk5iy
kube-1password/vault: Kubernetes
kube-1password/password-key: token
2020-12-09 12:47:35 +00:00
type: Opaque
data:
---
apiVersion: v1
kind: Secret
metadata:
name: git-sync-codeberg
namespace: git-sync
annotations:
kube-1password: 5ynzgk6qcgshztkjbddwalixfq
kube-1password/vault: Kubernetes
kube-1password/password-key: token
type: Opaque
data:
---
2020-12-09 12:47:35 +00:00
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: git-sync
namespace: git-sync
spec:
schedule: "0 */1 * * *"
2020-12-09 14:03:19 +00:00
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 1
successfulJobsHistoryLimit: 1
2020-12-09 12:47:35 +00:00
jobTemplate:
metadata:
labels:
cronjob: git-sync
2020-12-09 12:47:35 +00:00
spec:
2020-12-09 14:03:19 +00:00
backoffLimit: 1
2020-12-09 12:47:35 +00:00
template:
spec:
containers:
- name: sync
image: rg.fr-par.scw.cloud/averagemarcus/git-sync:latest
2020-12-09 14:03:19 +00:00
imagePullPolicy: Always
2020-12-09 12:47:35 +00:00
env:
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: git-sync-github
2020-12-09 14:03:19 +00:00
key: token
2020-12-09 12:47:35 +00:00
- name: GITEA_TOKEN
valueFrom:
secretKeyRef:
name: git-sync-gitea
2020-12-09 14:03:19 +00:00
key: token
- name: GITLAB_TOKEN
valueFrom:
secretKeyRef:
name: git-sync-gitlab
key: token
- name: BITBUCKET_TOKEN
valueFrom:
secretKeyRef:
name: git-sync-bitbucket
key: token
- name: CODEBERG_TOKEN
valueFrom:
secretKeyRef:
name: git-sync-codeberg
key: token
2020-12-09 12:47:35 +00:00
restartPolicy: Never