Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all-in-one: add NO_INSTALL_SEDNA variable flag #227

Merged
merged 2 commits into from
Oct 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scripts/installation/all-in-one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
# SEDNA_VERSION | optional | The Sedna version to be installed.
# if not specified, it will get latest release or v0.4.1
# CLUSTER_NAME | optional | The all-in-one cluster name, default 'sedna-mini'
# NO_INSTALL_SEDNA | optional | If 'false', install Sedna, else no install, default false.
# FORCE_INSTALL_SEDNA | optional | If 'true', force reinstall Sedna, default false.
# NODE_IMAGE | optional | Custom node image
# REUSE_EDGE_CONTAINER | optional | Whether reuse edge node containers or not, default is true
Expand Down Expand Up @@ -86,6 +87,10 @@ function prepare_env() {
# default is true
: ${REUSE_EDGE_CONTAINER:=true}

# whether install sedna control plane or not
# false means install, other values mean no install
: ${NO_INSTALL_SEDNA:=false}

# force install sedna control plane
# default is false
: ${FORCE_INSTALL_SEDNA:=false}
Expand Down Expand Up @@ -242,6 +247,7 @@ function setup_cloudcore() {

function setup_edgemesh() {
# TODO: wait for edgemesh one line installer
:
}

function gen_cni_config() {
Expand Down Expand Up @@ -394,6 +400,10 @@ function clean_edge() {
}

function install_sedna() {
if [[ "$NO_INSTALL_SEDNA" != "false" ]]; then
return
fi

if run_in_control_plane kubectl get ns sedna; then
if [ "$FORCE_INSTALL_SEDNA" != true ]; then
log_info '"sedna" namespace already exists, no install Sedna control components.'
Expand Down