From e598205852ae8fae0cfe278df4e6e38ad8239532 Mon Sep 17 00:00:00 2001 From: Carlos Salas Date: Tue, 16 Jan 2024 19:04:14 +0100 Subject: [PATCH] feat: update chart with new feature for management.cattle.io/v3 support Signed-off-by: Carlos Salas --- charts/rancher-turtles/templates/deployment.yaml | 2 +- .../templates/rancher-turtles-components.yaml | 13 +++++++++++++ charts/rancher-turtles/values.yaml | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/charts/rancher-turtles/templates/deployment.yaml b/charts/rancher-turtles/templates/deployment.yaml index 49132dbcc..bc14f62f0 100644 --- a/charts/rancher-turtles/templates/deployment.yaml +++ b/charts/rancher-turtles/templates/deployment.yaml @@ -26,7 +26,7 @@ spec: containers: - args: - --leader-elect - - --feature-gates=rancher-kube-secret-patch={{ index .Values "rancherTurtles" "features" "rancher-kubeconfigs" "label"}} + - --feature-gates=managementv3-cluster={{ index .Values "rancherTurtles" "features" "managementv3-cluster" "enabled"}},rancher-kube-secret-patch={{ index .Values "rancherTurtles" "features" "rancher-kubeconfigs" "label"}} {{- range .Values.rancherTurtles.managerArguments }} - {{ . }} {{- end }} diff --git a/charts/rancher-turtles/templates/rancher-turtles-components.yaml b/charts/rancher-turtles/templates/rancher-turtles-components.yaml index de36e160c..238675251 100644 --- a/charts/rancher-turtles/templates/rancher-turtles-components.yaml +++ b/charts/rancher-turtles/templates/rancher-turtles-components.yaml @@ -1872,6 +1872,19 @@ rules: - list - watch - create +- apiGroups: + - management.cattle.io + resources: + - clusters + - clusters/status + verbs: + - create + - delete + - get + - list + - patch + - update + - watch - apiGroups: - provisioning.cattle.io resources: diff --git a/charts/rancher-turtles/values.yaml b/charts/rancher-turtles/values.yaml index 54597edf7..5932df4c4 100644 --- a/charts/rancher-turtles/values.yaml +++ b/charts/rancher-turtles/values.yaml @@ -13,6 +13,8 @@ rancherTurtles: kubectlImage: rancher/kubectl rancher-kubeconfigs: label: true + managementv3-cluster: + enabled: false cluster-api-operator: enabled: true cert-manager: