mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-08 14:33:52 +07:00
27 lines
650 B
YAML
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 }}
|