blob: 70fe4e3e8cfb1eeef882163793029df12b05f405 [file] [log] [blame]
giolekva716efb92022-05-07 23:08:58 +04001apiVersion: batch/v1
2kind: Job
3metadata:
4 name: fluxcd-bootstrap
5 namespace: {{ .Release.Namespace }}
6spec:
7 template:
8 spec:
9 volumes:
10 - name: access-keys
11 configMap:
12 name: access-keys
13 - name: known-hosts
14 configMap:
15 name: known-hosts
16 containers:
17 - name: fluxcd
18 image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
19 imagePullPolicy: {{ .Values.image.pullPolicy }}
20 volumeMounts:
21 - name: access-keys
22 mountPath: /access-keys
23 - name: known-hosts
24 mountPath: /.ssh
25 env:
26 - name: SSH_KNOWN_HOSTS
27 value: /.ssh/known_hosts
Giorgi Lekveishvili268f2ae2023-07-20 10:09:10 +040028 command:
29 - flux
30 - bootstrap
31 - git
32 - --namespace={{ .Values.installationNamespace }}
33 - --url={{ .Values.repositoryAddress }}
34 - --branch={{ .Values.repository.branch }}
35 - --path={{ .Values.repository.path }}
36 - --private-key-file=/access-keys/private.key
37 - --ssh-key-algorithm=ed25519
38 - --silent
39 - --watch-all-namespaces
40 - --verbose
giolekva716efb92022-05-07 23:08:58 +040041 restartPolicy: Never