17 lines
440 B
YAML
17 lines
440 B
YAML
{{- if .Values.podSecurityPolicy }}
|
|
{{- if .Values.podSecurityPolicy.enabled }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: kubecost-cost-analyzer-psp
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: kubecost-cost-analyzer-psp
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "cost-analyzer.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|
|
{{- end }}
|