Skip to content

Commit

Permalink
Only provide SCC name flag when openshift.enabled, update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancoleman committed Aug 7, 2023
1 parent 3bf704f commit 61fb592
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions charts/consul/templates/gateway-resources-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ spec:
- {{- toYaml .Values.connectInject.apiGateway.managedGatewayClass.copyAnnotations.service.annotations | nindent 14 -}}
{{- end }}
- -service-type={{ .Values.connectInject.apiGateway.managedGatewayClass.serviceType }}
{{- if .Values.global.openshift.enabled }}
- -openshift-scc-name={{ .Values.connectInject.apiGateway.managedGatewayClass.openshiftSCCName }}
{{- end }}
{{- end}}
resources:
requests:
Expand Down
3 changes: 2 additions & 1 deletion charts/consul/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,8 @@ connectInject:
maxInstances: 1
minInstances: 1

# The name of the Openshift SecurityContextConstraints resource to use for Gateways
# The name of the OpenShift SecurityContextConstraints resource to use for Gateways.
# Only applicable if `global.openshift.enabled` is true.
# @type: string
openshiftSCCName: "restricted-v2"

Expand Down

0 comments on commit 61fb592

Please sign in to comment.