[bitnami/concourse] Use common capabilities for PSP (#19625)

This commit is contained in:
Juan Ariza Toledano
2023-10-03 08:42:43 +02:00
committed by GitHub
parent 575e1b9322
commit 0a714c2fe3
5 changed files with 5 additions and 9 deletions

View File

@@ -37,4 +37,4 @@ maintainers:
name: concourse
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/concourse
version: 3.0.1
version: 3.0.2

View File

@@ -3,8 +3,7 @@ Copyright VMware, Inc.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) -}}
{{- if and $pspAvailable .Values.web.enabled .Values.web.psp.create -}}
{{- if and (include "common.capabilities.psp.supported" .) .Values.web.enabled .Values.web.psp.create -}}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:

View File

@@ -22,8 +22,7 @@ rules:
{{- include "common.tplvalues.render" ( dict "value" .Values.web.rbac.rules "context" $ ) | nindent 2 }}
{{- end }}
{{- end }}
{{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) }}
{{- if and $pspAvailable .Values.web.psp.create }}
{{- if and (include "common.capabilities.psp.supported" .) .Values.web.psp.create }}
---
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
kind: ClusterRole

View File

@@ -3,8 +3,7 @@ Copyright VMware, Inc.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) -}}
{{- if and $pspAvailable .Values.worker.enabled .Values.worker.psp.create -}}
{{- if and (include "common.capabilities.psp.supported" .) .Values.worker.enabled .Values.worker.psp.create -}}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:

View File

@@ -22,8 +22,7 @@ rules:
{{- include "common.tplvalues.render" ( dict "value" .Values.worker.rbac.rules "context" $ ) | nindent 2 }}
{{- end }}
{{- end }}
{{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) }}
{{- if and $pspAvailable .Values.worker.psp.create }}
{{- if and (include "common.capabilities.psp.supported" .) .Values.worker.psp.create }}
---
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
kind: ClusterRole