diff --git a/charts/t8s-cluster/templates/management-cluster/cluster.yaml b/charts/t8s-cluster/templates/management-cluster/cluster.yaml index f22a50919..1340bb6f2 100644 --- a/charts/t8s-cluster/templates/management-cluster/cluster.yaml +++ b/charts/t8s-cluster/templates/management-cluster/cluster.yaml @@ -30,7 +30,9 @@ spec: clusterClass: {{ $.Release.Name }} workers: {{- range $name, $machineDeploymentClass := .Values.workers }} {{ $name -}}: + {{- if $machineDeploymentClass.availabilityZone }} availabilityZone: {{ $machineDeploymentClass.availabilityZone | quote }} + {{- end }} flavor: {{ $machineDeploymentClass.flavor | quote }} replicas: {{ $machineDeploymentClass.replicas }} {{- end }} diff --git a/charts/t8s-cluster/templates/management-cluster/clusterClass/_helpers.tpl b/charts/t8s-cluster/templates/management-cluster/clusterClass/_helpers.tpl index 67d26b9f6..23a04bbd8 100644 --- a/charts/t8s-cluster/templates/management-cluster/clusterClass/_helpers.tpl +++ b/charts/t8s-cluster/templates/management-cluster/clusterClass/_helpers.tpl @@ -1,5 +1,5 @@ {{- define "t8s-cluster.clusterClass.infrastructureApiVersion" -}} -infrastructure.cluster.x-k8s.io/v1alpha6 +infrastructure.cluster.x-k8s.io/v1alpha7 {{- end -}} {{- define "t8s-cluster.clusterClass.cloudName" -}} diff --git a/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackClusterTemplate/openStackClusterTemplate.yaml b/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackClusterTemplate/openStackClusterTemplate.yaml index 25107600f..d9ee4d179 100644 --- a/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackClusterTemplate/openStackClusterTemplate.yaml +++ b/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackClusterTemplate/openStackClusterTemplate.yaml @@ -1,5 +1,5 @@ {{- if false }} -apiVersion: infrastructure.cluster.x-k8s.io/v1alpha6 +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7 {{- else }} apiVersion: {{ include "t8s-cluster.clusterClass.infrastructureApiVersion" $ }} {{- end }} diff --git a/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackMachineTemplates/openStackMachineTemplates.yaml b/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackMachineTemplates/openStackMachineTemplates.yaml index a3607a276..86894b238 100644 --- a/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackMachineTemplates/openStackMachineTemplates.yaml +++ b/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackMachineTemplates/openStackMachineTemplates.yaml @@ -1,6 +1,6 @@ {{- range $name, $machineDeploymentClass := (merge (deepCopy .Values.workers) (dict "control-plane" .Values.controlPlane)) }} {{- if false }} -apiVersion: infrastructure.cluster.x-k8s.io/v1alpha6 +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7 {{- else }} apiVersion: {{ include "t8s-cluster.clusterClass.infrastructureApiVersion" $ }} {{- end }} diff --git a/charts/t8s-cluster/values.schema.json b/charts/t8s-cluster/values.schema.json index 71f22f36b..8703347ac 100644 --- a/charts/t8s-cluster/values.schema.json +++ b/charts/t8s-cluster/values.schema.json @@ -190,7 +190,6 @@ "additionalProperties": false, "required": [ "replicas", - "availabilityZone", "flavor" ] }