Skip to content

Commit

Permalink
add openshift flag, 0.6.0 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha authored Dec 13, 2023
1 parent 91bc268 commit 1072f2f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mirrord-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.1
version: 0.6.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
17 changes: 17 additions & 0 deletions mirrord-operator/templates/scc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if .Values.openshift }}
kind: SecurityContextConstraints
apiVersion: security.openshift.io/v1
metadata:
name: scc-mirrord
allowHostPID: true
allowPrivilegedContainer: false
allowHostDirVolumePlugin: true
allowedCapabilities: ["SYS_ADMIN", "SYS_PTRACE", "NET_RAW", "NET_ADMIN"]
runAsUser:
type: MustRunAsNonRoot
seLinuxContext:
type: MustRunAs
users:
- system:serviceaccount:mirrord:mirrord-operator
- system:serviceaccount:mirrord:default
{{ end }}
3 changes: 3 additions & 0 deletions mirrord-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ tls:
data:
tls.key: ""
tls.crt: ""

# if you run on OpenShift, set this value to true to get a SCC in the yaml.
openshift: false

0 comments on commit 1072f2f

Please sign in to comment.