Skip to content

Commit

Permalink
Merge pull request #10 from amazeeio/dioscuri-global-openshift
Browse files Browse the repository at this point in the history
Toggle Dioscuri openshift support via chart
  • Loading branch information
smlx authored Mar 15, 2021
2 parents e86d9b9 + 0588b87 commit 2c5e94f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/dioscuri/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ maintainers:

type: application

version: 0.2.2
version: 0.3.0

appVersion: v0.1.9
7 changes: 6 additions & 1 deletion charts/dioscuri/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- /manager
{{- with .Values.extraArgs }}
{{- if or .Values.extraArgs .Values.global.openshift }}
args:
{{- if .Values.global.openshift }}
- "--is-openshift=true"
{{- end }}
{{- with .Values.extraArgs }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- with .Values.nodeSelector }}
Expand Down
6 changes: 4 additions & 2 deletions charts/dioscuri/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# the following values are defaults which may be overridden

# If the controller is running in an openshift,
# then the argument `--is-openshift=true` should be added
global:
# set to true to enable openshift support
openshift: false

extraArgs:
- "--metrics-addr=127.0.0.1:8080"
- "--enable-leader-election=true"
Expand Down

0 comments on commit 2c5e94f

Please sign in to comment.