Skip to content

Commit

Permalink
fix: cmctl has moved out of cm/cm
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Talbot <adam.talbot@venafi.com>
ThatsMrTalbot committed Jun 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4cd7d1f commit f02940e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[0-9a-zA-Z_-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)

OLM_PACKAGE_NAME ?= cert-manager
IMG_BASE_DEFAULT := ttl.sh/$(shell uuidgen)/cert-manager
IMG_BASE_DEFAULT := ttl.sh/$(shell uuidgen | tr A-Z a-z)/cert-manager
IMG_BASE ?= $(IMG_BASE_DEFAULT)
BUNDLE_IMG_BASE ?= ${IMG_BASE}-olm-bundle
BUNDLE_IMG ?= ${BUNDLE_IMG_BASE}:${BUNDLE_VERSION}
@@ -60,6 +60,7 @@ KUSTOMIZE_VERSION ?= 5.3.0
KIND_VERSION ?= 0.21.0
OPERATOR_SDK_VERSION ?= 1.33.0
OPM_VERSION ?= 1.36.0
CMCTL_VERSION ?= 2.0.0

comma := ,
empty :=
@@ -73,19 +74,19 @@ kustomize = ${bin}/kustomize-${KUSTOMIZE_VERSION}
kind = ${bin}/kind-${KIND_VERSION}
operator_sdk = ${bin}/operator-sdk-${OPERATOR_SDK_VERSION}
opm = ${bin}/opm-${OPM_VERSION}
cmctl = ${bin}/cmctl-${CERT_MANAGER_VERSION}
cmctl = ${bin}/cmctl-${CMCTL_VERSION}

${kustomize}: url := https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_${os}_${arch}.tar.gz
${kustomize}:
mkdir -p $(dir $@)
curl -sSL ${url} | tar --directory $(dir $@) -xzf - kustomize
mv $(dir $@)/kustomize $@

${cmctl}: url := https://github.com/cert-manager/cert-manager/releases/download/v$(CERT_MANAGER_VERSION)/cmctl-$(os)-$(arch).tar.gz
${cmctl}: url := https://github.com/cert-manager/cmctl/releases/download/v$(CMCTL_VERSION)/cmctl_$(os)_$(arch)
${cmctl}:
mkdir -p $(dir $@)
curl -fsSL ${url} | tar --directory $(dir $@) -xzf - cmctl
mv $(dir $@)cmctl $@
curl -fsSL ${url} > $@
chmod +x $@

${kind}: url := https://github.com/kubernetes-sigs/kind/releases/download/v${KIND_VERSION}/kind-${os}-${arch}
${operator_sdk}: url := https://github.com/operator-framework/operator-sdk/releases/download/v${OPERATOR_SDK_VERSION}/operator-sdk_${os}_${arch}
@@ -275,7 +276,7 @@ kind-cluster: ${kind}
bundle-test: ## Build bundles and test locally as described at https://operator-framework.github.io/community-operators/testing-operators/
bundle-test: $(cmctl) bundle-build bundle-push catalog-build catalog-push kind-cluster deploy-olm catalog-deploy subscription-deploy
timeout 5m sed '/install strategy completed/q' < <(kubectl get events --namespace operators --watch)
$(cmctl) check api --wait=5m -v
$(cmctl) check api --wait=5m
$(cmctl) version -o yaml

.PHONY: clean-kind-cluster

0 comments on commit f02940e

Please sign in to comment.