diff --git a/Dockerfile b/Dockerfile index 404227be..28a03e7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,5 +72,6 @@ COPY --from=builder ${DEST_ROOT}/templates ${OPERATOR_TEMPLATES} USER $USER_ID ENV PATH="/:${PATH}" +ENV ENABLE_WEBHOOKS="${ENABLE_WEBHOOKS}" ENTRYPOINT ["/manager"] diff --git a/Makefile b/Makefile index 384c7ad2..1e44fca5 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,8 @@ ENVTEST_K8S_VERSION = 1.29 # Set minimum Go version GOTOOLCHAIN_VERSION ?= go1.21.0 +ENABLE_WEBHOOKS ?= true + # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) GOBIN=$(shell go env GOPATH)/bin