forked from labring/sealos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a support for community edition simply (labring#3622)
* fix poc bugs * add namespace check and create logic * fix some bugs * modify setup.sh * add preset-admin user * a simple edition of community * fix config
- Loading branch information
Showing
4 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#! /bin/bash | ||
|
||
# check and create namespace of sealos-system | ||
if ! kubectl get namespace sealos-system &> /dev/null; then | ||
# if not exist, create namespace and check until it is created | ||
echo "Namespace sealos-system does not exist. Creating..." | ||
kubectl create namespace sealos-system | ||
echo "Waiting for the creation of namespace sealos-system..." | ||
while ! kubectl get namespace sealos-system &> /dev/null; do | ||
sleep 1 | ||
done | ||
echo "Namespace sealos-system created." | ||
else | ||
echo "Namespace sealos-system already exists. Skipping creation." | ||
fi | ||
|
||
kubectl apply -f manifests/deploy.yaml | ||
|
||
while ! kubectl get crd | grep -q "launchers.infostream.sealos.io"; do | ||
echo "Waiting for launchers.infostream.sealos.io CRD to be created..." | ||
sleep 3 | ||
done | ||
|
||
kubectl apply -f manifests/customconfig.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters