Skip to content

Commit

Permalink
fix(t8s-cluster/management-cluster): openstackImageNamePrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau committed Mar 5, 2024
1 parent c6d2faa commit 83e9a8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
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: {{ .Values.imageNameTemplate.computePlane }}
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: {{ .Values.imageNameTemplate.controlPlane }}
template: {{ printf "t8s-engine-%s-{{ .builtin.controlPlane.version }}" .Values.openstackImageNamePrefix }}
selector:
<<: *imagePatchSelector
matchResources:
Expand Down
18 changes: 3 additions & 15 deletions charts/t8s-cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,21 +244,8 @@
"calico"
]
},
"imageNameTemplate": {
"type": "object",
"properties": {
"computePlane": {
"type": "string"
},
"controlPlane": {
"type": "string"
}
},
"required": [
"computePlane",
"controlPlane"
],
"additionalProperties": false
"openstackImageNamePrefix": {
"type": "string"
},
"common": {
"type": "object",
Expand All @@ -269,6 +256,7 @@
"metadata",
"version",
"controlPlane",
"openstackImageNamePrefix",
"nodePools"
],
"additionalProperties": false,
Expand Down
4 changes: 1 addition & 3 deletions charts/t8s-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,4 @@ sshKeyName: null

cni: cilium

imageNameTemplate:
computePlane: t8s-engine-{{ .builtin.machineDeployment.version }}
controlPlane: t8s-engine-{{ .builtin.controlPlane.version }}
openstackImageNamePrefix: ""

0 comments on commit 83e9a8d

Please sign in to comment.