Skip to content

Commit 54d68e3

Browse files
committed
Add createOpenShiftSCC flag
1 parent 440d586 commit 54d68e3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

charts/nginx-gateway-fabric/templates/scc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Create SCC for Gateway resources
2-
{{- if eq .Values.platform "openshift" }}
2+
{{- if and (eq .Values.platform "openshift") .Values.createOpenShiftSCC }}
33
kind: SecurityContextConstraints
44
apiVersion: security.openshift.io/v1
55
metadata:

charts/nginx-gateway-fabric/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ affinity: {}
113113
## The platform that NGINX Gateway Fabric is being deployed on. Valid values: kubernetes, openshift
114114
platform: kubernetes
115115

116+
## Create and apply the OpenShift SecurityContextConstraints object.
117+
createOpenShiftSCC: true
118+
116119
serviceAccount:
117120
annotations: {}
118121
## The name of the service account of the NGINX Gateway Fabric pods. Used for RBAC.

0 commit comments

Comments
 (0)