mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
fix(lib/helm): fixes for helm 3
This commit is contained in:
parent
3c54c20836
commit
d0027e556f
2 changed files with 5 additions and 3 deletions
|
|
@ -22,8 +22,8 @@ in stdenvNoCC.mkDerivation {
|
|||
name = "${name}.json";
|
||||
buildCommand = ''
|
||||
# template helm file and write resources to yaml
|
||||
helm template --name "${name}" \
|
||||
${optionalString (kubeVersion != null) "--kube-version ${kubeVersion}"} \
|
||||
helm template "${name}" \
|
||||
${optionalString (kubeVersion != null) "--api-versions ${kubeVersion}"} \
|
||||
${optionalString (namespace != null) "--namespace ${namespace}"} \
|
||||
${optionalString (values != {}) "-f ${valuesJsonFile}"} \
|
||||
${chart} >resources.yaml
|
||||
|
|
|
|||
|
|
@ -31,8 +31,10 @@ in {
|
|||
|
||||
buildCommand = ''
|
||||
export HOME="$PWD"
|
||||
helm init --client-only >/dev/null
|
||||
helm init >/dev/null
|
||||
echo "adding helm repo"
|
||||
${if repo == null then "" else "helm repo add repository ${repo}"}
|
||||
echo "fetching helm chart"
|
||||
helm fetch -d ./chart \
|
||||
${if untar then "--untar" else ""} \
|
||||
${if version == null then "" else "--version ${version}"} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue