Skip to content

Commit

Permalink
feat(helm): add granular custom labels for ingress and networkPolicy (#…
Browse files Browse the repository at this point in the history
…1982)

Co-authored-by: Gabriele Giacobazzi <[email protected]>
  • Loading branch information
ggiacobazzi and Gabriele Giacobazzi authored Oct 28, 2024
1 parent 2ce053e commit 63b7841
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions helm/akhq/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "0.25.1"
appVersion: "0.25.2"
description: Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
name: akhq
version: 0.25.1
version: 0.25.2
keywords:
- kafka
- confluent
Expand Down
3 changes: 3 additions & 0 deletions helm/akhq/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
helm.sh/chart: {{ include "akhq.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $value := .Values.ingress.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations:
{{- tpl (toYaml .) $ | nindent 4 }}
Expand Down
6 changes: 3 additions & 3 deletions helm/akhq/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
helm.sh/chart: {{ include "akhq.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- range $key, $value := .Values.networkPolicy.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
policyTypes:
- Ingress
Expand Down
2 changes: 2 additions & 0 deletions helm/akhq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ ingress:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels: {}
paths:
- /
pathType: "ImplementationSpecific"
Expand Down Expand Up @@ -191,3 +192,4 @@ affinity: {}

networkPolicy:
enabled: true
labels: {}

0 comments on commit 63b7841

Please sign in to comment.