Skip to content

Commit

Permalink
Merge pull request confluentinc#194 from qshao-pivotal/master
Browse files Browse the repository at this point in the history
[cp-kafka-connect] Moved all possible config parameters under configurationOverrides
  • Loading branch information
qshao-pivotal authored Dec 4, 2018
2 parents 99408a6 + d1962b6 commit 181a705
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 35 deletions.
7 changes: 0 additions & 7 deletions charts/cp-kafka-connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ The configuration parameters in this section control the resources requested and

| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `connectKeyConverter` | Converter class for key Connect data. This controls the format of the data that will be written to Kafka for source connectors or read from Kafka for sink connectors. Popular formats include Avro and JSON. |`"io.confluent.connect.avro.AvroConverter"`|
| `connectValueConverter` | Converter class for value Connect data. This controls the format of the data that will be written to Kafka for source connectors or read from Kafka for sink connectors. Popular formats include Avro and JSON. |`"io.confluent.connect.avro.AvroConverter"`|
| `connectKeyConverterSchemaEnable` | Whether or not the converter class for key will have schema enabled. |`false`|
| `connectValueConverterSchemaEnable` | Whether or not the converter class for value will have schema enabled. |`false`|
| `connectInternalKeyConverter` | Converter class for internal key Connect data that implements the Converter interface. Used for converting data like offsets and configs. |`"org.apache.kafka.connect.json.JsonConverter"`|
| `connectInternalValueConverter` | Converter class for offset value Connect data that implements the Converter interface. Used for converting data like offsets and configs. |`"org.apache.kafka.connect.json.JsonConverter"`|
| `pluginPath` | The comma-separated list of paths to directories that contain Kafka Connect plugins. |`"/usr/share/java"`|
| `configurationOverrides` | Kafka Connect [configuration](https://docs.confluent.io/current/connect/references/allconfigs.html) overrides in the dictionary format. | `{}` |
| `customEnv` | Custom enviromental variables | `{}` |

Expand Down
14 changes: 0 additions & 14 deletions charts/cp-kafka-connect/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: CONNECT_PLUGIN_PATH
value: {{ .Values.pluginPath }}
- name: CONNECT_BOOTSTRAP_SERVERS
value: {{ template "cp-kafka-connect.kafka.bootstrapServers" . }}
- name: CONNECT_GROUP_ID
Expand All @@ -85,18 +83,6 @@ spec:
value: {{ template "cp-kafka-connect.cp-schema-registry.service-name" .}}
- name: CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL
value: {{ template "cp-kafka-connect.cp-schema-registry.service-name" .}}
- name: CONNECT_KEY_CONVERTER
value: {{ .Values.connectKeyConverter }}
- name: CONNECT_VALUE_CONVERTER
value: {{ .Values.connectValueConverter }}
- name: CONNECT_KEY_CONVERTER_SCHEMAS_ENABLE
value: "{{ .Values.connectKeyConverterSchemaEnable }}"
- name: CONNECT_VALUE_CONVERTER_SCHEMAS_ENABLE
value: "{{ .Values.connectValueConverterSchemaEnable }}"
- name: CONNECT_INTERNAL_KEY_CONVERTER
value: {{ .Values.connectInternalKeyConverter }}
- name: CONNECT_INTERNAL_VALUE_CONVERTER
value: {{ .Values.connectInternalValueConverter }}
{{- range $key, $value := .Values.configurationOverrides }}
- name: {{ printf "CONNECT_%s" $key | replace "." "_" | upper | quote }}
value: {{ $value | quote }}
Expand Down
26 changes: 12 additions & 14 deletions charts/cp-kafka-connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ imagePullSecrets:

servicePort: 8083

## Kafka Connect Worker Configurations
## Kafka Connect properties
## ref: https://docs.confluent.io/current/connect/userguide.html#configuring-workers
connectKeyConverter: "io.confluent.connect.avro.AvroConverter"
connectValueConverter: "io.confluent.connect.avro.AvroConverter"
connectKeyConverterSchemaEnable: false
connectValueConverterSchemaEnable: false
connectInternalKeyConverter: "org.apache.kafka.connect.json.JsonConverter"
connectInternalValueConverter: "org.apache.kafka.connect.json.JsonConverter"
pluginPath: "/usr/share/java"
configurationOverrides:
"plugin.path": "/usr/share/java"
"key.converter": "io.confluent.connect.avro.AvroConverter"
"value.converter": "io.confluent.connect.avro.AvroConverter"
"key.converter.schemas.enable": "false"
"value.converter.schemas.enable": "false"
"internal.key.converter": "org.apache.kafka.connect.json.JsonConverter"
"internal.value.converter": "org.apache.kafka.connect.json.JsonConverter"

## Additional env variables
customEnv: {}

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down Expand Up @@ -79,9 +83,3 @@ kafka:
## e.g. gnoble-panther-cp-schema-registry:8081
cp-schema-registry:
url: ""

## Kafka Connect properties
configurationOverrides: {}

## Additional env variables
customEnv: {}

0 comments on commit 181a705

Please sign in to comment.