Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smooth some bumps in the KIND env #41

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions testsuite/integration/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022 Hewlett Packard Enterprise Development LP
# Copyright 2022-2023 Hewlett Packard Enterprise Development LP
# Other additional copyright holders may be indicated within.
#
# The entirety of this work is licensed under the Apache License,
Expand Down Expand Up @@ -41,8 +41,8 @@ setup-dws:
cd ../submodules/dws ; \
docker buildx build -t local/dws-operator:test --load . ; \
IMAGE_TAG_BASE=local/dws-operator VERSION=test KIND_CLUSTER=dws make kind-push deploy ; \
kubectl wait deployment --timeout=60s -n dws-operator-system dws-operator-controller-manager --for condition=Available=True ; \
kubectl wait deployment --timeout=60s -n dws-operator-system dws-operator-webhook --for condition=Available=True ; \
kubectl wait deployment --timeout=120s -n dws-operator-system dws-operator-controller-manager --for condition=Available=True ; \
kubectl wait deployment --timeout=120s -n dws-operator-system dws-operator-webhook --for condition=Available=True ; \
}

.PHONY: setup-dws-test-driver
Expand Down
12 changes: 11 additions & 1 deletion testsuite/integration/kind/kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,18 @@ install_dependencies () {
# Create the slurm namespace. This will be the default location of dws-slurm-bb-plugin workflows
kubectl create namespace slurm

# Pull cert-manager into the local cache and push into KIND. Sometimes
# the KIND env cannot pull it from upstream.
CERTVER=v1.11.1
for part in controller webhook cainjector
do
image=quay.io/jetstack/cert-manager-$part:$CERTVER
docker pull $image
kind load docker-image --name=dws $image
done

# Install the cert-manager for the DWS webhook.
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.11.1/cert-manager.yaml
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/$CERTVER/cert-manager.yaml

kubectl wait deployment --timeout=60s -n cert-manager cert-manager --for condition=Available=True
kubectl wait deployment --timeout=60s -n cert-manager cert-manager-cainjector --for condition=Available=True
Expand Down