Skip to content

Commit

Permalink
chore: show install options when installing (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Feb 14, 2022
1 parent 657c3d6 commit 273eb84
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install
Expand Down Expand Up @@ -166,6 +167,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install
Expand Down Expand Up @@ -222,6 +224,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install
Expand Down Expand Up @@ -278,6 +281,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install-underlay
Expand Down Expand Up @@ -350,6 +354,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install-single
Expand Down Expand Up @@ -406,6 +411,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install
Expand Down Expand Up @@ -444,6 +450,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install-ipv6
Expand Down Expand Up @@ -500,6 +507,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install-ipv6
Expand Down Expand Up @@ -556,6 +564,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install-underlay-ipv6
Expand Down Expand Up @@ -628,6 +637,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install-dual
Expand Down Expand Up @@ -684,6 +694,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install-underlay-dual
Expand Down Expand Up @@ -756,6 +767,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install-underlay-logical-gateway-dual
Expand Down Expand Up @@ -830,6 +842,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install
Expand Down Expand Up @@ -888,6 +901,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo make kind-install
Expand Down Expand Up @@ -944,6 +958,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo ENABLE_NP=false make kind-install
Expand Down Expand Up @@ -1000,6 +1015,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo PATH=~/.local/bin:$PATH make kind-install-cluster
sudo PATH=~/.local/bin:$PATH make kind-install-ic
Expand Down Expand Up @@ -1062,6 +1078,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 3
shell: bash
command: |
sudo PATH=~/.local/bin:$PATH make kind-install-cilium
docker exec kube-ovn-control-plane bash -c "ls -al /etc/cni/net.d/"
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GO_VERSION = 1.17
SHELL=/bin/bash

REGISTRY = kubeovn
DEV_TAG = dev
Expand Down
14 changes: 14 additions & 0 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ then
set -u
fi

echo "-------------------------------"
echo "Kube-OVN Version: $VERSION"
echo "Default Network Mode: $NETWORK_TYPE"
if [[ $NETWORK_TYPE = "vlan" ]];then
echo "Default Vlan Nic: $VLAN_INTERFACE_NAME"
echo "Default Vlan ID: $VLAN_ID"
fi
echo "Default Subnet CIDR: $POD_CIDR"
echo "Join Subnet CIDR: $JOIN_CIDR"
echo "Enable SVC LB: $ENABLE_LB"
echo "Enable Networkpolicy: $ENABLE_NP"
echo "Enable Mirror: $ENABLE_MIRROR"
echo "-------------------------------"

if [[ $ENABLE_SSL = "true" ]];then
echo "[Step 0/6] Generate SSL key and cert"
exist=$(kubectl get secret -n kube-system kube-ovn-tls --ignore-not-found)
Expand Down

0 comments on commit 273eb84

Please sign in to comment.