Skip to content

Commit

Permalink
update cert manager to v1.14.4 (#592)
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Apr 27, 2024
1 parent ca25e11 commit f822be9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -106,6 +106,9 @@ CAPDO_WORKER_CLUSTER_KUBECONFIG ?= "/tmp/kubeconfig"
# Build time versioning details.
LDFLAGS := $(shell hack/version.sh)

# Other tools versions
CERT_MANAGER_VER := v1.14.4

## --------------------------------------
##@ Help
## --------------------------------------
Expand Down Expand Up @@ -431,7 +434,7 @@ create-management-cluster: $(KUSTOMIZE) $(ENVSUBST)
$(MAKE) kind-create

# Install cert manager and wait for availability
./hack/install-cert-manager.sh
./hack/install-cert-manager.sh $(CERT_MANAGER_VER)

# Deploy CAPI
curl --retry $(CURL_RETRIES) -sSL https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.5.2/cluster-api-components.yaml | $(ENVSUBST) | kubectl apply -f -
Expand Down
2 changes: 1 addition & 1 deletion Tiltfile
Expand Up @@ -17,7 +17,7 @@ settings = {
"preload_images_for_kind": True,
"kind_cluster_name": "capdo",
"capi_version": "v1.6.4",
"cert_manager_version": "v1.10.1",
"cert_manager_version": "v1.14.4",
"kubernetes_version": "v1.29.4",
}

Expand Down
4 changes: 3 additions & 1 deletion hack/install-cert-manager.sh
Expand Up @@ -18,6 +18,8 @@ set -o errexit
set -o nounset
set -o pipefail

CERT_MANAGER_VERSION=${1}

TEST_RESOURCE=$(cat <<-END
apiVersion: v1
kind: Namespace
Expand Down Expand Up @@ -52,7 +54,7 @@ KUBECTL="${REPO_ROOT}/hack/tools/bin/kubectl"
cd "${REPO_ROOT}" && make "${KUBECTL##*/}"

## Install cert manager and wait for availability
"${KUBECTL}" apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.1/cert-manager.yaml
"${KUBECTL}" apply -f https://github.com/cert-manager/cert-manager/releases/download/${CERT_MANAGER_VERSION}/cert-manager.yaml
"${KUBECTL}" wait --for=condition=Available --timeout=5m -n cert-manager deployment/cert-manager
"${KUBECTL}" wait --for=condition=Available --timeout=5m -n cert-manager deployment/cert-manager-cainjector
"${KUBECTL}" wait --for=condition=Available --timeout=5m -n cert-manager deployment/cert-manager-webhook
Expand Down

0 comments on commit f822be9

Please sign in to comment.