Skip to content

Commit

Permalink
Merge pull request #5480 from ViktorCollin/fix/PodSecurityPolicy
Browse files Browse the repository at this point in the history
fix: issue with apiVersion not being set  for psp
  • Loading branch information
k8s-ci-robot authored Feb 13, 2023
2 parents a484713 + e06d6a8 commit b1681a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion charts/cluster-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: cluster-autoscaler
sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
type: application
version: 9.23.1
version: 9.23.2
2 changes: 0 additions & 2 deletions charts/cluster-autoscaler/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ Return the appropriate apiVersion for podsecuritypolicy.
{{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }}
{{- if semverCompare "<1.10-0" $kubeTargetVersion -}}
{{- print "extensions/v1beta1" -}}
{{- else if semverCompare ">1.21-0" $kubeTargetVersion -}}
{{- print "policy/v1" -}}
{{- else -}}
{{- print "policy/v1beta1" -}}
{{- end -}}
Expand Down

0 comments on commit b1681a2

Please sign in to comment.