Skip to content

Commit 4bd17ed

Browse files
authored
Merge pull request #20 from osodevops/PLAT-442
Plat 442
2 parents 77268a9 + 4135026 commit 4bd17ed

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

charts/kafka-connect/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.3.2
18+
version: 0.3.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/kafka-connect/templates/connect-cluster.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ spec:
4848
value: "none"
4949
{{- end }}
5050
pod:
51+
metadata:
52+
annotations:
53+
{{- if $.Values.podAnnotations }}
54+
{{ toYaml $.Values.podAnnotations | indent 10 }}
55+
{{- end }}
5156
affinity:
57+
{{- if $.Values.podAntiAffinity.enabled }}
5258
podAntiAffinity:
5359
requiredDuringSchedulingIgnoredDuringExecution:
5460
- labelSelector:
@@ -58,6 +64,8 @@ spec:
5864
values:
5965
- {{ $connect_name }}
6066
topologyKey: "kubernetes.io/hostname"
67+
{{- end }}
68+
{{- if $.Values.nodeAffinity.enabled }}
6169
nodeAffinity:
6270
requiredDuringSchedulingIgnoredDuringExecution:
6371
nodeSelectorTerms:
@@ -66,6 +74,7 @@ spec:
6674
operator: In
6775
values:
6876
- amd64
77+
{{- end }}
6978
{{- if $.Values.monitoring.enabled }}
7079
metricsConfig:
7180
type: jmxPrometheusExporter
@@ -76,10 +85,12 @@ spec:
7685
{{ end }}
7786
config:
7887
group.id: {{ $config.groupId | default $connect_name }}
88+
{{- if $config.providersClass }}
7989
config.providers: {{ $config.providersClass | keys | join ", " }}
8090
{{- range $provider, $class := $config.providersClass }}
8191
config.providers.{{ $provider }}.class: {{ $class }}
8292
{{- end }}
93+
{{- end }}
8394
{{- include "kafka-connect.storageConfig" (dict "global" $global "config" $config "clustername" $connect_name) | indent 4}}
8495
---
8596
{{- end }}

charts/kafka-connect/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ serviceAccount:
3737
# If not set and create is true, a name is generated using the fullname template
3838
name: ""
3939

40+
podAntiAffinity:
41+
enabled: true # Set to false to disable default pod anti-affinity
42+
43+
nodeAffinity:
44+
enabled: true
45+
4046
monitoring:
4147
enabled: false
4248
podMonitor:
@@ -62,6 +68,11 @@ debezium_database:
6268
port: "3306"
6369
db_name: "your_database"
6470

71+
podAnnotations: {}
72+
# Example:
73+
# podAnnotations:
74+
# eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/dummy-role
75+
# iam.amazonaws.com/role: dummy-role-for-gke
6576

6677
# env:
6778
# - name: AWS_ROLE_SESSION_NAME >> https://github.com/tulios/kafkajs/issues/1582

0 commit comments

Comments
 (0)