fixing up longhorn
This commit is contained in:
1 parent
ad130ec0fd
commit
434eb48631
6 files changed
+36
-12
No files matched your search
+13
-8
@@ -5,15 +5,20 @@ full_path=${1}
|
||||
deployment=${2:-dev}
|
||||
app=$(basename $full_path)
|
||||
location=$(dirname $full_path)
|
||||
tmp_path=$(realpath ".tmp/$location/$deployment-$app.yaml")
|
||||
echo "writing $location/$app to $tmp_path"
|
||||
|
||||
tmp_path=".tmp/$location/$deployment-$app.yaml"
|
||||
argocd_values_path=$(realpath k8s/argocd/values-$deployment.yaml)
|
||||
echo "> writing $location/$app to $tmp_path"
|
||||
echo "> using argo values of $argocd_values_path"
|
||||
cat $argocd_values_path | yq
|
||||
mkdir -p $(dirname $tmp_path)
|
||||
|
||||
pushd $full_path
|
||||
helm dependency update
|
||||
helm template $app . --namespace $app \
|
||||
pushd $full_path &> /dev/null
|
||||
helm dependency update &> /dev/null
|
||||
popd &> /dev/null
|
||||
|
||||
helm template $app $full_path --namespace $app \
|
||||
--debug \
|
||||
--values values.yaml \
|
||||
--values values-$deployment.yaml \
|
||||
--values $argocd_values_path \
|
||||
--values $full_path/values.yaml \
|
||||
--values $full_path/values-$deployment.yaml \
|
||||
> $tmp_path
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
full_path=${1}
|
||||
deployment=${2:-dev}
|
||||
app=$(basename $full_path)
|
||||
location=$(dirname $full_path)
|
||||
tmp_path=$(realpath ".tmp/$location/$deployment-$app.yaml")
|
||||
echo "writing $location/$app to $tmp_path"
|
||||
|
||||
mkdir -p $(dirname $tmp_path)
|
||||
|
||||
pushd $full_path
|
||||
helm dependency update
|
||||
helm upgrade $app . --namespace $app \
|
||||
--debug \
|
||||
--values values.yaml \
|
||||
--values values-$deployment.yaml \
|
||||
> $tmp_path
|
||||
@@ -24,7 +24,7 @@ spec:
|
||||
- nsenter
|
||||
- --mount=/proc/1/ns/mnt
|
||||
- --
|
||||
- bash
|
||||
- sh
|
||||
- -c
|
||||
- *cmd
|
||||
image: alpine:3.12
|
||||
|
||||
@@ -25,7 +25,7 @@ spec:
|
||||
- nsenter
|
||||
- --mount=/proc/1/ns/mnt
|
||||
- --
|
||||
- bash
|
||||
- sh
|
||||
- -c
|
||||
- *cmd
|
||||
image: alpine:3.12
|
||||
|
||||
@@ -1 +1 @@
|
||||
global:
|
||||
global: {}
|
||||
@@ -1 +1 @@
|
||||
global:
|
||||
global: {}
|
||||
Reference in new issue
Block a user