
* fix: corrected argocd-applicationset chart dir Signed-off-by: chgl <chgl@users.noreply.github.com> * bumped chart version Signed-off-by: chgl <chgl@users.noreply.github.com> Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
{{- if .Values.rbac.pspEnabled }}
|
|
apiVersion: policy/v1beta1
|
|
kind: PodSecurityPolicy
|
|
metadata:
|
|
name: {{ template "argo-applicationset.fullname" . }}
|
|
labels:
|
|
{{- include "argo-applicationset.labels" . | nindent 4 }}
|
|
annotations:
|
|
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
|
|
spec:
|
|
privileged: false
|
|
hostIPC: false
|
|
hostNetwork: false
|
|
hostPID: false
|
|
readOnlyRootFilesystem: false
|
|
allowPrivilegeEscalation: false
|
|
allowedCapabilities:
|
|
- '*'
|
|
fsGroup:
|
|
rule: RunAsAny
|
|
runAsUser:
|
|
rule: RunAsAny
|
|
seLinux:
|
|
rule: RunAsAny
|
|
supplementalGroups:
|
|
rule: RunAsAny
|
|
volumes:
|
|
- '*'
|
|
---
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: {{ template "argo-applicationset.fullname" . }}-psp
|
|
labels:
|
|
{{- include "argo-applicationset.labels" . | nindent 4 }}
|
|
rules:
|
|
- apiGroups: ['policy']
|
|
resources: ['podsecuritypolicies']
|
|
verbs: ['use']
|
|
resourceNames:
|
|
- {{ template "argo-applicationset.fullname" . }}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: {{ template "argo-applicationset.fullname" . }}-psp
|
|
labels:
|
|
{{- include "argo-applicationset.labels" . | nindent 4 }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ template "argo-applicationset.fullname" . }}-psp
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "argo-applicationset.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|