stdlib/kubernetes: split source with dagger.#Artifact and sourceInline (string) fixes #263
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
@@ -14,7 +14,10 @@ import (
|
||||
name: string
|
||||
|
||||
// Helm chart to install
|
||||
chart: string | dagger.#Artifact
|
||||
chart: dagger.#Artifact
|
||||
|
||||
// Helm chart to install inlined
|
||||
chartInline?: string
|
||||
|
||||
// Helm chart repository (defaults to stable)
|
||||
repository: *"https://charts.helm.sh/stable" | string
|
||||
@@ -86,7 +89,7 @@ import (
|
||||
content: kubeconfig
|
||||
mode: 0o600
|
||||
},
|
||||
if (chart & string) != _|_ {
|
||||
if chartInline != _|_ {
|
||||
op.#WriteFile & {
|
||||
dest: "/helm/chart"
|
||||
content: chart
|
||||
@@ -117,7 +120,7 @@ import (
|
||||
if (values & string) != _|_ {
|
||||
"/helm/values.yaml": values
|
||||
}
|
||||
if (chart & dagger.#Artifact) != _|_ {
|
||||
if chartInline == _|_ {
|
||||
"/helm/chart": from: chart
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user