Skip to content

Commit

Permalink
fix: support annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
seagyn committed Apr 25, 2024
1 parent 2377fac commit 6b471cf
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 21 deletions.
4 changes: 2 additions & 2 deletions charts/confluent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: lsdmesp-confluent
version: "0.5.3"
appVersion: "0.5.3"
version: "0.5.4"
appVersion: "0.5.4"
description: 'LSDMESP CFK: LSD Event Streaming Platform with Confluent Operator'
keywords:
- lsdmesp
Expand Down
29 changes: 10 additions & 19 deletions charts/confluent/templates/011.kafka-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-kafka
{{- with $kafka.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
ingressClassName: {{ $kafka.ingress.ingressClassName }}
rules:
Expand All @@ -18,36 +22,23 @@ spec:
number: 9092
path: /
pathType: ImplementationSpecific
tls:
- hosts:
- kafka.{{ $kafka.ingress.baseDomain }}
secretName: {{ $kafka.ingress.tls.secretName }}
{{- range $i := until ($kafka.replicas | int) }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $.Release.Name }}-kafka-broker-{{ $i }}
{{- with $kafka.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
ingressClassName: {{ $kafka.ingress.ingressClassName }}
rules:
- host: kafka-broker-{{ $i }}.{{ $kafka.ingress.baseDomain }}
http:
paths:
- backend:
service:
name: kafka
name: kafka-{{ $i }}-internal
port:
number: 9092
path: /
pathType: ImplementationSpecific
{{- end }}
tls:
- hosts:
- kafka.{{ $kafka.ingress.baseDomain }}
{{- range $i := until ($kafka.replicas | int) }}
- kafka-broker-{{ $i }}.{{ $kafka.ingress.baseDomain }}
secretName: {{ $kafka.ingress.tls.secretName }}-{{ $i }}
{{- end -}}
{{- end }}
secretName: {{ $kafka.ingress.tls.secretName }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/confluent/templates/020.schemaregistry-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-schemaregistry
{{- with $schemaregistry.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
ingressClassName: {{ $schemaregistry.ingress.ingressClassName }}
rules:
Expand Down
4 changes: 4 additions & 0 deletions charts/confluent/templates/030.connect-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-connect
{{- with $connect.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
ingressClassName: {{ $connect.ingress.ingressClassName }}
rules:
Expand Down
4 changes: 4 additions & 0 deletions charts/confluent/templates/031.ksqldb-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-ksqldb
{{- with $ksqldb.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
ingressClassName: {{ $ksqldb.ingress.ingressClassName }}
rules:
Expand Down
4 changes: 4 additions & 0 deletions charts/confluent/templates/050.controlcenter-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-controlcenter
{{- with $controlcenter.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
ingressClassName: {{ $controlcenter.ingress.ingressClassName }}
rules:
Expand Down

0 comments on commit 6b471cf

Please sign in to comment.