forked from Oteemo/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Oteemo#2 from Oteemo/master
Backmerge
- Loading branch information
Showing
9 changed files
with
139 additions
and
7 deletions.
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
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
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,63 @@ | ||
{{- if and (.Values.OpenShift.enabled) (.Values.OpenShift.createSCC) }} | ||
|
||
# This SCC allows any user ID but restricts capabilties and host access | ||
apiVersion: security.openshift.io/v1 | ||
kind: SecurityContextConstraints | ||
metadata: | ||
annotations: | ||
kubernetes.io/description: "allows pod to run as root, privileged and run sysctl" | ||
"helm.sh/hook": pre-install | ||
name: {{ .Release.Name }}-privileged-scc | ||
allowHostDirVolumePlugin: false | ||
allowHostIPC: false | ||
allowHostNetwork: false | ||
allowHostPID: false | ||
allowHostPorts: false | ||
allowPrivilegedContainer: true | ||
allowPrivilegeEscalation: true | ||
allowedCapabilities: [] | ||
allowedFlexVolumes: [] | ||
allowedUnsafeSysctls: [] | ||
defaultAddCapabilities: [] | ||
defaultAllowPrivilegeEscalation: true | ||
fsGroup: | ||
type: RunAsAny | ||
readOnlyRootFilesystem: false | ||
requiredDropCapabilities: | ||
- KILL | ||
- MKNOD | ||
- SETUID | ||
- SETGID | ||
runAsUser: | ||
type: RunAsAny | ||
# This can be customized for your host machine | ||
seLinuxContext: | ||
type: MustRunAs | ||
# seLinuxOptions: | ||
# level: | ||
# user: | ||
# role: | ||
# type: | ||
supplementalGroups: | ||
type: RunAsAny | ||
# This can be customized for your host machine | ||
volumes: | ||
- configMap | ||
- downwardAPI | ||
- emptyDir | ||
- persistentVolumeClaim | ||
- projected | ||
- secret | ||
# If you want a priority on your SCC -- set for a value more than 0 | ||
priority: 11 | ||
users: | ||
{{- if .Values.serviceAccount.name }} | ||
- system:serviceaccount:{{ .Release.Namespace }}:{{ .Release.Name }}-{{ .Values.serviceAccount.name }} | ||
{{- else }} | ||
- system:serviceaccount:{{ .Release.Namespace }}:{{ .Release.Name }}-sonarqube | ||
{{- end }} | ||
{{- if .Values.postgresql.securityContext.enabled }} | ||
- system:serviceaccount:{{ .Release.Namespace }}:{{ .Release.Name }}-postgresql | ||
{{- end }} | ||
|
||
{{- 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
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
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