Skip to content

Commit

Permalink
fix: Corrected kafkaconnect template for resources (#11)
Browse files Browse the repository at this point in the history
* fix: Corrected kafkaconnect template for resources

* chore: Removing comments due to failing lint tests
  • Loading branch information
robcoward authored Jan 29, 2025
1 parent d95877f commit fcdf007
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/kafka-connect/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.7
version: 0.1.8

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
11 changes: 5 additions & 6 deletions charts/kafka-connect/templates/connect-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ spec:
version: {{ $config.version | default $global.version }}
replicas: {{ $config.replicas | default $global.replicas }}
resources:
requests:
memory: {{ $config.resources.requests.memory | default $global.resources.requests.memory }}
cpu: {{ $config.resources.requests.cpu | default $global.resources.requests.cpu }}
limits:
memory: {{ $config.resources.limits.memory | default $global.resources.limits.memory }}
cpu: {{ $config.resources.limits.cpu | default $global.resources.limits.cpu }}
{{- if $config.resources -}}
{{ $config.resources | toYaml | nindent 4 }}
{{- else -}}
{{ $global.resources | toYaml | nindent 4 }}
{{- end }}
bootstrapServers: {{ $.Values.kafka.bootstrapServers }}
template:
pod:
Expand Down
2 changes: 1 addition & 1 deletion charts/kafka-connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ global:
memory: 512Mi
cpu: "0.5"
limits:
memory: 1Gi
memory: 2Gi
cpu: "1"
configTopicPrefix: __connect-cluster
version: 3.8.0
Expand Down

0 comments on commit fcdf007

Please sign in to comment.