Skip to content

Commit

Permalink
Merge pull request #8 from kingdonb/fix-7
Browse files Browse the repository at this point in the history
Only set vip for controlplane nodes
  • Loading branch information
kvaps committed Jun 3, 2024
2 parents 71dacec + eb250c7 commit 4328b43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/cozystack/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ machine:
routes:
- network: 0.0.0.0/0
gateway: {{ include "talm.discovered.default_gateway" . }}
{{- with .Values.floatingIP }}
{{- if eq .MachineType "controlplane" }}{{ with .Values.floatingIP }}
vip:
ip: {{ . }}
{{- end }}
{{- end }}{{ end }}


cluster:
Expand Down
4 changes: 2 additions & 2 deletions pkg/generated/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ machine:
routes:
- network: 0.0.0.0/0
gateway: {{ include "talm.discovered.default_gateway" . }}
{{- with .Values.floatingIP }}
{{- if eq .MachineType "controlplane" }}{{ with .Values.floatingIP }}
vip:
ip: {{ . }}
{{- end }}
{{- end }}{{ end }}
cluster:
Expand Down

0 comments on commit 4328b43

Please sign in to comment.