Skip to content

Commit

Permalink
fix: Ignore self by defaul. #30
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Jan 17, 2023
1 parent 0f0ddf9 commit 6ed489f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/ledger/templates/agent_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions charts/ledger/templates/server_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/ledger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ tolerations: []

ledgerServer:
enabled: true
ignoredAnnotation: true
oidc:
issuerURL: https://[keycloak-url]/auth/realms/[realm-name]
clientID: ledger
Expand All @@ -119,6 +120,7 @@ ledgerServer:

ledgerAgent:
enabled: true
ignoredAnnotation: true
endpoint: http://ledger-server
location: ""
namespaced: false
Expand Down

0 comments on commit 6ed489f

Please sign in to comment.