File tree 3 files changed +9
-12
lines changed
democratic-csi/democratic-csi/app
volsync-system/snapshot-controller/app
3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ tasks:
16
16
desc : Apply Talos config to a node [NODE=required] [MODE=auto]
17
17
cmd : |-
18
18
minijinja-cli {{.TALOS_DIR}}/{{.MACHINE_TYPE}}.yaml.j2 | op inject \
19
- | talosctl --nodes {{.NODE}} apply-config {{if eq .INSECURE "true"}}--insecure{{end}} \
19
+ | talosctl --nodes {{.NODE}} apply-config \
20
20
--mode {{.MODE}} \
21
21
--config-patch @{{.TALOS_DIR}}/{{.MACHINE_TYPE}}/{{.NODE}}.yaml \
22
- --file /dev/stdin
22
+ --file /dev/stdin {{if .INSECURE}}--insecure{{end}}
23
23
vars :
24
24
MODE : ' {{.MODE | default "auto"}}'
25
25
INSECURE :
26
- sh : talosctl --nodes {{.NODE}} get machineconfig &> /dev/null && echo false || echo true
26
+ sh : talosctl --nodes {{.NODE}} get machineconfig &> /dev/null || echo true
27
27
MACHINE_TYPE :
28
28
sh : |-
29
29
talosctl --nodes {{.NODE}} get machinetypes --output=jsonpath='{.spec}' 2> /dev/null \
@@ -44,13 +44,14 @@ tasks:
44
44
MACHINE_TYPE :
45
45
sh : talosctl --nodes {{.NODE}} get machinetypes --output=jsonpath='{.spec}'
46
46
TALOS_IMAGE :
47
- sh : minijinja-cli {{.TALOS_DIR}}/{{.MACHINE_TYPE}}.yaml.j2 | yq '.machine.install.image'
47
+ sh : |-
48
+ talosctl --nodes {{.NODE}} get machineconfig --output=jsonpath='{.spec}' \
49
+ | yq '.machine.install.image'
48
50
requires :
49
51
vars : [NODE]
50
52
preconditions :
51
53
- talosctl config info
52
54
- talosctl --nodes {{.NODE}} get machineconfig
53
- - test -f {{.TALOS_DIR}}/{{.MACHINE_TYPE}}.yaml.j2
54
55
- which minijinja-cli talosctl yq
55
56
56
57
upgrade-k8s :
Original file line number Diff line number Diff line change 9
9
mediaType : application/vnd.cncf.helm.chart.content.v1.tar+gzip
10
10
operation : copy
11
11
ref :
12
- tag : 0.14.7
13
- url : oci://ghcr.io/home-operations/charts-mirror/democratic-csi
14
- verify :
15
- provider : cosign
12
+ tag : 0.15.0
13
+ url : oci://ghcr.io/democratic-csi/charts/democratic-csi
16
14
---
17
15
apiVersion : helm.toolkit.fluxcd.io/v2
18
16
kind : HelmRelease
Original file line number Diff line number Diff line change 10
10
operation : copy
11
11
ref :
12
12
tag : 4.0.2
13
- url : oci://ghcr.io/home-operations/charts-mirror/snapshot-controller
14
- verify :
15
- provider : cosign
13
+ url : oci://ghcr.io/piraeusdatastore/helm-charts/snapshot-controller
16
14
---
17
15
apiVersion : helm.toolkit.fluxcd.io/v2
18
16
kind : HelmRelease
You can’t perform that action at this time.
0 commit comments