Skip to content

Commit

Permalink
Updated helm chart to use the correct value for chart enablement.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielscholl committed Oct 3, 2024
1 parent c879a4d commit 0409b00
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
11 changes: 1 addition & 10 deletions charts/osdu-admin-ui/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,5 @@ app.kubernetes.io/name: {{ include "osdu-admin-ui.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Determine if the installation is enabled
*/}}
{{- define "osdu-admin-ui.isEnabled" -}}
{{- if .Values.adminUIEnabled }}
{{- true -}}
{{- else -}}
{{- false -}}
{{- end -}}
{{- end }}


2 changes: 1 addition & 1 deletion charts/osdu-admin-ui/templates/code.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (include "osdu-admin-ui.isEnabled" .) }}
{{- if ne (.Values.adminUIEnabled | toString | lower) "false" }}
---
apiVersion: v1
kind: ConfigMap
Expand Down
2 changes: 1 addition & 1 deletion charts/osdu-admin-ui/templates/job.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (include "osdu-admin-ui.isEnabled" .) }}
{{- if ne (.Values.adminUIEnabled | toString | lower) "false" }}
---
apiVersion: batch/v1
kind: Job
Expand Down
2 changes: 1 addition & 1 deletion charts/osdu-admin-ui/templates/storage.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (include "osdu-admin-ui.isEnabled" .) }}
{{- if ne (.Values.adminUIEnabled | toString | lower) "false" }}
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand Down
2 changes: 1 addition & 1 deletion charts/osdu-admin-ui/templates/web-site.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (include "osdu-admin-ui.isEnabled" .) }}
{{- if ne (.Values.adminUIEnabled | toString | lower) "false" }}
---
apiVersion: v1
kind: ConfigMap
Expand Down

0 comments on commit 0409b00

Please sign in to comment.