refactor: unify cluster-managed-resource labels #582
Nit: occurrences like operator.etcd.io/cluster="+etcdClusterName in test/e2e can be consolidated further, but not a blocker for me.
Nit: occurrences like operator.etcd.io/cluster="+etcdClusterName in test/e2e can be consolidated further, but not a blocker for me.
Updated. The literals are replaced by controller.ClusterNameLabel in e2e tests.
@ahrtr PTAL, thanks.
let's also add the Secrets created by AutoProvider?
LGTM with a minor comment. thx
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/etcd-io/etcd-operator/pull/582#pullrequestreview-6153653211" title="Approved">ahrtr</a>, <a href="https://github.com/etcd-io/etcd-operator/pull/582#pullrequestreview-6124414267" title="Approved">nwnt</a>, <a href="https://github.com/etcd-io/etcd-operator/pull/582#" title="Author self-approved">silentred</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
Updated. Also added a TODO comment to the Secret, which does not have Labels and OwnerReferences for now.
nwnt
silentred
The two functions
etcdClusterLabelsandclusterNameLabelsare functionally identical. For simplicity, I unified the labels toclusterNameLabels./cc @ahrtr @nwnt