-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: mixin generation when cluster label is changed #12613
Changes from all commits
e858975
61451fc
152d533
7f413b7
dd95b2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,9 @@ local utils = import 'mixin-utils/utils.libsonnet'; | |
local cfg = self, | ||
|
||
showMultiCluster:: true, | ||
clusterLabel:: $._config.per_cluster_label, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here and others There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above, I did not see it being used |
||
clusterMatchers:: | ||
if cfg.showMultiCluster then | ||
[utils.selector.re(cfg.clusterLabel, '$cluster')] | ||
[utils.selector.re($._config.per_cluster_label, '$cluster')] | ||
else | ||
[], | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,9 @@ local utils = import 'mixin-utils/utils.libsonnet'; | |
local cfg = self, | ||
|
||
showMultiCluster:: true, | ||
clusterLabel:: $._config.per_cluster_label, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we removing this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed it because it is unused |
||
clusterMatchers:: | ||
if cfg.showMultiCluster then | ||
[utils.selector.re(cfg.clusterLabel, '$cluster')] | ||
[utils.selector.re($._config.per_cluster_label, '$cluster')] | ||
else | ||
[], | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just noting that having to do something like this is yet another reason for us to try and get rid of these giant copy/paste json dashboards at some point