-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Integrate sidecar shim image #11272
Integrate sidecar shim image #11272
Conversation
Hi @dharmit. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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/test-infra repository. |
8b14f4b
to
e281eb6
Compare
Wait for: kubevirt/kubevirt#11272 to get the --sidecar-shim-image parameter on the CSV generator on kubevirt oeprator Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
@alicefr @victortoso @vasiliy-ul can you folks help with review? Pinging you folks since I have noticed you being active on sidecar hook side of the things. :) |
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.
Overall, this looks okay. One thing to consider: we already have some tests for sidecars in tests/vmi_hook_sidecar_test.go
. But they all explicitly set the image. Perhaps we shall consider changing that, so at least a couple of tests run with an empty image. WDYT?
@@ -22,7 +22,9 @@ package services | |||
import ( | |||
"context" | |||
"fmt" | |||
operatorutil "kubevirt.io/kubevirt/pkg/virt-operator/util" |
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: can we move this to the group with local imports?
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.
Ack. Done.
/test pull-kubevirt-build |
/test pull-kubevirt-unit-test |
There are some formatting issues. |
Also, unit-test failure seems caused by this change. |
I agree. I have added one test. If you have a suggestion for more tests in the same file, let me know. I'm open to add more. |
Can you point? I found that running
Thanks. Fixed. |
/test pull-kubevirt-unit-test |
@dharmit: Cannot trigger testing until a trusted user reviews the PR and leaves an In 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/test-infra repository. |
@dharmit, you can see the formatting issue in the details for the diff -u ./pkg/hooks/hooks.go.orig ./pkg/hooks/hooks.go
--- ./pkg/hooks/hooks.go.orig 2024-03-05 08:50:01.812356865 +0000
+++ ./pkg/hooks/hooks.go 2024-03-05 08:50:01.812356865 +0000
@@ -21,6 +21,7 @@
import (
"encoding/json"
+
k8sv1 "k8s.io/api/core/v1"
v1 "kubevirt.io/api/core/v1"
diff -u ./pkg/virt-controller/services/template.go.orig ./pkg/virt-controller/services/template.go
--- ./pkg/virt-controller/services/template.go.orig 2024-03-05 08:50:03.168358416 +0000
+++ ./pkg/virt-controller/services/template.go 2024-03-05 08:50:03.168358416 +0000
@@ -22,12 +22,13 @@
import (
"context"
"fmt"
- operatorutil "kubevirt.io/kubevirt/pkg/virt-operator/util"
"math/rand"
"os"
"strconv"
"strings"
+ operatorutil "kubevirt.io/kubevirt/pkg/virt-operator/util"
+
networkv1 "github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1"
k8sv1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource" Basically, you just need to build your changes locally and the autoformatter will adjust everything as needed. Then simply add and commit the changes. One of the formatting issue is actually about #11272 (comment), which you probably fixed already. |
Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
Oops. My apologies. I didn't run Can you please help trigger a couple of selected tests to verify if we can move further with full tests? |
/test pull-kubevirt-unit-test |
/test pull-kubevirt-goveralls |
I wonder if it's a real failure. Let's see. 😕 |
I think the failure is not related to this PR. Probably the job is not very stable. But lets just try one more time. |
Theres a known issue with the goveralls lane on main at the moment - @fossedihelm is working on a fix. The lane is not required at the moment so it should be ok. |
Ok, then /lgtm |
Required labels detected, running phase 2 presubmits: |
/retest-required |
@vasiliy-ul @brianmcarey should the 'goveralls' lane be manually overwritten? If yes, someone will have to do it on this PR. |
I think the job is not |
Yes tide should handle it - its in a pool waiting for retest. https://prow.ci.kubevirt.io/tide |
@dharmit: The following test failed, say
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/test-infra repository. I understand the commands that are listed here. |
with kubevirt/kubevirt#11272 image field becomes optional in the hook sidecar annotation since, if omitted, virt-controller will now use a default sidecar-shim image built with other kubevirt images. Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
/cherry-pick release-1.2 |
@tiraboschi: #11272 failed to apply on top of branch "release-1.2":
In 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/test-infra repository. |
with kubevirt/kubevirt#11272 image field becomes optional in the hook sidecar annotation since, if omitted, virt-controller will now use a default sidecar-shim image built with other kubevirt images. Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
Wait for: kubevirt/kubevirt#11272 to get the --sidecar-shim-image parameter on the CSV generator on kubevirt oeprator Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
Wait for: kubevirt/kubevirt#11272 to get the --sidecar-shim-image parameter on the CSV generator on kubevirt oeprator Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
Wait for: kubevirt/kubevirt#11272 to get the --sidecar-shim-image parameter on the CSV generator on kubevirt oeprator Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
What this PR does
Before this PR:
image
field in thehooks.kubevirt.io/hookSidecars
annotation in this example was mandatory.After this PR: aforementioned field will be optional.
Fixes #11161
Why we need it and why it was done in this way
The following tradeoffs were made: N/A
The following alternatives were considered: N/A
Links to places where the discussion took place:
Special notes for your reviewer
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note