From 80a1d42e80910fc094f7e33d2eb7dbc56f26a050 Mon Sep 17 00:00:00 2001 From: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> Date: Mon, 6 Jan 2025 08:35:05 -0500 Subject: [PATCH] Lint Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> --- build/manage-clusters.sh | 72 ++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/build/manage-clusters.sh b/build/manage-clusters.sh index 22b91de2..401ad408 100755 --- a/build/manage-clusters.sh +++ b/build/manage-clusters.sh @@ -11,7 +11,7 @@ fi # Number of managed clusters MANAGED_CLUSTER_COUNT="${MANAGED_CLUSTER_COUNT:-1}" -if [[ -n "${MANAGED_CLUSTER_COUNT//[0-9]}" ]] || [[ "${MANAGED_CLUSTER_COUNT}" == "0" ]]; then +if [[ -n "${MANAGED_CLUSTER_COUNT//[0-9]/}" ]] || [[ "${MANAGED_CLUSTER_COUNT}" == "0" ]]; then echo "error: provided MANAGED_CLUSTER_COUNT is not a nonzero integer" exit 1 fi @@ -23,21 +23,21 @@ export KIND_NAME="${KIND_PREFIX}1" export CLUSTER_NAME="${CLUSTER_PREFIX}1" # Deploy the hub cluster as cluster1 case ${RUN_MODE} in - delete) - make kind-delete-cluster - ;; - debug) - make e2e-debug - ;; - create) - make kind-deploy-controller - ;; - create-dev) - make kind-prep-ocm - ;; - deploy-addons) - make kind-deploy-addons - ;; +delete) + make kind-delete-cluster + ;; +debug) + make e2e-debug + ;; +create) + make kind-deploy-controller + ;; +create-dev) + make kind-prep-ocm + ;; +deploy-addons) + make kind-deploy-addons + ;; esac if [[ "${RUN_MODE}" == "create" || "${RUN_MODE}" == "create-dev" ]]; then @@ -49,31 +49,31 @@ if [[ "${RUN_MODE}" == "create" || "${RUN_MODE}" == "create-dev" ]]; then fi # Deploy a variable number of managed clusters starting with cluster2 -for i in $(seq 2 $((MANAGED_CLUSTER_COUNT+1))); do +for i in $(seq 2 $((MANAGED_CLUSTER_COUNT + 1))); do export KIND_NAME="${KIND_PREFIX}${i}" export CLUSTER_NAME="${CLUSTER_PREFIX}${i}" export KLUSTERLET_NAME="${CLUSTER_NAME}-klusterlet" case ${RUN_MODE} in - delete) - make kind-delete-cluster - ;; - debug) - make e2e-debug - ;; - create | create-dev) - if [[ "${HOSTED_MODE}" == "true" ]]; then - make kind-deploy-registration-operator-managed-hosted - else - make kind-deploy-registration-operator-managed - fi + delete) + make kind-delete-cluster + ;; + debug) + make e2e-debug + ;; + create | create-dev) + if [[ "${HOSTED_MODE}" == "true" ]]; then + make kind-deploy-registration-operator-managed-hosted + else + make kind-deploy-registration-operator-managed + fi - # Approval takes place on the hub - KIND_KUBECONFIG="${PWD}/kubeconfig_${CLUSTER_PREFIX}1_e2e" make kind-approve-cluster - ;; - deploy-addons) - # ManagedClusterAddon is applied to the hub - KIND_KUBECONFIG="${PWD}/kubeconfig_${CLUSTER_PREFIX}1_e2e" make kind-deploy-addons - ;; + # Approval takes place on the hub + KIND_KUBECONFIG="${PWD}/kubeconfig_${CLUSTER_PREFIX}1_e2e" make kind-approve-cluster + ;; + deploy-addons) + # ManagedClusterAddon is applied to the hub + KIND_KUBECONFIG="${PWD}/kubeconfig_${CLUSTER_PREFIX}1_e2e" make kind-deploy-addons + ;; esac done