Skip to content

Commit

Permalink
fix: dont render launcher image if unset (global config), fix clabver…
Browse files Browse the repository at this point in the history
…ter namespace in helm test
  • Loading branch information
carlmontanari committed Jun 13, 2024
1 parent b3609b4 commit 99069fd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions charts/clabernetes/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ data:
{{- end }}
inClusterDNSSuffix: {{ .Values.globalConfig.inClusterDNSSuffix }}
imagePullThroughMode: {{ .Values.globalConfig.imagePull.imagePullThroughMode }}
{{- if .Values.globalConfig.deployment.launcherImage }}
launcherImage: {{ .Values.globalConfig.deployment.launcherImage }}
{{- end }}
launcherImagePullPolicy: {{ .Values.globalConfig.deployment.launcherImagePullPolicy }}
launcherLogLevel: {{ .Values.globalConfig.deployment.launcherLogLevel }}
{{- if .Values.globalConfig.imagePull.criSockOverride }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ data:
containerlabDebug: "false"
inClusterDNSSuffix: svc.cluster.local
imagePullThroughMode: auto
launcherImage:
launcherImagePullPolicy: IfNotPresent
launcherLogLevel: info
naming: prefixed
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ data:
containerlabDebug: "false"
inClusterDNSSuffix: svc.cluster.local
imagePullThroughMode: auto
launcherImage:
launcherImagePullPolicy: IfNotPresent
launcherLogLevel: info
naming: prefixed
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ data:
containerlabDebug: "false"
inClusterDNSSuffix: svc.cluster.local
imagePullThroughMode: auto
launcherImage:
launcherImagePullPolicy: IfNotPresent
launcherLogLevel: info
naming: prefixed
10 changes: 9 additions & 1 deletion charts/clicker/tests/default_values/default_values_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package default_values_test

import (
clabernetesconstants "github.com/srl-labs/clabernetes/constants"
"os"
"path/filepath"
"testing"
Expand Down Expand Up @@ -30,5 +31,12 @@ func TestDefaultValues(t *testing.T) {

t.Log(chartsDir)

clabernetestesthelper.HelmTest(t, chartName, testName, "", "", chartsDir)
clabernetestesthelper.HelmTest(
t,
chartName,
testName,
clabernetesconstants.Clabernetes,
"",
chartsDir,
)
}

0 comments on commit 99069fd

Please sign in to comment.