Skip to content

Commit

Permalink
Smooth some bumps in the KIND env (#41)
Browse files Browse the repository at this point in the history
Allow a longer wait for the DWS webhook to start.

In a KIND env, help out when pulling cert-manager images.  When running in a
local KIND env, within the HPE firewall, sometimes my KIND env cannot pull
the cert-manager images.  So I first pull them into my local docker cache,
and then push them into KIND from there.  This gives me a smoother load, and
avoids a lot of time spent in ImagePullBackoff.

Signed-off-by: Dean Roehrich <[email protected]>
  • Loading branch information
roehrich-hpe authored Aug 29, 2023
1 parent 54da40a commit ec7487b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
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

0 comments on commit ec7487b

Please sign in to comment.