Skip to content

[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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

rajusem
Copy link

@rajusem rajusem commented Apr 10, 2025

This PR helps to enable namespaceRightSizingRecommendation feature with MCO. User can enable it by updating CRD as below.

kind: MultiClusterObservability
metadata:
  name: observability
spec:
  capabilities:
    platform:
      analytics:
        namespaceRightSizingRecommendation:
          enabled: true

Epic - https://issues.redhat.com/browse/ACM-17966

Signed-off-by: Raj Zalavadia [email protected]

Copy link

openshift-ci bot commented Apr 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rajusem
Once this PR has been reviewed and has the lgtm label, please assign saswatamcode for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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)
Copy link
Contributor

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

@dvandra dvandra force-pushed the namespace-right-sizing-recommendation branch from 4cca272 to 8a43d3e Compare April 28, 2025 08:52
@rajusem rajusem force-pushed the namespace-right-sizing-recommendation branch from 8a43d3e to ed00670 Compare April 29, 2025 06:21
@rajusem rajusem force-pushed the namespace-right-sizing-recommendation branch from ed00670 to bca3d46 Compare April 29, 2025 06:34
@rajusem rajusem force-pushed the namespace-right-sizing-recommendation branch from 0081dc8 to 769e583 Compare April 29, 2025 13:43
@rajusem rajusem force-pushed the namespace-right-sizing-recommendation branch 6 times, most recently from 0bc2fb2 to e7bde48 Compare May 2, 2025 04:31
@dvandra dvandra force-pushed the namespace-right-sizing-recommendation branch 2 times, most recently from 80b4398 to edd9103 Compare May 13, 2025 12:08
@rajusem rajusem force-pushed the namespace-right-sizing-recommendation branch 2 times, most recently from 71118df to 4553689 Compare May 14, 2025 05:10
@dvandra dvandra force-pushed the namespace-right-sizing-recommendation branch 5 times, most recently from d924704 to 6bb3c36 Compare May 14, 2025 10:20
@rajusem rajusem changed the title [WIP][ACM-17966] Namespace right sizing recommendation changes [ACM-17966] Namespace right sizing recommendation changes May 14, 2025
rajusem and others added 14 commits May 14, 2025 16:42
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]>
@dvandra dvandra force-pushed the namespace-right-sizing-recommendation branch 2 times, most recently from c187886 to ea36b45 Compare May 14, 2025 13:03
@dvandra dvandra force-pushed the namespace-right-sizing-recommendation branch from ea36b45 to 21b98cf Compare May 14, 2025 13:21
Copy link

openshift-ci bot commented May 14, 2025

@rajusem: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-kind 21b98cf link true /test e2e-kind
ci/prow/test-e2e 21b98cf link true /test test-e2e

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants