mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-07 01:46:54 +00:00
* Fix: add e2e plugin test back * Fix: e2e rollout test and try change port to 37081 * Fix: add rollout plan test back * Refactor: change the workflow state machine and add workflow succeed state * Refactor: refine definition controller and fix e2e of app revision * Refactor: unlock all the normal cases * Fix: add helm schematic logic back into workflow
32 lines
752 B
Bash
Executable File
32 lines
752 B
Bash
Executable File
#! /bin/bash
|
|
DEF_PATH="charts/vela-core/templates/defwithtemplate"
|
|
|
|
function check_install() {
|
|
res=`kubectl get namespace -A | grep vela-system`
|
|
if [ -n "$res" ];then
|
|
echo 'vela-system namespace exist'
|
|
else
|
|
echo 'vela-system namespace do not exist'
|
|
echo 'creating vela-system namespace ...'
|
|
kubectl create namespace vela-system
|
|
fi
|
|
echo "applying definitions ..."
|
|
cd $DEF_PATH
|
|
|
|
for file in *.yaml ;
|
|
do
|
|
echo "Info: changing "$DEF_PATH"/"$file
|
|
sed -i.bak "s#namespace: {{.Values.systemDefinitionNamespace}}#namespace: vela-system#g" $file
|
|
kubectl apply -f $file
|
|
rm $file
|
|
mv $file".bak" $file
|
|
done
|
|
|
|
cd -
|
|
}
|
|
|
|
check_install
|
|
|
|
DEF_PATH="charts/vela-core/templates/definitions"
|
|
|
|
check_install |