k8s.io/kubernetes@v1.29.3/test/kubemark/run-e2e-tests.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # Copyright 2015 The Kubernetes Authors.
     4  #
     5  # Licensed under the Apache License, Version 2.0 (the "License");
     6  # you may not use this file except in compliance with the License.
     7  # You may obtain a copy of the License at
     8  #
     9  #     http://www.apache.org/licenses/LICENSE-2.0
    10  #
    11  # Unless required by applicable law or agreed to in writing, software
    12  # distributed under the License is distributed on an "AS IS" BASIS,
    13  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  # See the License for the specific language governing permissions and
    15  # limitations under the License.
    16  
    17  export KUBERNETES_PROVIDER="kubemark"
    18  export KUBE_CONFIG_FILE="config-default.sh"
    19  
    20  KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
    21  
    22  # We need an absolute path to KUBE_ROOT
    23  ABSOLUTE_ROOT=$(readlink -f "${KUBE_ROOT}")
    24  
    25  source "${KUBE_ROOT}/cluster/kubemark/util.sh"
    26  
    27  echo "Kubemark master name: ${MASTER_NAME}"
    28  echo "Kubemark master ip: ${KUBE_MASTER_IP}"
    29  
    30  export KUBE_MASTER_URL="https://${KUBE_MASTER_IP}"
    31  export KUBECONFIG="${ABSOLUTE_ROOT}/test/kubemark/resources/kubeconfig.kubemark"
    32  export E2E_MIN_STARTUP_PODS=0
    33  
    34  ARGS=("$@")
    35  
    36  if [[ "${ENABLE_KUBEMARK_CLUSTER_AUTOSCALER}" == "true" ]]; then
    37    ARGS+=("--kubemark-external-kubeconfig=${DEFAULT_KUBECONFIG}")
    38  fi
    39  
    40  # Running locally.
    41  for ((i=0; i < ${#ARGS[@]}; i++)); do
    42    ARGS[$i]="$(echo "${ARGS[$i]}" | sed -e 's/\[/\\\[/g' -e 's/\]/\\\]/g' )"
    43  done
    44  "${KUBE_ROOT}/hack/ginkgo-e2e.sh" "--e2e-verify-service-account=false" "--dump-logs-on-failure=false" "${ARGS[@]}"