Skip to content
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

NETOBSERV-433 and NETOBSERV-373 - unify names #164

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

jotak
Copy link
Member

@jotak jotak commented Sep 7, 2022

  • Use "netobserv" instead of "network-observability" (e.g. as default namespace)

Other required PRs:

@@ -72,7 +72,7 @@ func (c *Reconciler) reconcileNamespace(ctx context.Context) error {
ObjectMeta: metav1.ObjectMeta{
Name: c.privilegedNamespace,
Labels: map[string]string{
"app": "network-observability-operator",
"app": constants.OperatorName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be netobserv-operator or netobserv ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I never realized the privileged namespace had an app label ... @mariomac do you remember why is that? Is it needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I remember it was just to follow k8s recommendations

We also talked about adding app.kubernetes.io/part-of & app.kubernetes.io/version in the past.

Maybe it's the right time to do it ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah as part as I remember it was just for self-documentation metadata. Something like "this namespace belongs to this app", even if it is clear enough in the namespace name.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, to circle back to Julien's first question, as we're talking about "app", netobserv-operator makes more sense I think than netobserv, which isn't an app. That would be different if it was a part-of annotation.

Expect(k8sClient.Get(ctx, nsKey, &ns)).To(Succeed())
Expect(ns.Labels).To(Satisfy(func(labels map[string]string) bool {
return helper.IsSubSet(ns.Labels, map[string]string{
"app": "network-observability-operator",
"app": constants.OperatorName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

- Use "netobserv" instead of "network-observability" (e.g. as default namespace)
@jotak
Copy link
Member Author

jotak commented Sep 16, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Sep 16, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@jpinsonneau
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 16, 2022
@openshift-merge-robot openshift-merge-robot merged commit 275afef into netobserv:main Sep 16, 2022
KalmanMeth pushed a commit to KalmanMeth/network-observability-operator that referenced this pull request Feb 13, 2023
* Add support for barGauge visualization

* Add mice-elephants histogram

* Add support for heatmap visualization

* Update docs/metrics.md

Co-authored-by: Eran Raichstein <eranra@il.ibm.com>

* Update network_definitions/mice_elephants_histogram.yaml

Co-authored-by: Eran Raichstein <eranra@il.ibm.com>

* Update network_definitions/mice_elephants_histogram.yaml

Co-authored-by: Eran Raichstein <eranra@il.ibm.com>

* Rename mice_elephants_histogram.yaml -> flows_length_histogram.yaml

* Remove mice_elephants.yaml

* Change mice-elephants to flows length

* Update buckets

* Fix histograms display by setting threshold

Co-authored-by: Eran Raichstein <eranra@il.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment