Skip to content

Commit 1d5f4fb

Browse files
authored
Merge pull request #44 from jan-dexter/support_setting_labels
Allow for setting additional labels on the Deployment and Pod
2 parents 4d3a2d1 + 3c89480 commit 1d5f4fb

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

charts/structurizr/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The Structurizr Helm chart deploys Structurizr On premise flavor. Structurizr is
2626
| ingress.hosts[0].paths[0].path | string | `"/"` | |
2727
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
2828
| ingress.tls | list | `[]` | |
29+
| labels | object | `{}` | Additional labels to set on Deployment and Pod |
2930
| log4j2 | string | `""` | Configuration settings for the logging system using Log4j2. |
3031
| nameOverride | string | `""` | |
3132
| nodeSelector | object | `{}` | |

charts/structurizr/templates/_helpers.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ helm.sh/chart: {{ include "structurizr.chart" . }}
4040
app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }}
4141
{{- end }}
4242
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- with .Values.labels }}
44+
{{ toYaml . }}
45+
{{- end }}
4346
{{- end }}
4447

4548
{{/*

charts/structurizr/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,8 @@ log4j2: |
145145
env: []
146146
# - name: STRUCTURIZR_DATA_DIRECTORY
147147
# value: "/usr/local/structurizr"
148+
149+
# -- Additional labels
150+
labels:
151+
# team: ops
152+
# environment: production

0 commit comments

Comments
 (0)