Skip to content

Commit

Permalink
Merge pull request #32 from hxx258456/master
Browse files Browse the repository at this point in the history
fix: update github_proxy bug & calico.yaml url
  • Loading branch information
lework authored Jul 4, 2022
2 parents edb03bb + c8fc424 commit 70da895
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions kainstall-centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2474,8 +2474,8 @@ function add::network() {
elif [[ "$KUBE_NETWORK" == "calico" ]]; then
log::info "[network]" "add calico"
utils::download_file "https://docs.projectcalico.org/v${CALICO_VERSION%.*}/manifests/calico.yaml" "${OFFLINE_DIR}/manifests/calico.yaml"
utils::download_file "https://docs.projectcalico.org/v${CALICO_VERSION%.*}/manifests/calicoctl.yaml" "${OFFLINE_DIR}/manifests/calicoctl.yaml"
utils::download_file "https://projectcalico.docs.tigera.io/archive/v${CALICO_VERSION%.*}/manifests/calico.yaml" "${OFFLINE_DIR}/manifests/calico.yaml"
utils::download_file "https://projectcalico.docs.tigera.io/archive/v${CALICO_VERSION%.*}/manifests/calicoctl.yaml" "${OFFLINE_DIR}/manifests/calicoctl.yaml"
command::exec "${MGMT_NODE}" "
sed -i \"s#:v.*#:v${CALICO_VERSION}#g\" \"${OFFLINE_DIR}/manifests/calico.yaml\"
Expand Down Expand Up @@ -2562,7 +2562,7 @@ function add::addon() {
if [[ "$KUBE_ADDON" == "metrics-server" ]]; then
log::info "[addon]" "download metrics-server manifests"
local metrics_server_file="${OFFLINE_DIR}/manifests/metrics-server.yml"
utils::download_file "${GITHUB_PROXY}/https://github.com/kubernetes-sigs/metrics-server/releases/download/v${METRICS_SERVER_VERSION}/components.yaml" "${metrics_server_file}"
utils::download_file "${GITHUB_PROXY}https://github.com/kubernetes-sigs/metrics-server/releases/download/v${METRICS_SERVER_VERSION}/components.yaml" "${metrics_server_file}"
command::exec "${MGMT_NODE}" "
sed -i -e 's#k8s.gcr.io/metrics-server#$KUBE_IMAGE_REPO#g' \
Expand Down
6 changes: 3 additions & 3 deletions kainstall-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2461,8 +2461,8 @@ function add::network() {
elif [[ "$KUBE_NETWORK" == "calico" ]]; then
log::info "[network]" "add calico"
utils::download_file "https://docs.projectcalico.org/v${CALICO_VERSION%.*}/manifests/calico.yaml" "${OFFLINE_DIR}/manifests/calico.yaml"
utils::download_file "https://docs.projectcalico.org/v${CALICO_VERSION%.*}/manifests/calicoctl.yaml" "${OFFLINE_DIR}/manifests/calicoctl.yaml"
utils::download_file "https://projectcalico.docs.tigera.io/archive/v${CALICO_VERSION%.*}/manifests/calico.yaml" "${OFFLINE_DIR}/manifests/calico.yaml"
utils::download_file "https://projectcalico.docs.tigera.io/archive/v${CALICO_VERSION%.*}/manifests/calicoctl.yaml" "${OFFLINE_DIR}/manifests/calicoctl.yaml"
command::exec "${MGMT_NODE}" "
sed -i \"s#:v.*#:v${CALICO_VERSION}#g\" \"${OFFLINE_DIR}/manifests/calico.yaml\"
Expand Down Expand Up @@ -2549,7 +2549,7 @@ function add::addon() {
if [[ "$KUBE_ADDON" == "metrics-server" ]]; then
log::info "[addon]" "download metrics-server manifests"
local metrics_server_file="${OFFLINE_DIR}/manifests/metrics-server.yml"
utils::download_file "${GITHUB_PROXY}/https://github.com/kubernetes-sigs/metrics-server/releases/download/v${METRICS_SERVER_VERSION}/components.yaml" "${metrics_server_file}"
utils::download_file "${GITHUB_PROXY}https://github.com/kubernetes-sigs/metrics-server/releases/download/v${METRICS_SERVER_VERSION}/components.yaml" "${metrics_server_file}"
command::exec "${MGMT_NODE}" "
sed -i -e 's#k8s.gcr.io/metrics-server#$KUBE_IMAGE_REPO#g' \
Expand Down
6 changes: 3 additions & 3 deletions kainstall-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2462,8 +2462,8 @@ function add::network() {
elif [[ "$KUBE_NETWORK" == "calico" ]]; then
log::info "[network]" "add calico"
utils::download_file "https://docs.projectcalico.org/v${CALICO_VERSION%.*}/manifests/calico.yaml" "${OFFLINE_DIR}/manifests/calico.yaml"
utils::download_file "https://docs.projectcalico.org/v${CALICO_VERSION%.*}/manifests/calicoctl.yaml" "${OFFLINE_DIR}/manifests/calicoctl.yaml"
utils::download_file "https://projectcalico.docs.tigera.io/archive/v${CALICO_VERSION%.*}/manifests/calico.yaml" "${OFFLINE_DIR}/manifests/calico.yaml"
utils::download_file "https://projectcalico.docs.tigera.io/archive/v${CALICO_VERSION%.*}/manifests/calicoctl.yaml" "${OFFLINE_DIR}/manifests/calicoctl.yaml"
command::exec "${MGMT_NODE}" "
sed -i \"s#:v.*#:v${CALICO_VERSION}#g\" \"${OFFLINE_DIR}/manifests/calico.yaml\"
Expand Down Expand Up @@ -2550,7 +2550,7 @@ function add::addon() {
if [[ "$KUBE_ADDON" == "metrics-server" ]]; then
log::info "[addon]" "download metrics-server manifests"
local metrics_server_file="${OFFLINE_DIR}/manifests/metrics-server.yml"
utils::download_file "${GITHUB_PROXY}/https://github.com/kubernetes-sigs/metrics-server/releases/download/v${METRICS_SERVER_VERSION}/components.yaml" "${metrics_server_file}"
utils::download_file "${GITHUB_PROXY}https://github.com/kubernetes-sigs/metrics-server/releases/download/v${METRICS_SERVER_VERSION}/components.yaml" "${metrics_server_file}"
command::exec "${MGMT_NODE}" "
sed -i -e 's#k8s.gcr.io/metrics-server#$KUBE_IMAGE_REPO#g' \
Expand Down

0 comments on commit 70da895

Please sign in to comment.