Skip to content

Commit

Permalink
feat: add scc configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <[email protected]>
  • Loading branch information
Dominik Rosiek authored and sumo-drosiek committed Sep 8, 2022
1 parent 13248b6 commit b5bb592
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
41 changes: 41 additions & 0 deletions helm/tailing-sidecar-operator/templates/scc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{- if and .Values.scc.create (.Capabilities.APIVersions.Has "security.openshift.io/v1") }}
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
annotations:
kubernetes.io/description: |
This provides the minimum requirements Sumo Logic Kubernetes Collection to run in Openshift.
name: tailing-sidecar-operator
labels:
app: tailing-sidecar-operator
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: true
allowedCapabilities: []
allowedUnsafeSysctls: []
defaultAddCapabilities: []
fsGroup:
type: RunAsAny
groups:
- system:authenticated
priority: 0
readOnlyRootFilesystem: false
requiredDropCapabilities: []
runAsUser:
type: RunAsAny
seLinuxContext:
type: MustRunAs
seccompProfiles: []
supplementalGroups:
type: RunAsAny
users: []
volumes:
- "*"
{{- end }}
3 changes: 3 additions & 0 deletions helm/tailing-sidecar-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ webhook:

certManager:
enabled: false

scc:
create: true

0 comments on commit b5bb592

Please sign in to comment.