Skip to content

Commit

Permalink
fix(t8s-cluster/management-cluster): add missing openstackImageNamePr…
Browse files Browse the repository at this point in the history
…efix field
  • Loading branch information
cwrau committed Nov 20, 2023
1 parent b067c97 commit d658e36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions charts/t8s-cluster/templates/management-cluster/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ spec:
{{- end }}
bastion:
enabled: false
{{- with .Values.openstackImageNamePrefix }}
openStackImageNamePrefix: {{ . | quote }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ spec:
op: add
path: /spec/template/spec/image
valueFrom:
template: {{ printf "t8s-engine-%s-{{ .builtin.machineDeployment.version }}" .Values.openstackImageNamePrefix }}
template: {{ printf "t8s-engine-%s{{ .builtin.machineDeployment.version }}" .Values.openstackImageNamePrefix }}
selector: &imagePatchSelector
apiVersion: {{ include "t8s-cluster.clusterClass.infrastructureApiVersion" (dict) }}
kind: OpenStackMachineTemplate
Expand All @@ -130,7 +130,7 @@ spec:
- jsonPatches:
- <<: *imagePatch
valueFrom:
template: {{ printf "t8s-engine-%s-{{ .builtin.controlPlane.version }}" .Values.openstackImageNamePrefix }}
template: {{ printf "t8s-engine-%s{{ .builtin.controlPlane.version }}" .Values.openstackImageNamePrefix }}
selector:
<<: *imagePatchSelector
matchResources:
Expand Down
2 changes: 1 addition & 1 deletion charts/t8s-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ sshKeyName: null

cni: cilium

openstackImageNamePrefix: 2004-kube
openstackImageNamePrefix: 2004-kube-

0 comments on commit d658e36

Please sign in to comment.