Skip to content
This repository was 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
hexfusion merged 2 commits into
coreos:masterfrom
alaypatel07:cluster-wide-bug
Dec 13, 2018
Merged

pkg/controller: Fix CR with same name in different namespaces#2026
hexfusion merged 2 commits into
coreos:masterfrom
alaypatel07:cluster-wide-bug

Conversation

@alaypatel07

@alaypatel07 alaypatel07 commented Dec 13, 2018

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator

Can one of the admins verify this patch?

2 similar comments
@etcd-bot

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@etcd-bot

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@hexfusion

Copy link
Copy Markdown
Collaborator

@etcd-bot ok to test

@hexfusion

Copy link
Copy Markdown
Collaborator

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

@alaypatel07

Copy link
Copy Markdown
Collaborator Author

@hexfusion hope that works!

@hexfusion

Copy link
Copy Markdown
Collaborator

lgtm

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

Copy link
Copy Markdown
Collaborator

@alaypatel07 thanks!

@prune998

Copy link
Copy Markdown

thanks !!

@trevex

trevex commented Feb 20, 2019

Copy link
Copy Markdown

@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
Copy Markdown
Collaborator

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

@hexfusion

Copy link
Copy Markdown
Collaborator

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.

5 participants