-
Notifications
You must be signed in to change notification settings - Fork 17
NETOBSERV-2598: NETOBSERV-2517: Remove dependency on oc/kubectl #457
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
Conversation
|
New image: It will expire after two weeks. To use this build, update your commands using: USER=netobserv VERSION=40b01b8 make commands |
|
New image: It will expire after two weeks. To use this build, update your commands using: USER=netobserv VERSION=c9c2b30 make commands |
| return fmt.Errorf("cannot create Kubernetes client from InClusterConfig: %w", err) | ||
| } | ||
|
|
||
| return clientset.AppsV1().DaemonSets("netobserv-cli").Delete(ctx, "netobserv-cli", v1.DeleteOptions{}) |
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.
The netobserv-cli namespace is configurable in the script
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.
yes, but I don't think it's set when running from the pod? It always uses the default, no?
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.
It's configurable from NETOBSERV_NAMESPACE environment variable.
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.
I mean, ok I will fix it, but it's not a new bug: this variable was already ignored, afaict when the go binary called exec.Command("/oc-netobserv", "stop") from within the collector pod
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.
fixed: 8536824
|
Took the opportunity to address https://issues.redhat.com/browse/NETOBSERV-2598 here since it's straightforward |
leandroberetta
left a comment
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.
lgtm
|
@jotak: This pull request references NETOBSERV-2517 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the vulnerability to target the "4.22.0" version, but no target version was set. DetailsIn response to this: 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@jotak: This pull request references NETOBSERV-2598 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. DetailsIn response to this: 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/cherry-pick release-1.11 |
|
@jotak: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
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. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #457 +/- ##
==========================================
+ Coverage 12.95% 13.18% +0.22%
==========================================
Files 19 20 +1
Lines 2439 2443 +4
==========================================
+ Hits 316 322 +6
+ Misses 2099 2095 -4
- Partials 24 26 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/ok-to-test |
|
/ok-to-test |
|
New image: It will expire after two weeks. To use this build, update your commands using: USER=netobserv VERSION=53424a8 make commands |
|
|
@kapjain-rh the logs show it's using the current "main" image, not the one from this PR: It should be You need to set (Also I think that's what |
|
getting error while capturing metrics |
|
New changes are detected. LGTM label has been removed. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@kapjain-rh last commit should fix it |
The --filename argument of the go binary, which isn't used at the moment, is not sanitized for path traversal. This could be an unnoticed vulnerability if we chose to leverage it later on. This change uses go 1.24 "os.Root" API to prevent path traversal.
For some reason (??) it worked for get-flows but not for get-metrics ... "eval" makes it work for metrics too
|
/ok-to-test |
|
New image: It will expire after two weeks. To use this build, update your commands using: USER=netobserv VERSION=66427b8 make commands |
|
/label qe-approved |
|
@jotak: This pull request references NETOBSERV-2598 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. DetailsIn response to this: 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@jotak: new pull request created: #461 DetailsIn response to this:
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. |
No description provided.