Skip to content

Commit

Permalink
cp-kafka-rest: add customEnv (confluentinc#420)
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Thomasson <[email protected]>
  • Loading branch information
jkt628 and Jack Thomasson authored May 1, 2020
1 parent bc75a82 commit c5d157e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/cp-kafka-rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ The configuration parameters in this section control the resources requested and
| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `configurationOverrides` | Kafka REST [configuration](https://docs.confluent.io/current/kafka-rest/docs/config.html) overrides in the dictionary format | `{}` |
| `customEnv` | Custom environmental variables | `{}` |

### Confluent Kafka REST JVM Heap Options

Expand Down
4 changes: 4 additions & 0 deletions charts/cp-kafka-rest/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ spec:
- name: {{ printf "KAFKA_REST_%s" $key | replace "." "_" | upper | quote }}
value: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.customEnv }}
- name: {{ $key | quote }}
value: {{ $value | quote }}
{{- end }}
{{- if .Values.jmx.port }}
- name: KAFKA_REST_JMX_PORT
value: "{{ .Values.jmx.port }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/cp-kafka-rest/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ tolerations: []
configurationOverrides:
# "consumer.request.timeout.ms": 5000

## Additional env variables
customEnv: {}
# ZOOKEEPER_SASL_ENABLED: "false"

## Monitoring
## Kafka REST JMX Settings
## ref: https://docs.confluent.io/current/kafka-rest/docs/monitoring.html
Expand Down

0 comments on commit c5d157e

Please sign in to comment.