From cf9c7d7059c2ae1a0857f52fc6db2a40ea890b47 Mon Sep 17 00:00:00 2001 From: Simon Murray Date: Wed, 28 Aug 2024 09:49:36 +0100 Subject: [PATCH] Add Baremetal Global Configuration --- charts/unikorn-common/Chart.yaml | 2 +- charts/unikorn-common/templates/_helpers.tpl | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/unikorn-common/Chart.yaml b/charts/unikorn-common/Chart.yaml index 6de4154..e0a7ae3 100644 --- a/charts/unikorn-common/Chart.yaml +++ b/charts/unikorn-common/Chart.yaml @@ -4,6 +4,6 @@ description: Unikorn common templates to keep dependent charts in check. type: application -version: v0.1.8 +version: v0.1.9 icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png diff --git a/charts/unikorn-common/templates/_helpers.tpl b/charts/unikorn-common/templates/_helpers.tpl index f24f104..b23317b 100644 --- a/charts/unikorn-common/templates/_helpers.tpl +++ b/charts/unikorn-common/templates/_helpers.tpl @@ -237,6 +237,14 @@ are predictable, and less likely to break. {{- end }} {{- end }} +{{- define "unikorn.baremetal.host" -}} +{{- if (and .Values.global .Values.global.baremetal .Values.global.baremetal.host) -}} +{{- .Values.global.baremetal.host }} +{{- else }} +{{- .Values.baremetal.host }} +{{- end }} +{{- end }} + {{/* Unified service flags. As all components use the same client libraries, they have the same flags.