mirror of
https://github.com/bitnami/charts.git
synced 2026-02-19 11:37:23 +08:00
[bitnami/nginx-ingress-controller] chore: ♻️ Remove extra unnecessary k8s version checks (#33453)
This commit is contained in:
committed by
GitHub
parent
71bd413abf
commit
dd8840d5a4
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 11.6.18 (2025-05-06)
|
||||
## 11.6.19 (2025-05-06)
|
||||
|
||||
* [bitnami/nginx-ingress-controller] chore: :recycle: :arrow_up: Update common and remove k8s < 1.23 references ([#33414](https://github.com/bitnami/charts/pull/33414))
|
||||
* [bitnami/nginx-ingress-controller] chore: :recycle: Remove extra unnecessary k8s version checks ([#33453](https://github.com/bitnami/charts/pull/33453))
|
||||
|
||||
## <small>11.6.18 (2025-05-06)</small>
|
||||
|
||||
* [bitnami/nginx-ingress-controller] chore: :recycle: :arrow_up: Update common and remove k8s < 1.23 r ([61a1119](https://github.com/bitnami/charts/commit/61a111923dc51ae9ae31b5abd35594b551314111)), closes [#33414](https://github.com/bitnami/charts/issues/33414)
|
||||
|
||||
## <small>11.6.17 (2025-05-05)</small>
|
||||
|
||||
|
||||
@@ -35,4 +35,4 @@ maintainers:
|
||||
name: nginx-ingress-controller
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/nginx-ingress-controller
|
||||
version: 11.6.18
|
||||
version: 11.6.19
|
||||
|
||||
@@ -67,23 +67,3 @@ Create the name of the service account to use
|
||||
{{ default "default" .Values.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the appropriate apiGroup for PodSecurityPolicy.
|
||||
*/}}
|
||||
{{- define "nginx-ingress-controller.podSecurityPolicy.apiGroup" -}}
|
||||
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- print "policy" -}}
|
||||
{{- else -}}
|
||||
{{- print "extensions" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Require extensions API group based on Kubernetes version
|
||||
*/}}
|
||||
{{- define "nginx-ingress-controller.role.extensions.apiGroup" -}}
|
||||
{{- if semverCompare "<1.16-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- print "- extensions" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -60,7 +60,6 @@ rules:
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
{{- include "nginx-ingress-controller.role.extensions.apiGroup" . | nindent 6 }}
|
||||
- networking.k8s.io
|
||||
resources:
|
||||
- ingresses
|
||||
@@ -76,14 +75,12 @@ rules:
|
||||
- create
|
||||
- patch
|
||||
- apiGroups:
|
||||
{{- include "nginx-ingress-controller.role.extensions.apiGroup" . | nindent 6 }}
|
||||
- networking.k8s.io
|
||||
resources:
|
||||
- ingresses/status
|
||||
verbs:
|
||||
- update
|
||||
- apiGroups:
|
||||
{{- include "nginx-ingress-controller.role.extensions.apiGroup" . | nindent 6 }}
|
||||
- networking.k8s.io
|
||||
resources:
|
||||
- ingressclasses
|
||||
|
||||
@@ -41,7 +41,6 @@ rules:
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
{{- include "nginx-ingress-controller.role.extensions.apiGroup" . | nindent 6 }}
|
||||
- networking.k8s.io
|
||||
resources:
|
||||
- ingresses
|
||||
@@ -50,7 +49,6 @@ rules:
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
{{- include "nginx-ingress-controller.role.extensions.apiGroup" . | nindent 6 }}
|
||||
- networking.k8s.io
|
||||
resources:
|
||||
- ingresses/status
|
||||
@@ -91,7 +89,7 @@ rules:
|
||||
{{- end }}
|
||||
{{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) -}}
|
||||
{{- if and $pspAvailable .Values.podSecurityPolicy.enabled }}
|
||||
- apiGroups: [{{ template "nginx-ingress-controller.podSecurityPolicy.apiGroup" . }}]
|
||||
- apiGroups: ['policy']
|
||||
resources: ['podsecuritypolicies']
|
||||
verbs: ['use']
|
||||
resourceNames: [{{ template "common.names.fullname" . }}]
|
||||
|
||||
Reference in New Issue
Block a user