Skip to content

Commit

Permalink
Make the value of OpenShift var a string
Browse files Browse the repository at this point in the history
And also rename the env var OpenShift to OPENSHIFT

Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Mar 6, 2024
1 parent 1524f2b commit b83c914
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ spec:
- name: API_TLS_CA
value: /var/run/secrets/{{ inventory_tls_secret_name }}/ca.crt
{% endif %}
- name: OpenShift
- name: OPENSHIFT
{% if k8s_cluster|bool %}
value: false
value: "false"
{% else %}
value: true
value: "true"
{% endif %}
{% if controller_log_level is defined and controller_log_level is number %}
- name: LOG_LEVEL
Expand Down
2 changes: 1 addition & 1 deletion pkg/settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// Global
var Settings = ControllerSettings{}

const OpenShift = "OpenShift"
const OpenShift = "OPENSHIFT"

// Settings
type ControllerSettings struct {
Expand Down

0 comments on commit b83c914

Please sign in to comment.