Use legacy CRD manifests when running end-to-end tests against Kubernetes 1.14 and below
Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
parent
e781549b64
commit
78e328259d
@ -48,8 +48,14 @@ wait
|
||||
# Ensure the pebble namespace exists
|
||||
kubectl get namespace "${NAMESPACE}" || kubectl create namespace "${NAMESPACE}"
|
||||
|
||||
crdsmanifest="cert-manager.crds.yaml"
|
||||
if [[ "$K8S_VERSION" =~ 1\.1[1-4] ]]; then
|
||||
crdsmanifest="cert-manager-legacy.crds.yaml"
|
||||
fi
|
||||
bazel build "//deploy/manifests:$crdsmanifest"
|
||||
|
||||
# Install a copy of the CRDs
|
||||
kubectl apply -f "${REPO_ROOT}/deploy/charts/cert-manager/crds/"
|
||||
kubectl apply -f "${REPO_ROOT}/bazel-bin/deploy/manifests/$crdsmanifest"
|
||||
|
||||
# Upgrade or install Pebble
|
||||
helm upgrade \
|
||||
|
||||
@ -25,10 +25,6 @@ SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")
|
||||
# Require helm available on PATH
|
||||
check_tool kind
|
||||
|
||||
export KIND_IMAGE_REPO="kindest/node"
|
||||
# Default Kubernetes version to use to 1.17
|
||||
export K8S_VERSION=${K8S_VERSION:-1.17}
|
||||
|
||||
# Compute the details of the kind image to use
|
||||
export KIND_IMAGE_SHA=""
|
||||
export KIND_IMAGE_CONFIG=""
|
||||
|
||||
@ -23,6 +23,9 @@ export REPO_ROOT="$LIB_ROOT/../.."
|
||||
|
||||
export SKIP_BUILD_ADDON_IMAGES="${SKIP_BUILD_ADDON_IMAGES:-}"
|
||||
export KIND_CLUSTER_NAME="${KIND_CLUSTER_NAME:-kind}"
|
||||
export KIND_IMAGE_REPO="kindest/node"
|
||||
# Default Kubernetes version to use to 1.17
|
||||
export K8S_VERSION=${K8S_VERSION:-1.17}
|
||||
|
||||
# setup_tools will build and set up the environment to use bazel-provided
|
||||
# versions of the tools required for development
|
||||
|
||||
Loading…
Reference in New Issue
Block a user