Skip to content

Commit

Permalink
fix: Annotations needs to be on all resources
Browse files Browse the repository at this point in the history
Otherwise sync wave will not include all resources required to deploy Kafka.
  • Loading branch information
sl1pm4t committed Nov 27, 2024
1 parent 0c472f4 commit 070e382
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kafka/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Setup a Kafka cluster using Strimzi operator
name: kafka
version: 0.3.1
version: 0.3.2
type: application
dependencies: []
keywords:
Expand Down
12 changes: 12 additions & 0 deletions charts/kafka/templates/kafka-nodepool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: KafkaNodePool
metadata:
name: {{ include "kafka.fullname" . }}
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels:
strimzi.io/cluster: {{ include "kafka.fullname" . }}
{{- include "kafka.labels" . | nindent 4 }}
Expand Down Expand Up @@ -33,6 +37,10 @@ kind: KafkaNodePool
metadata:
name: {{ include "kafka.fullname" . }}-controller
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels:
strimzi.io/cluster: {{ include "kafka.fullname" . }}
{{- include "kafka.labels" . | nindent 4 }}
Expand Down Expand Up @@ -60,6 +68,10 @@ kind: KafkaNodePool
metadata:
name: {{ include "kafka.fullname" . }}-broker
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels:
strimzi.io/cluster: {{ include "kafka.fullname" . }}
{{- include "kafka.labels" . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: NetworkPolicy
metadata:
name: {{ include "kafka.fullname" . }}-egress-cruise-control
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels: {{ include "kafka.labels" . | nindent 4 }}
spec:
policyTypes:
Expand Down
4 changes: 4 additions & 0 deletions charts/kafka/templates/networkpolicy-egress-kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: NetworkPolicy
metadata:
name: {{ include "kafka.fullname" . }}-egress-kafka
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels: {{ include "kafka.labels" . | nindent 4 }}
spec:
policyTypes:
Expand Down
4 changes: 4 additions & 0 deletions charts/kafka/templates/networkpolicy-egress-zookeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: NetworkPolicy
metadata:
name: {{ include "kafka.fullname" . }}-egress-zookeeper
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels: {{ include "kafka.labels" . | nindent 4 }}
spec:
policyTypes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ kind: CiliumNetworkPolicy
metadata:
name: {{ include "kafka.fullname" . }}-egress-entity-operator
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels: {{ include "kafka.labels" . | nindent 4 }}
spec:
endpointSelector:
Expand Down
4 changes: 4 additions & 0 deletions charts/kafka/templates/networkpolicy-entity-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: NetworkPolicy
metadata:
name: {{ include "kafka.fullname" . }}-egress-entity-operator
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels: {{ include "kafka.labels" . | nindent 4 }}
spec:
policyTypes:
Expand Down
4 changes: 4 additions & 0 deletions charts/kafka/templates/networkpolicy-kafka-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: NetworkPolicy
metadata:
name: {{ include "kafka.fullname" . }}-egress-kafka-exporter
namespace: {{ .Release.Namespace }}
{{- if .Values.additionalAnnotations }}
annotations:
{{ toYaml .Values.additionalAnnotations | nindent 4 }}
{{- end }}
labels: {{ include "kafka.labels" . | nindent 4 }}
spec:
policyTypes:
Expand Down

0 comments on commit 070e382

Please sign in to comment.