-
Notifications
You must be signed in to change notification settings - Fork 77
[ACM-17966] Namespace right sizing recommendation changes #1936
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
base: main
Are you sure you want to change the base?
[ACM-17966] Namespace right sizing recommendation changes #1936
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rajusem The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
...robservability/controllers/multiclusterobservability/multiclusterobservability_controller.go
Outdated
Show resolved
Hide resolved
labelJoin = fmt.Sprintf(`* on (namespace) group_left() (%s or kube_namespace_labels{label_env=""})`, selector) | ||
} else if len(l.ExclusionCriteria) > 0 { | ||
selector := fmt.Sprintf(`kube_namespace_labels{label_env!~"%s"}`, strings.Join(l.ExclusionCriteria, "|")) | ||
labelJoin = fmt.Sprintf(`* on (namespace) group_left() (%s or kube_namespace_labels{label_env=""})`, selector) |
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.
nit: the value of the labelJoin
is the same in both branches so it could be moved out of the if/else
...bservability/controllers/multiclusterobservability/analytics/rightsizing_namespace_policy.go
Outdated
Show resolved
Hide resolved
...bservability/controllers/multiclusterobservability/analytics/rightsizing_namespace_policy.go
Outdated
Show resolved
Hide resolved
...bservability/controllers/multiclusterobservability/analytics/rightsizing_namespace_policy.go
Outdated
Show resolved
Hide resolved
...rvability/controllers/multiclusterobservability/analytics/rightsizing_namespace_configmap.go
Outdated
Show resolved
Hide resolved
...bservability/controllers/multiclusterobservability/analytics/rightsizing_namespace_policy.go
Outdated
Show resolved
Hide resolved
operators/multiclusterobservability/api/v1beta2/multiclusterobservability_types.go
Outdated
Show resolved
Hide resolved
4cca272
to
8a43d3e
Compare
8a43d3e
to
ed00670
Compare
ed00670
to
bca3d46
Compare
0081dc8
to
769e583
Compare
0bc2fb2
to
e7bde48
Compare
80b4398
to
edd9103
Compare
71118df
to
4553689
Compare
d924704
to
6bb3c36
Compare
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
Signed-off-by: Raj Zalavadia <[email protected]>
…ed couple of CI issues Signed-off-by: Darshan Vandra <[email protected]> Signed-off-by: Raj Zalavadia <[email protected]>
c187886
to
ea36b45
Compare
Signed-off-by: Darshan Vandra <[email protected]> Signed-off-by: Raj Zalavadia <[email protected]>
ea36b45
to
21b98cf
Compare
@rajusem: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This PR helps to enable
namespaceRightSizingRecommendation
feature with MCO. User can enable it by updating CRD as below.Epic - https://issues.redhat.com/browse/ACM-17966
Signed-off-by: Raj Zalavadia [email protected]