KubeZero/admin/dev_apply.sh

23 lines
555 B
Bash
Raw Normal View History

2023-08-16 10:17:39 +00:00
#!/bin/bash
#set -eEx
#set -o pipefail
set -x
#VERSION="latest"
2023-11-15 22:35:53 +00:00
KUBE_VERSION="v1.27.8"
2023-08-16 10:17:39 +00:00
WORKDIR=$(mktemp -p /tmp -d kubezero.XXX)
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# shellcheck disable=SC1091
. "$SCRIPT_DIR"/libhelm.sh
CHARTS="$(dirname $SCRIPT_DIR)/charts"
get_kubezero_values
# Always use embedded kubezero chart
helm template $CHARTS/kubezero -f $WORKDIR/kubezero-values.yaml --kube-version $KUBE_VERSION --version ~$KUBE_VERSION --devel --output-dir $WORKDIR
# CRDs first
_helm crds $1
_helm apply $1