diff --git a/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackClusterTemplate/_openStackClusterTemplateSpec.yaml b/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackClusterTemplate/_openStackClusterTemplateSpec.yaml index a009d10e2d..612e8b2cae 100644 --- a/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackClusterTemplate/_openStackClusterTemplateSpec.yaml +++ b/charts/t8s-cluster/templates/management-cluster/clusterClass/openStackClusterTemplate/_openStackClusterTemplateSpec.yaml @@ -4,11 +4,15 @@ Here we are generating a hash suffix. */}} {{- define "t8s-cluster.clusterClass.openStackClusterTemplate.spec" -}} {{- $_ := mustMerge . (pick .context "Values") -}} + {{- $cloud := lookup "t8s-engine.teuto.net/v1alpha1" "TeutonetesCloud" "" .Values.cloud -}} apiServerLoadBalancer: enabled: {{ not .Values.controlPlane.hosted }} {{- with .Values.controlPlane.allowedCIDRs }} allowedCIDRs: {{- toYaml . | nindent 4 }} {{- end }} + {{- with (($cloud).spec).loadBalancerProvider }} + provider: {{ . }} + {{- end }} disableAPIServerFloatingIP: {{ .Values.controlPlane.hosted }} bastion: enabled: {{ .Values.bastion.enabled }}