Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template PSP names #773

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cost-analyzer/templates/cost-analyzer-psp-role.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kubecost-cost-analyzer-psp
name: {{ template "cost-analyzer.fullname" . }}-psp
annotations:
{{- if .Values.podSecurityPolicy.annotations }}
{{ toYaml .Values.podSecurityPolicy.annotations | indent 4 }}
Expand All @@ -13,6 +13,6 @@ rules:
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- kubecost-cost-analyzer-psp
- {{ template "cost-analyzer.fullname" . }}-psp
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kubecost-cost-analyzer-psp
name: {{ template "cost-analyzer.fullname" . }}-psp
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kubecost-cost-analyzer-psp
name: {{ template "cost-analyzer.fullname" . }}-psp
subjects:
- kind: ServiceAccount
name: {{ template "cost-analyzer.serviceAccountName" . }}
Expand Down
2 changes: 1 addition & 1 deletion cost-analyzer/templates/cost-analyzer-psp.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: {{ include "cost-analyzer.podSecurityPolicy.apiVersion" . }}
kind: PodSecurityPolicy
metadata:
name: kubecost-cost-analyzer-psp
name: {{ template "cost-analyzer.fullname" . }}-psp
spec:
privileged: false
seLinux:
Expand Down