From 6ed489f359b4c1cdfff4f29263fd136b124fcb0d Mon Sep 17 00:00:00 2001 From: Dries De Peuter Date: Tue, 17 Jan 2023 23:49:41 +0100 Subject: [PATCH] fix: Ignore self by defaul. #30 --- charts/ledger/templates/agent_deployment.yaml | 4 ++++ charts/ledger/templates/server_deployment.yaml | 4 ++++ charts/ledger/values.yaml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/charts/ledger/templates/agent_deployment.yaml b/charts/ledger/templates/agent_deployment.yaml index 4f42e0f..2fc1370 100644 --- a/charts/ledger/templates/agent_deployment.yaml +++ b/charts/ledger/templates/agent_deployment.yaml @@ -6,6 +6,10 @@ metadata: labels: {{- include "ledger.labels" . | nindent 4 }} component: agent + {{- if .Values.ledgerAgent.ignoredAnnotation }} + annotations: + ledger.stenic.io/ignore: "true" + {{- end }} spec: replicas: 1 selector: diff --git a/charts/ledger/templates/server_deployment.yaml b/charts/ledger/templates/server_deployment.yaml index 7b052a4..2f9fabe 100644 --- a/charts/ledger/templates/server_deployment.yaml +++ b/charts/ledger/templates/server_deployment.yaml @@ -6,6 +6,10 @@ metadata: labels: {{- include "ledger.labels" . | nindent 4 }} component: server + {{- if .Values.ledgerServer.ignoredAnnotation }} + annotations: + ledger.stenic.io/ignore: "true" + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/charts/ledger/values.yaml b/charts/ledger/values.yaml index d212e90..1d2cb76 100644 --- a/charts/ledger/values.yaml +++ b/charts/ledger/values.yaml @@ -106,6 +106,7 @@ tolerations: [] ledgerServer: enabled: true + ignoredAnnotation: true oidc: issuerURL: https://[keycloak-url]/auth/realms/[realm-name] clientID: ledger @@ -119,6 +120,7 @@ ledgerServer: ledgerAgent: enabled: true + ignoredAnnotation: true endpoint: http://ledger-server location: "" namespaced: false