From df0a45c793bd497e17b6ffa56c61b69888ff1196 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Thu, 25 Jan 2024 22:02:43 +0100 Subject: [PATCH] Add to InfrastructureProvider spec.manager.featureGates --- hack/charts/cluster-api-operator/templates/infra.yaml | 9 +++++++++ hack/charts/cluster-api-operator/values.yaml | 1 + 2 files changed, 10 insertions(+) diff --git a/hack/charts/cluster-api-operator/templates/infra.yaml b/hack/charts/cluster-api-operator/templates/infra.yaml index e2f8b24bd..d7b46e71b 100644 --- a/hack/charts/cluster-api-operator/templates/infra.yaml +++ b/hack/charts/cluster-api-operator/templates/infra.yaml @@ -44,6 +44,15 @@ spec: {{- if $infrastructureVersion }} version: {{ $infrastructureVersion }} {{- end }} +{{- if $.Values.manager }} + manager: +{{- if $.Values.manager.featureGates }} + featureGates: +{{- range $key, $value := $.Values.manager.featureGates }} + {{ $key }}: {{ $value }} +{{- end }} +{{- end }} +{{- end }} {{- if $.Values.configSecret.name }} configSecret: name: {{ $.Values.configSecret.name }} diff --git a/hack/charts/cluster-api-operator/values.yaml b/hack/charts/cluster-api-operator/values.yaml index d86f15a36..d19ae1014 100644 --- a/hack/charts/cluster-api-operator/values.yaml +++ b/hack/charts/cluster-api-operator/values.yaml @@ -12,6 +12,7 @@ bootstrap: "" controlPlane: "" infrastructure: "" addon: "" +manager.featureGates: {} # --- # Common configuration secret options configSecret: {}