⚠ Replace clusterName string parameter with the explicit type multicluster.ClusterName#133
Conversation
4fad430 to
e36d12f
Compare
|
I feel like we had this before, but that was maybe with a generic. @sttts any objections to this? |
|
A string wrapper type I can see. I was always against making the cluster name generic, i.e. with a type parameter. I tried that once on a branch and it was awful in usability. But this |
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com> Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
|
Okay, sounds good. Since the PR title is the release note in this project, can we maybe make it more descriptive? Something that says "Replace clusterName string parameter for providers with multicluster.ClusterName"? |
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com> Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
e36d12f to
840e933
Compare
|
LGTM label has been added. DetailsGit tree hash: aea305e1a3767c7fd9899c2d984c257d744c8277 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: embik, ntnn The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Typing an identifier has many benefits. It avoids passing the wrong variable at the wrong place, it aids in readability (e.g. we have many places where a cluster name is just referred to as
key- finding out that it is a cluster name then needs some digging, especially when the helper functions that generated the data being iterated over is also very named very nondescript), etcpp