Skip to content

Commit

Permalink
add Pod Secuity Policy to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Zunker committed Jan 14, 2020
1 parent 2f69497 commit 77d81ed
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/helm/falcosidekick/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ appVersion: "2.11.1"
description: A simple daemon to help you with falco's outputs
icon: https://raw.githubusercontent.com/falcosecurity/falcosidekick/master/imgs/falcosidekick.png
name: falcosidekick
version: 0.1.11
version: 0.1.12
maintainers:
- name: SweetOps
- name: Issif
- name: actgardner
- name: czunker
20 changes: 20 additions & 0 deletions deploy/helm/falcosidekick/templates/clusterrole.yaml
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 deploy/helm/falcosidekick/templates/clusterrolebinding.yaml
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 }}
3 changes: 3 additions & 0 deletions deploy/helm/falcosidekick/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ image:
nameOverride: ""
fullnameOverride: ""

podSecurityPolicy:
create: false

config:

debug: false
Expand Down

0 comments on commit 77d81ed

Please sign in to comment.