Skip to content

Commit ef1ebff

Browse files
authored
chore: Setting pubsub annotations using --set in makefile (#3160)
Signed-off-by: Jaydip Gabani <[email protected]>
1 parent 07d5d57 commit ef1ebff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ e2e-helm-install:
186186

187187
e2e-helm-deploy: e2e-helm-install
188188
ifeq ($(ENABLE_PUBSUB),true)
189-
@echo 'auditPodAnnotations: {dapr.io/enabled: "true", dapr.io/app-id: "audit", dapr.io/metrics-port: "9999"}' > .tmp/annotations.yaml
190189
./.staging/helm/linux-amd64/helm install manifest_staging/charts/gatekeeper --name-template=gatekeeper \
191190
--namespace ${GATEKEEPER_NAMESPACE} \
192191
--debug --wait \
@@ -206,7 +205,9 @@ ifeq ($(ENABLE_PUBSUB),true)
206205
--set audit.enablePubsub=${ENABLE_PUBSUB} \
207206
--set audit.connection=${AUDIT_CONNECTION} \
208207
--set audit.channel=${AUDIT_CHANNEL} \
209-
--values .tmp/annotations.yaml \
208+
--set-string auditPodAnnotations.dapr\\.io/enabled=true \
209+
--set-string auditPodAnnotations.dapr\\.io/app-id=audit \
210+
--set-string auditPodAnnotations.dapr\\.io/metrics-port=9999 \
210211
--set mutationAnnotations=true;
211212
else
212213
./.staging/helm/linux-amd64/helm install manifest_staging/charts/gatekeeper --name-template=gatekeeper \

0 commit comments

Comments
 (0)