Skip to content
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

The same env_file creates multiple ConfigMaps #1199

Closed
johnathana opened this issue Dec 17, 2019 · 1 comment
Closed

The same env_file creates multiple ConfigMaps #1199

johnathana opened this issue Dec 17, 2019 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@johnathana
Copy link

Sample docker-compose.yml:

kafka-1:
image: confluentinc/cp-enterprise-kafka:5.3.1
depends_on:
- zookeeper
env_file:
- kafka-common.env
environment:
- KAFKA_BROKER_ID=1
kafka-2:
image: confluentinc/cp-enterprise-kafka:5.3.1
depends_on:
- zookeeper
env_file:
- kafka-common.env
environment:
- KAFKA_BROKER_ID=2
kafka-3:
image: confluentinc/cp-enterprise-kafka:5.3.1
depends_on:
- zookeeper
env_file:
- kafka-common.env
environment:
- KAFKA_BROKER_ID=3

I would expect the generation of one ConfigMap, but instead I get three of them:

INFO Kubernetes file "kafka-1-deployment.yaml" created
INFO Kubernetes file "kafka-1-kafka-common-env-configmap.yaml" created
INFO Kubernetes file "kafka-2-deployment.yaml" created
INFO Kubernetes file "kafka-2-kafka-common-env-configmap.yaml" created
INFO Kubernetes file "kafka-3-deployment.yaml" created
INFO Kubernetes file "kafka-3-kafka-common-env-configmap.yaml" created

@hangyan
Copy link
Contributor

hangyan commented Dec 24, 2019

Seems a code bug.

@hangyan hangyan added the kind/bug Categorizes issue or PR as related to a bug. label Dec 24, 2019
@hangyan hangyan closed this as completed Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants