Skip to content

Commit

Permalink
Update cozystack preset
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed May 28, 2024
1 parent 4962ef4 commit 4bd14e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/cozystack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ templateOptions:
fileValues: []
jsonValues: []
literalValues: []
talosVersion: "v1.6"
talosVersion: "v1.7"
withSecrets: "secrets.yaml"
kubernetesVersion: ""
full: false
Expand Down
2 changes: 2 additions & 0 deletions charts/talm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@
{{- $addresses := list }}
{{- range (lookup "addresses" "" "").items }}
{{- if and (eq .spec.linkName $linkName) (eq .spec.family $family) (not (eq .spec.scope "host")) }}
{{- if not (hasPrefix (printf "%s/" $.Values.floatingIP) .spec.address) }}
{{- $addresses = append $addresses .spec.address }}
{{- end }}
{{- end }}
{{- end }}
{{- toJson $addresses }}
{{- end }}

Expand Down
4 changes: 3 additions & 1 deletion pkg/generated/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ templateOptions:
fileValues: []
jsonValues: []
literalValues: []
talosVersion: "v1.6"
talosVersion: "v1.7"
withSecrets: "secrets.yaml"
kubernetesVersion: ""
full: false
Expand Down Expand Up @@ -272,9 +272,11 @@ description: A library Talm chart for Talos Linux
{{- $addresses := list }}
{{- range (lookup "addresses" "" "").items }}
{{- if and (eq .spec.linkName $linkName) (eq .spec.family $family) (not (eq .spec.scope "host")) }}
{{- if not (hasPrefix (printf "%s/" $.Values.floatingIP) .spec.address) }}
{{- $addresses = append $addresses .spec.address }}
{{- end }}
{{- end }}
{{- end }}
{{- toJson $addresses }}
{{- end }}
Expand Down

0 comments on commit 4bd14e9

Please sign in to comment.