khuedoan-homelab/platform/gitea/templates/init-job.yaml
2021-12-25 00:47:32 +07:00

27 lines
650 B
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: init-gitops-repo
namespace: {{ .Release.Namespace }}
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
backoffLimit: 3
template:
spec:
restartPolicy: Never
containers:
- name: script
image: python
env:
- name: GITEA_USER
value: "{{ .Values.gitea.gitea.admin.username }}"
- name: GITEA_PASSWORD
value: "{{ .Values.gitea.gitea.admin.password }}"
command:
- python
- -c
args:
- |
{{ .Files.Get "files/init_gitops_repo.py" | indent 14 }}