Skip to content
Draft
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*.out

/cert-manager-operator
/http01-proxy

# Log output from telepresence
telepresence.log
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ endif
CERT_MANAGER_VERSION ?= v1.20.3
ISTIO_CSR_VERSION ?= v0.16.0
TRUST_MANAGER_VERSION ?= v0.20.3
HTTP01PROXY_VERSION ?= v0.1.0

# --- Test Versions ---

Expand Down Expand Up @@ -329,10 +330,12 @@ local-run: build ## Run the operator locally against the cluster configured in ~
RELATED_IMAGE_CERT_MANAGER_ACMESOLVER=quay.io/jetstack/cert-manager-acmesolver:$(CERT_MANAGER_VERSION) \
RELATED_IMAGE_CERT_MANAGER_ISTIOCSR=quay.io/jetstack/cert-manager-istio-csr:$(ISTIO_CSR_VERSION) \
RELATED_IMAGE_CERT_MANAGER_TRUST_MANAGER=quay.io/jetstack/trust-manager:$(TRUST_MANAGER_VERSION) \
RELATED_IMAGE_CERT_MANAGER_HTTP01PROXY=quay.io/openshift/cert-manager-http01-proxy:$(HTTP01PROXY_VERSION) \
OPERATOR_NAME=cert-manager-operator \
OPERAND_IMAGE_VERSION=$(BUNDLE_VERSION) \
ISTIOCSR_OPERAND_IMAGE_VERSION=$(ISTIO_CSR_VERSION) \
TRUSTMANAGER_OPERAND_IMAGE_VERSION=$(TRUST_MANAGER_VERSION) \
HTTP01PROXY_OPERAND_IMAGE_VERSION=$(HTTP01PROXY_VERSION) \
OPERATOR_IMAGE_VERSION=$(BUNDLE_VERSION) \
./cert-manager-operator start \
--config=./hack/local-run-config.yaml \
Expand All @@ -352,6 +355,10 @@ build: generate fmt vet build-operator ## Build operator binary with all checks
build-operator: ## Build operator binary only (no checks or code generation).
@GOFLAGS="-mod=vendor" source hack/go-fips.sh && $(GO) build $(GOBUILD_VERSION_ARGS) -o $(BIN)

.PHONY: build-http01-proxy
build-http01-proxy: ## Build HTTP01 proxy binary.
@GOFLAGS="-mod=vendor" source hack/go-fips.sh && $(GO) build $(GOBUILD_VERSION_ARGS) -o $(PROJECT_ROOT)/http01-proxy ./cmd/http01-proxy

.PHONY: run
run: manifests generate fmt vet ## Run the operator from your host (for development).
go run $(PACKAGE)
Expand All @@ -364,6 +371,10 @@ image-build: ## Build container image with the operator.
image-push: ## Push container image with the operator.
$(CONTAINER_ENGINE) push $(IMG) $(CONTAINER_PUSH_ARGS)

.PHONY: image-build-http01-proxy
image-build-http01-proxy: ## Build HTTP01 proxy container image.
$(CONTAINER_ENGINE) build -t cert-manager-http01-proxy:$(HTTP01PROXY_VERSION) -f images/ci/http01proxy.Dockerfile .

# ============================================================================
# Deployment
# ============================================================================
Expand Down
Loading