Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Annotations needs to be on all resources #15

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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