Skip to content

Commit

Permalink
feat: add cache labels for sims
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronreynoza committed Sep 12, 2024
1 parent 529d3e8 commit a0b6bb6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mojaloop-simulator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ spec:
labels:
app.kubernetes.io/name: sim-{{ $name }}-cache
{{- include "mojaloop-simulator.common-labels" $ | nindent 8 }}
# Custom Pod Labels
{{- if $config.config.cacheLabels }}
{{- range $key, $value := $config.config.cacheLabels }}
{{ $key }}: {{ tpl $value $ | quote }}
{{- end }}
{{- end }}
spec:
initContainers:
{{ include "mojaloop-simulator.prependDictToContainerEnv" (dict "containers" $config.config.cache.initContainers "dict" $initContainerEnv) | indent 6 }}
Expand Down
1 change: 1 addition & 0 deletions mojaloop-simulator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ defaults:
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
##
podLabels: {}
cacheLabels: {}

## @param podAnnotations Additional custom annotations for pod(s)
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
Expand Down
2 changes: 2 additions & 0 deletions mojaloop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9832,6 +9832,8 @@ mojaloop-simulator:
# Changes to this object in the parent chart, for example 'mojaloop-simulator.defaults' will be
# applied to all simulators deployed by this child chart.
config:
cacheLabels:
sidecar.istio.io/inject: 'false'
# Config for init containers
initContainers:
waitForCache:
Expand Down

0 comments on commit a0b6bb6

Please sign in to comment.