Skip to content

Commit

Permalink
use "isOpenShift" value rather than "simulateOpenShift"
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli committed Nov 7, 2024
1 parent 2aea23c commit 6722b1a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kiali-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ Create chart name and version as used by the chart label.
Determine if on OpenShift (when debugging the chart for OpenShift use-cases, set "simulateOpenShift")
*/}}
{{- define "kiali-server.isOpenShift" -}}
{{- if .Values.simulateOpenShift -}}
true
{{- else }}
{{- .Capabilities.APIVersions.Has "operator.openshift.io/v1" -}}
{{- end -}}
{{- .Values.isOpenShift | default (.Capabilities.APIVersions.Has "operator.openshift.io/v1") -}}
{{- end }}

{{/*
Expand Down

0 comments on commit 6722b1a

Please sign in to comment.