-
Notifications
You must be signed in to change notification settings - Fork 1.1k
drop un-used configmap #1880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drop un-used configmap #1880
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -267,14 +267,11 @@ public void kafka(String namespace, Phase phase) { | |
| deployment.getSpec().getTemplate().getSpec().getContainers().get(0).setImage(imageWithVersion); | ||
|
|
||
| V1Service service = (V1Service) yaml("kafka/kafka-service.yaml"); | ||
| V1ConfigMap configMap = (V1ConfigMap) yaml("kafka/kafka-configmap-startup-script.yaml"); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we do not need the configmap (and the script it had inside it) to properly run kafka broker
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new image has this?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sort of, its an image that has KRaft enabled, by default, so that we don't have to do the hack we did here |
||
|
|
||
| if (phase.equals(Phase.CREATE)) { | ||
| createAndWait(namespace, configMap, null); | ||
| createAndWait(namespace, "kafka", deployment, service, null, false); | ||
| } | ||
| else if (phase.equals(Phase.DELETE)) { | ||
| deleteAndWait(namespace, configMap, null); | ||
| deleteAndWait(namespace, deployment, service, null); | ||
| } | ||
| } | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,24 +21,16 @@ spec: | |
| # and this will cause this problem: https://github.com/confluentinc/cp-docker-images/blob/master/debian/kafka/include/etc/confluent/docker/configure#L58-L62 | ||
| # Another solution is to rename the service. | ||
| enableServiceLinks: false | ||
| volumes: | ||
| - name: kafka-start-config-script | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. drop the volume and the script |
||
| configMap: | ||
| name: kafka-start-config-script | ||
| defaultMode: 0755 | ||
| containers: | ||
| - name: kafka-start-config-script | ||
| volumeMounts: | ||
| - name: kafka-start-config-script | ||
| mountPath: /tmp | ||
| command: | ||
| - /tmp/kafka_start.sh | ||
| image: confluentinc/cp-kafka | ||
| - name: kafka-broker | ||
| image: confluentinc/confluent-local | ||
| ports: | ||
| - containerPort: 9092 | ||
| env: | ||
| - name: KAFKA_BROKER_ID | ||
| value: "1" | ||
| - name: KAFKA_NODE_ID | ||
| value: "1" | ||
| - name: KAFKA_LISTENER_SECURITY_PROTOCOL_MAP | ||
| value: "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT" | ||
| - name: KAFKA_ADVERTISED_LISTENERS | ||
|
|
@@ -47,8 +39,6 @@ spec: | |
| value: "1" | ||
| - name: KAFKA_PROCESS_ROLES | ||
| value: "broker,controller" | ||
| - name: KAFKA_NODE_ID | ||
| value: "1" | ||
| - name: KAFKA_LISTENERS | ||
| value: "PLAINTEXT://:9092,CONTROLLER://:9093" | ||
| - name: KAFKA_INTER_BROKER_LISTENER_NAME | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confluent has a new image, that simplifies work that we have to do when when dealing with kafka