Repository navigation
Multi-cluster RGs Implementation - #207
Conversation
|
I would change the |
| } | ||
|
|
||
| func (smr *SmartTestRun) Validate() error { | ||
| c := 0 |
There was a problem hiding this comment.
probably renaming this var?
There was a problem hiding this comment.
Well.. I think this is a matter of taste. I named it like that because we already had this code:
Lines 221 to 231 in 422eed0
And I wanted it to look consistent.
| if cluster != "" { | ||
| return cluster | ||
| } | ||
| return "- (multi-cluster)" |
There was a problem hiding this comment.
I would just return "(multi-cluster)"
First, we don't easily have that info (we have the list of matching sandboxes, from where we could resolve the clusters involved). But second, it feels we are mixing meanings if we do that: in one case (regular RGs) the cluster is populated based on the spec, and in the other based on the status, which looks confusing to me. |
E.g.: