-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Pod Secuity Policy to helm chart
- Loading branch information
Christian Zunker
committed
Jan 14, 2020
1 parent
2f69497
commit 77d81ed
Showing
4 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if .Values.podSecurityPolicy.create }} | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: {{ template "falcosidekick.fullname" .}} | ||
labels: | ||
app: {{ template "falcosidekick.fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
rules: | ||
- apiGroups: | ||
- extensions | ||
resources: | ||
- podsecuritypolicies | ||
resourceNames: | ||
- {{ template "falcosidekick.fullname" . }} | ||
verbs: | ||
- use | ||
{{- end }} |
19 changes: 19 additions & 0 deletions
19
deploy/helm/falcosidekick/templates/clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if .Values.podSecurityPolicy.create }} | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: {{ template "falcosidekick.fullname" .}} | ||
labels: | ||
app: {{ template "falcosidekick.fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ template "falcosidekick.fullname" .}} | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: {{ template "falcosidekick.fullname" .}} | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ image: | |
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
podSecurityPolicy: | ||
create: false | ||
|
||
config: | ||
|
||
debug: false | ||
|