This commit is contained in:
@@ -138,7 +138,7 @@ jobs:
|
|||||||
|
|
||||||
if [ -f "$chart_path/Chart.yaml" ]; then
|
if [ -f "$chart_path/Chart.yaml" ]; then
|
||||||
mkdir -p ${MANIFEST_DIR}/clusters/${CLUSTER}/manifests/$chart_name
|
mkdir -p ${MANIFEST_DIR}/clusters/${CLUSTER}/manifests/$chart_name
|
||||||
OUTPUT_FILE="${MANIFEST_DIR}/clusters/${CLUSTER}/manifests/$chart_name/$chart_name.yaml"
|
OUTPUT_FOLDER="${MANIFEST_DIR}/clusters/${CLUSTER}/manifests/$chart_name/"
|
||||||
|
|
||||||
cd $chart_path
|
cd $chart_path
|
||||||
|
|
||||||
@@ -156,27 +156,27 @@ jobs:
|
|||||||
case "$chart_name" in
|
case "$chart_name" in
|
||||||
"stack")
|
"stack")
|
||||||
echo ">> Special Rendering for stack ..."
|
echo ">> Special Rendering for stack ..."
|
||||||
helm template stack ./ --namespace argocd --include-crds > "$OUTPUT_FILE"
|
helm template stack ./ --namespace argocd --include-crds | yq -s '$OUTPUT_FOLDER + .kind + "-" + .metadata.name'
|
||||||
;;
|
;;
|
||||||
"cilium")
|
"cilium")
|
||||||
echo ">> Special Rendering for cilium ..."
|
echo ">> Special Rendering for cilium ..."
|
||||||
helm template cilium ./ --namespace kube-system --include-crds > "$OUTPUT_FILE"
|
helm template cilium ./ --namespace kube-system --include-crds | yq -s '$OUTPUT_FOLDER + .kind + "-" + .metadata.name'
|
||||||
;;
|
;;
|
||||||
"coredns")
|
"coredns")
|
||||||
echo ">> Special Rendering for coredns ..."
|
echo ">> Special Rendering for coredns ..."
|
||||||
helm template coredns ./ --namespace kube-system --include-crds > "$OUTPUT_FILE"
|
helm template coredns ./ --namespace kube-system --include-crds | yq -s '$OUTPUT_FOLDER + .kind + "-" + .metadata.name'
|
||||||
;;
|
;;
|
||||||
"metrics-server")
|
"metrics-server")
|
||||||
echo ">> Special Rendering for metrics-server ..."
|
echo ">> Special Rendering for metrics-server ..."
|
||||||
helm template metrics-server ./ --namespace kube-system --include-crds > "$OUTPUT_FILE"
|
helm template metrics-server ./ --namespace kube-system --include-crds | yq -s '$OUTPUT_FOLDER + .kind + "-" + .metadata.name'
|
||||||
;;
|
;;
|
||||||
"prometheus-operator-crds")
|
"prometheus-operator-crds")
|
||||||
echo ">> Special Rendering for prometheus-operator-crds ..."
|
echo ">> Special Rendering for prometheus-operator-crds ..."
|
||||||
helm template prometheus-operator-crds ./ --namespace kube-system --include-crds > "$OUTPUT_FILE"
|
helm template prometheus-operator-crds ./ --namespace kube-system --include-crds | yq -s '$OUTPUT_FOLDER + .kind + "-" + .metadata.name'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo ">> Standard Rendering for $chart_name ..."
|
echo ">> Standard Rendering for $chart_name ..."
|
||||||
helm template "$chart_name" ./ --namespace "$chart_name" --include-crds > "$OUTPUT_FILE"
|
helm template "$chart_name" ./ --namespace "$chart_name" --include-crds | yq -s '$OUTPUT_FOLDER + .kind + "-" + .metadata.name'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user