From 1cc7e273c9098a1557f46d18792a9425e5af4d46 Mon Sep 17 00:00:00 2001 From: Karl Muscat Date: Mon, 13 Feb 2023 09:45:50 +0100 Subject: [PATCH 1/3] Fixes template for PSPs api version. --- charts/cluster-autoscaler/templates/_helpers.tpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/cluster-autoscaler/templates/_helpers.tpl b/charts/cluster-autoscaler/templates/_helpers.tpl index 3fbf00965e5e..39c403cc990a 100644 --- a/charts/cluster-autoscaler/templates/_helpers.tpl +++ b/charts/cluster-autoscaler/templates/_helpers.tpl @@ -70,13 +70,12 @@ Return the appropriate apiVersion for podsecuritypolicy. {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if semverCompare "<1.10-0" $kubeTargetVersion -}} {{- print "extensions/v1beta1" -}} -{{- if semverCompare ">1.21-0" $kubeTargetVersion -}} +{{- else if semverCompare ">1.21-0" $kubeTargetVersion -}} {{- print "policy/v1" -}} {{- else -}} {{- print "policy/v1beta1" -}} {{- end -}} -{{- end -}} -{{- end -}} +{{- end -} {{/* Return the appropriate apiVersion for podDisruptionBudget. From f6fa30423c382c5af53b08b7ac603afe143d30fe Mon Sep 17 00:00:00 2001 From: Karl Muscat Date: Mon, 13 Feb 2023 10:13:17 +0100 Subject: [PATCH 2/3] Bump chart version. --- charts/cluster-autoscaler/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/cluster-autoscaler/Chart.yaml b/charts/cluster-autoscaler/Chart.yaml index 2e231ceb5c73..14370e658e1e 100644 --- a/charts/cluster-autoscaler/Chart.yaml +++ b/charts/cluster-autoscaler/Chart.yaml @@ -11,4 +11,4 @@ name: cluster-autoscaler sources: - https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler type: application -version: 9.23.0 +version: 9.23.1 From 4c3486d96c2999d2ec85228e9b8b4a114cec5840 Mon Sep 17 00:00:00 2001 From: Karl Muscat Date: Mon, 13 Feb 2023 10:15:47 +0100 Subject: [PATCH 3/3] Bump chart version. --- charts/cluster-autoscaler/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/cluster-autoscaler/templates/_helpers.tpl b/charts/cluster-autoscaler/templates/_helpers.tpl index 39c403cc990a..25d1eb8245f7 100644 --- a/charts/cluster-autoscaler/templates/_helpers.tpl +++ b/charts/cluster-autoscaler/templates/_helpers.tpl @@ -75,7 +75,7 @@ Return the appropriate apiVersion for podsecuritypolicy. {{- else -}} {{- print "policy/v1beta1" -}} {{- end -}} -{{- end -} +{{- end -}} {{/* Return the appropriate apiVersion for podDisruptionBudget.