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

Update operator-observability version #1774

Merged

Conversation

machadovilaca
Copy link
Member

@machadovilaca machadovilaca commented Mar 26, 2024

operator-observability uses Go 1.21 with a matching version for
prometheus-operator/prometheus-operator that was causing
incompatibilities with CNAO controller-runtime version. This PR
updates operator-observability to a custom working version

/cc @assafad

What this PR does / why we need it:

Special notes for your reviewer:

Release note:

none

Signed-off-by: machadovilaca <machadovilaca@gmail.com>
@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XL labels Mar 26, 2024
Signed-off-by: machadovilaca <machadovilaca@gmail.com>
Copy link

sonarcloud bot commented Mar 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@assafad assafad left a comment

Choose a reason for hiding this comment

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

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 26, 2024
@assafad
Copy link
Contributor

assafad commented Mar 26, 2024

/cc @oshoval, @RamLavi

@oshoval
Copy link
Collaborator

oshoval commented Mar 26, 2024

Thanks

If there is any specific reason maybe worth to add to PR desc

/lgtm

@machadovilaca
Copy link
Member Author

Thanks

If there is any specific reason maybe worth to add to PR desc

/lgtm

sorry, the description was inside the comment delimiters, updated

@oshoval
Copy link
Collaborator

oshoval commented Mar 26, 2024

Thanks
If you can please adhere to PR desc / commits (which are fine here) line length
https://cbea.ms/git-commit/#wrap-72

@@ -14,7 +14,7 @@ require (
github.com/gobwas/glob v0.2.3
github.com/google/go-github/v32 v32.1.0
github.com/kubevirt/monitoring/pkg/metrics/parser v0.0.0-20231024120544-6a3ba1a680b4
github.com/machadovilaca/operator-observability v0.0.7
github.com/machadovilaca/operator-observability v0.0.19-0.20240326121036-9f2e5a31675f
Copy link
Collaborator

@oshoval oshoval Mar 26, 2024

Choose a reason for hiding this comment

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

@RamLavi
Are we fine with custom version ? (here and on few others)
I believe we do since it is official repo, but will be good to have your opinion please
fwiw we are doing the same already one line above

once we want to upgrade again, we will need to change the updated packages together possibly

Copy link
Collaborator

@RamLavi RamLavi Mar 27, 2024

Choose a reason for hiding this comment

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

I don't think we have a problem with that, but one has to make sure to not take a "half baked" version, so it makes sense for @machadovilaca to explain on the commit message why he intentionally didn't choose a formal release for operator-observability (is it because there isn't one yet that has the fix you need? If so - can you try and reach out their maintainer and ask them to issue one?)

Copy link
Collaborator

Choose a reason for hiding this comment

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

IIUC it is because real breaking changes that aint easy to fix
kubernetes/client-go#1075 (comment)

CNAO depends on kubevirt client which use old libs, and if we want to update here, it will conflict
but sure lets hear the PR author he knows best of course

Copy link
Member Author

Choose a reason for hiding this comment

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

due to versions incompatibilities between dependency packages, namely prometheus-operator -> controller-runtime, the proposed version for the operator-observability package, which is not a streamlined version therefore the custom version, uses Golang 1.19 and a downgraded version of prometheus-operator which is compatible with CNAO current state

@oshoval
Copy link
Collaborator

oshoval commented Mar 26, 2024

/test pull-e2e-cluster-network-addons-operator-lifecycle-k8s

@oshoval
Copy link
Collaborator

oshoval commented Mar 28, 2024

Thanks

/approve

@kubevirt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: oshoval

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 28, 2024
@kubevirt-bot kubevirt-bot merged commit 9bdc857 into kubevirt:main Mar 28, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants