Skip to content

Commit

Permalink
annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
diranged committed Jan 21, 2025
1 parent 3a90e28 commit ab6a0e9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/local-kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ local-kafka:
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| annotations | object | `{}` | Optionall annotations added to all of the resources managed by this template. |
| clusterName | string | `"default"` | Set the name of the Kafka Cluster that is created for local development |
| kafka.brokerVersion | `str` | `nil` | Optional version of Kafka to install (eg, `2.8.0`) |
| kafka.interBrokerProtocolVersion | `str` | `nil` | Optional value for the inter.broker.protocol.version property (eg. `2.8`) |
Expand Down
2 changes: 1 addition & 1 deletion charts/local-kafka/ci/helm-hook-values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test that setting the helm.sh/hook annotations works as expected and the helm
# tests function
podAnnotations:
annotations:
helm.sh/hook: pre-install
4 changes: 4 additions & 0 deletions charts/local-kafka/templates/kafka-node-pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
{{- end }}
labels:
strimzi.io/cluster: {{ .Values.clusterName }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
roles:
Expand Down
4 changes: 3 additions & 1 deletion charts/local-kafka/templates/kafka.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# https://github.com/strimzi/strimzi-kafka-operator/blob/master/examples/kafka/kafka-ephemeral.yaml
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
Expand All @@ -9,6 +8,9 @@ metadata:
annotations:
strimzi.io/node-pools: enabled
strimzi.io/kraft: enabled
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
kafka:
{{- with .Values.kafka.brokerVersion }}
Expand Down
2 changes: 2 additions & 0 deletions charts/local-kafka/values.local.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Example of setting custom pod annotations
annotations:
testAllAnnotations: value
podAnnotations:
testAnnotation: value
3 changes: 3 additions & 0 deletions charts/local-kafka/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ clusterName: default
# put into is used. It is recommended to keep this empty.
namespaceOverride:

# -- Optionall annotations added to all of the resources managed by this template.
annotations: {}

# -- Optional annotations added to all of the Strimzi-managed Pods.
podAnnotations: {}

Expand Down

0 comments on commit ab6a0e9

Please sign in to comment.