Skip to content

Commit

Permalink
add new make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jimassa committed Jun 5, 2024
1 parent af171f4 commit 7f402a5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ YEAR ?= 2022
ALL_ARCH.linux = amd64 arm64
ALL_ARCH.windows = amd64

#######
# TLS #
#######
ENABLE_TLS ?= true
CERT_DIR := $(REPO_ROOT)/.certs

# TAG is OS and platform agonstic, which can be used for binary version and image manifest tag,
# while RETINA_PLATFORM_TAG is platform specific, which can be used for image built for specific platforms.
RETINA_PLATFORM_TAG ?= $(TAG)-$(subst /,-,$(PLATFORM))
Expand Down Expand Up @@ -424,6 +430,37 @@ helm-install-advanced-local-context: manifests
--set enablePodLevel=true \
--set enableAnnotations=true

helm-install-hubble:
helm upgrade --install retina ./deploy/hubble/manifests/controller/helm/retina/ \
--namespace kube-system \
--set operator.enabled=true \
--set operator.repository=$(IMAGE_REGISTRY)/retina-operator-enterprise \
--set operator.tag=$(HELM_IMAGE_TAG) \
--set agent.enabled=true \
--set agent.repository=$(IMAGE_REGISTRY)/retina-agent-enterprise \
--set agent.tag=$(HELM_IMAGE_TAG) \
--set agent.init.enabled=true \
--set agent.init.repository=$(IMAGE_REGISTRY)/retina-agent-init-enterprise \
--set agent.init.tag=$(HELM_IMAGE_TAG) \
--set logLevel=info \
--set hubble.tls.enabled=$(ENABLE_TLS) \
--set hubble.relay.tls.server.enabled=$(ENABLE_TLS) \
--set hubble.tls.auto.enabled=$(ENABLE_TLS) \
--set hubble.tls.auto.method=cronJob \
--set hubble.tls.auto.certValidityDuration=1 \
--set hubble.tls.auto.schedule="*/10 * * * *"

.PHONY: deploy-operator
deploy-operator-hubble:
helm uninstall retina -n kube-system ; \
helm install retina ./deploy/hubble/manifests/controller/helm/retina/ \
--namespace kube-system \
--set operator.enabled=true \
--set agent.enabled=false \
--set operator.repository=$(IMAGE_REGISTRY)/retina-operator \
--set operator.tag=$(HELM_IMAGE_TAG) \
--set logLevel=info

helm-uninstall:
helm uninstall retina -n kube-system

Expand Down

0 comments on commit 7f402a5

Please sign in to comment.