Skip to content

Commit

Permalink
Make PSPs cluster-scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
funkypenguin committed Dec 16, 2020
1 parent a8c9a22 commit 772b846
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/fission-all/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: fission-all
version: 1.8.1-pre22
version: 1.8.1-pre23
description: Fission is a fast serverless framework for Kubernetes.
keywords:
- fission
Expand Down
2 changes: 2 additions & 0 deletions charts/fission-all/templates/logger/psp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- if .Values.fluentbit }}
{{- if .Values.logger.podSecurityPolicy.enabled }}
{{- if .Values.createClusterResources }}

apiVersion: policy/v1beta1
kind: PodSecurityPolicy
Expand All @@ -26,5 +27,6 @@ spec:
- {{ . }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 2 additions & 1 deletion charts/fission-all/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ logger:

## Enable PodSecurityPolicies to allow privileged container
## Only required in some clusters and when enableSecurityContext is true
# For this to take full effect, createClusterResources must also be enabled (PSPs are cluster-scoped, and can't created by multiple helm charts)
podSecurityPolicy:
enabled: false

## Configure additional capabilities
additionalCapabilities:
# example values for linkerd
Expand Down

0 comments on commit 772b846

Please sign in to comment.