Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

pkg/controller: Fix CR with same name in different namespaces #2026

Merged
merged 2 commits into from
Dec 13, 2018

Conversation

alaypatel07
Copy link
Collaborator

@alaypatel07 alaypatel07 commented Dec 13, 2018

This patch uses <namespace>/<cluster-name> as key to store the cluster in Controller struct to avoid over-writing same named CR's in different namespaces.

Fixes #1954

Please read https://github.com/coreos/etcd-operator/blob/master/CONTRIBUTING.md#contribution-flow

This patch uses <namespace>/<cluster-name> as key to store the cluster in Controller struct to avoid over-writing same named CR's in different namespaces.

Fixes coreos#1954
@etcd-bot
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@etcd-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@etcd-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@hexfusion
Copy link
Member

@etcd-bot ok to test

@hexfusion
Copy link
Member

@alaypatel07 thank you very much this looks great. Can you also update the CHANGELOG?

@alaypatel07
Copy link
Collaborator Author

@hexfusion hope that works!

@hexfusion
Copy link
Member

lgtm

@hexfusion hexfusion merged commit 65b572c into coreos:master Dec 13, 2018
@hexfusion
Copy link
Member

@alaypatel07 thanks!

@prune998
Copy link

thanks !!

@trevex
Copy link

trevex commented Feb 20, 2019

@hexfusion Any idea when the next etcd-operator release is gonna come out? We use a single etcd-operator with the cluster-wide option and we had several name clashes in the past in development environments, so this fix is highly appreciated.

@hexfusion
Copy link
Member

@trevex we just merged #2028 and will begin moving towards release.

@hexfusion
Copy link
Member

Hopefully next week on time-frame.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants