-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
addons: Use configmap for inspektor-gadget #19712
Conversation
Signed-off-by: Qasim Sarfraz <[email protected]>
Hi @mqasimsarfraz. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
Can one of the admins verify this patch? |
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.
Hi!
I tested it and it works fine:
$ go run ./cmd/minikube/ start --addons=inspektor-gadget (remotes/qasim/qasim/ig-configmap) %
π minikube v0.0.0-unset sur Ubuntu 22.04
β¨ Choix automatique du pilote docker. Autres choix: kvm2, qemu2, ssh
π Utilisation du pilote Docker avec le privilΓ¨ge root
π DΓ©marrage du nΕud "minikube" primary control-plane dans le cluster "minikube"
π Extraction de l'image de base v0.0.45-1727108449-19696...
πΎ TΓ©lΓ©chargement du prΓ©chargement de Kubernetes v1.31.1...
> preloaded-images-k8s-v18-v1...: 326.18 MiB / 326.18 MiB 100.00% 28.88 M
> gcr.io/k8s-minikube/kicbase...: 490.00 MiB / 490.00 MiB 100.00% 9.07 Mi
π₯ CrΓ©ation de docker container (CPU=2, Memory=7900Mo) ...
...
π Modules activΓ©s: default-storageclass, inspektor-gadget
π‘ kubectl introuvable. Si vous en avez besoin, essayez : 'minikube kubectl -- get pods -A'
π TerminΓ© ! kubectl est maintenant configurΓ© pour utiliser "minikube" cluster et espace de noms "default" par dΓ©faut.
$ ../kubectl get pod -n gadget (remotes/qasim/qasim/ig-configmap) %
NAME READY STATUS RESTARTS AGE
gadget-mskt7 1/1 Running 0 2m37s
@spowelljr This is sadly not the first time the Inspektor Gadget addons cause you trouble :(.
Indeed, we often modify the surrounding YAML upstream and the container image is adapted to follow it.
Is there a way to automatize porting the upstream changes here? Do you know how other addons handle it?
Best regards.
Hi @eiffel-fl, for some other addons we pull YAMLs from the repo on updates, does https://github.com/inspektor-gadget/inspektor-gadget/blob/4bbe675d85cafd7fe532b9ca6773c231fac8149e/pkg/resources/manifests/deploy.yaml have everything needed? If so I can update the automation to update the images and the YAML when a new version is released. |
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube (PR 19712) start: 49.8s 54.2s 50.6s 49.7s 53.8s Times for minikube ingress: 15.6s 17.6s 16.1s 17.1s 15.1s docker driver with docker runtime
Times for minikube start: 20.5s 20.8s 23.7s 24.2s 21.3s Times for minikube (PR 19712) ingress: 12.3s 12.3s 12.8s 13.3s 12.8s docker driver with containerd runtime
Times for minikube start: 22.8s 22.6s 20.7s 19.9s 20.2s Times for minikube ingress: 22.8s 22.8s 22.8s 22.8s 22.8s |
Here are the number of top 10 failed tests in each environments with lowest flake rate.
Besides the following environments also have failed tests:
To see the flake rates of all tests by environment, click here. |
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.
Thanks for the fast fix!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mqasimsarfraz, spowelljr 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 |
It looks like that file has everything but the CRDs which are available here: https://github.com/inspektor-gadget/inspektor-gadget/blob/4bbe675d85cafd7fe532b9ca6773c231fac8149e/pkg/resources/crd/bases/gadget.kinvolk.io_traces.yaml I'll make a PR shortly to automate updating the YAML files. |
Created #19717 |
We also publish a manifest for each release, I wonder if that can be helpful: https://github.com/inspektor-gadget/inspektor-gadget/releases/download/v0.32.0/inspektor-gadget-v0.32.0.yaml |
That seems to be identical to https://github.com/inspektor-gadget/inspektor-gadget/blob/4bbe675d85cafd7fe532b9ca6773c231fac8149e/pkg/resources/manifests/deploy.yaml, but yes, that was basically what I was looking for, thanks |
Use configmap for inspektor-gadget addon.
fixes: #19710
Testing Done
Before
After
cc: @eiffel-fl