-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(local-kafka): switch to kraft, start faster, allow annotations (#…
…355) ## Goal The goal for this PR is to improve the usability of the `local-kafka` chart by reducing its startup time, introducing podAnnotations and removing old legacy settings: ### Change: Removed legacy startup/readiness probe delays We no longer see the Strimzi Operator take minutes to start up on M1 laptops, so I am removing the arbitrary startup/readiness probe delays. ### Change: Replace Zookeeper with KRaft Strimzi is moving to removing Zookeeper entirely in the 0.46.0 release anyways ... this change gets our local testing setup that way ahead of the change. This also reduces the number of pods that have to run locally, reducing the total startup time of a full testing environment. ### Change: Introduce `podAnnotations` and `annotations` settings If you set `.Values.podAnnotations: { ... }` now we will add these annotations to the Kafka and Entity Operator pods. This makes it easier to tell Helm to start these pods up before the rest of the tested resources get created. --------- Co-authored-by: Matt Wise <[email protected]>
- Loading branch information
Showing
11 changed files
with
136 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ apiVersion: v2 | |
name: local-kafka | ||
description: Local Development spinup of Strimzi-managed Kafka | ||
type: application | ||
version: 0.42.1 | ||
version: 0.43.0 | ||
appVersion: latest | ||
maintainers: | ||
- name: diranged | ||
email: [email protected] | ||
dependencies: | ||
- name: strimzi-kafka-operator | ||
version: 0.42.0 | ||
version: 0.45.0 | ||
repository: https://strimzi.io/charts | ||
condition: strimzi-kafka-operator.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../values.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Test that setting the helm.sh/hook annotations works as expected and the helm | ||
# tests function | ||
annotations: | ||
helm.sh/hook: pre-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../values.local.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaNodePool | ||
metadata: | ||
name: {{ .Values.clusterName }} | ||
{{- with .Values.namespaceOverride }} | ||
namespace: {{ . }} | ||
{{- end }} | ||
labels: | ||
strimzi.io/cluster: {{ .Values.clusterName }} | ||
{{- with .Values.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
replicas: 1 | ||
roles: | ||
- controller | ||
- broker | ||
storage: | ||
type: jbod | ||
volumes: | ||
- id: 0 | ||
type: persistent-claim | ||
size: 500Mi | ||
deleteClaim: false | ||
kraftMetadata: shared | ||
template: | ||
pod: | ||
metadata: | ||
annotations: | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 10 }} | ||
{{- end }} | ||
{{- with .Values.podAnnotations }} | ||
{{- toYaml . | nindent 10 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Example of setting custom pod annotations | ||
annotations: | ||
testAllAnnotations: value | ||
podAnnotations: | ||
testAnnotation: value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters