Commit Graph

969 Commits

Author SHA1 Message Date
Stephen Kitt
5300466a5c Use canonical json-patch v4 import
The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).

Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts, because they won't be offered as automated upgrades
by dependency upgrade management tools, and they won't happen through
indirect dependencies (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:48:22 +02:00
Benjamin Elder
043da7164d update gcb-docker-gcloud to latest, and pin digest
this is a staging repository, which has lower security than registry.k8s.io, so we should REALLY be pinning it.

TODO: This is one of the few places we still depend on GCR to build things. We should consider promoting this image to registry.k8s.io or using a different image.
2024-05-23 13:51:40 -07:00
cpanato
30efae7c8b [go] Bump images, dependencies and versions to go 1.22.3 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-05-12 15:05:26 +02:00
Daman Arora
5aaa37521f agnhost: version bump to v2.52
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-28 16:44:00 +05:30
Daman Arora
90561cb9d9 agnhost/netexec: log hostname
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-28 16:44:00 +05:30
Kubernetes Prow Robot
f6fde3ba7f Merge pull request #124382 from riendeau/agnhostbump
Bump base images for agnhost
2024-04-24 19:00:00 -07:00
Daman Arora
26733f9aa8 Revert "agnhost: update README" 2024-04-24 22:26:33 +05:30
Antonio Ojea
5ed555fb5d Revert "Remove _tmp from test/images/image-util.sh"
This reverts commit 2e465cd6fa.
2024-04-24 13:43:02 +00:00
Antonio Ojea
391e4b58e2 Revert "added init to image-utils.sh"
This reverts commit 7951d7975e.
2024-04-24 13:42:38 +00:00
John Riendeau
62191f637e Bump base images for agnhost 2024-04-24 04:54:06 -05:00
Daman Arora
f5c38b0467 agnhost: update README
dummy commit to trigger agnhost image promotion pipeline

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-24 13:46:22 +05:30
Kubernetes Prow Robot
2806ffea9a Merge pull request #124449 from SergeyKanzhelev/fiximageUtils
added init to image-utils.sh
2024-04-22 23:43:09 -07:00
Sergey Kanzhelev
7951d7975e added init to image-utils.sh 2024-04-22 23:09:35 +00:00
Daman Arora
ce41bc849f agnhost: version bump to v2.50
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-22 16:35:13 +05:30
Daman Arora
1c8799f814 agnhost/connect: send and recv data from SCTP server
If the client immediately closes connection after SCTP handshake,
the server will die with EOF, adding send and recv calls in the
client to make sure server client handling loop exits gracefully.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-22 16:31:48 +05:30
Daman Arora
8cf4567f3c agnhost/netexec: handle nil pointer dereference for SCTP server
If the client immediately closes connection after SCTP handshake, the
remote-addr fetched by SCTP server can be nil, causing the server to crash.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-22 16:31:48 +05:30
Kubernetes Prow Robot
a6bfb92407 Merge pull request #124104 from SergeyKanzhelev/grpcTls
allow agnhost to set TLS gRPC
2024-04-21 18:39:24 -07:00
Sergey Kanzhelev
e9424f34ed allow agnhost to set TLS gRPC 2024-04-19 21:25:10 +00:00
cpanato
1366f1f447 [go] Bump images, dependencies and versions to go 1.22.2 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-04-05 14:27:57 +02:00
cpanato
fc428df491 update setcap/debian-base to bookworm-v1.0.2
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-03-28 14:57:22 +01:00
Kubernetes Prow Robot
1f22594c9a Merge pull request #123742 from thockin/cleanup_underscore_tmp
Cleanup _tmp usage
2024-03-10 17:53:44 -07:00
cpanato
70221e8405 [go] Bump images, dependencies and versions to go 1.22.1 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-03-06 13:09:17 -05:00
Tim Hockin
2e465cd6fa Remove _tmp from test/images/image-util.sh 2024-03-05 21:44:46 -08:00
huweiwen
c134bfe9eb agnhost/mounttest: add new line to output
make the output easier to read.
2024-03-03 23:46:22 +08:00
Arnaud Meukam
3bada5d451 test: Bump CUDA images
Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2024-03-02 09:42:05 +01:00
Jefftree
148757903a release v1.29.2 for sampleapiserver 2024-02-23 19:40:27 -05:00
Davanum Srinivas
ec394ec53d Fix NFS related CI failures
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-02-18 17:24:59 -05:00
Akihiro Suda
9c726b015c agnhost: v2.47
agnhost was updated to v2.46 in PR 123258, but the image was not
published due to the failue of `post-kubernetes-push-e2e-agnhost-test-images`
(issue 123266).

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-14 15:11:31 +09:00
Akihiro Suda
6ff675310c image-util.sh: fix gcr.io/.../agnhost:2.46-linux-amd64 is a manifest list
Fix issue 123266

> CI: `post-kubernetes-push-e2e-agnhost-test-images` is failing
> (`gcr.io/k8s-staging-e2e-test-images/agnhost:2.46-linux-amd64 is a manifest list`)

To avoid creating a manifest list with the recent version of buildx,
`--provenance=false --sbom=false` has to be specified.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-14 01:37:05 +09:00
Akihiro Suda
7ee89440c3 agnhost: v2.46
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-13 23:21:52 +09:00
Akihiro Suda
07c701fecb agnhost: merge registry.k8s.io/stress:v1 (github.com/vishh/stress)
Merge vishh/stress@eab4e3384b into
agnhost.

Old usage: `stress -mem-alloc-size 12Mi -mem-alloc-sleep 10s -mem-total 4Gi`
New usage: `agnhost stress --mem-alloc-size 12Mi --mem-alloc-sleep 10s --mem-total 4Gi`

This is a part of the steps to migrate from legacy Schema 1 images
(issue 123146)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-13 23:21:05 +09:00
cpanato
eec508e488 use patch number
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-09 14:47:56 +01:00
cpanato
ddb0b8da9d [go] Bump images, dependencies and versions to go 1.22
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-09 14:43:34 +01:00
cpanato
ac9482d15f update distroless-iptables to v0.5.0 debian-base to bookworm-v1.0.1 and setcap to bookworm-v1.0.1
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-07 11:46:19 +01:00
Jefftree
6a98704229 Bump to latest version 2024-02-05 21:06:54 +00:00
Manjunath Kumatagi
becb25c01f Bump version for the sample-device-plugin image 2024-02-05 11:40:43 +05:30
cpanato
ee86ca9f13 [go] Bump images, dependencies and versions to go 1.22rc2
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-01-28 10:10:54 +01:00
cpanato
c9991e4270 [go] Bump images, dependencies and versions to go 1.22rc1
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-01-28 10:10:47 +01:00
cpanato
a5861a1262 [go] Bump images, dependencies and versions to go 1.21.6 and distroless iptables to 0.4.4
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-01-11 11:54:35 +01:00
Marko Mudrinić
1c1347a3e7 [go] Bump images, dependencies and versions to go 1.21.5
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-12-06 10:36:35 +01:00
Kubernetes Prow Robot
cf7a150bba Merge pull request #121711 from pacoxu/fix-buildx
Fix buildx add --provenance=false for pause image build and windows servercore cache
2023-11-13 20:30:26 +01:00
cpanato
88e124ecaa [go] Bump images, dependencies and versions to go 1.21.4
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-11-08 08:25:30 -06:00
Paco Xu
70c9eefff3 add --sbom=false --provenance=false for windows servercore cache build 2023-11-04 21:11:05 +08:00
Kubernetes Prow Robot
1c0dbe2eef Merge pull request #121551 from pohly/fix-klog-calls
sample device plugin: fix incorrect Errorf invocation
2023-10-27 13:40:47 +02:00
Patrick Ohly
af14f97cba sample device plugin: fix incorrect Errorf invocation
Linting together with an upcoming klog update finds this problem:

    test/images/sample-device-plugin/sampledeviceplugin.go:165:4: printf: k8s.io/klog/v2.Errorf does not support error-wrapping directive %w (govet)
    			klog.Errorf("Failed to add watch to %q: %w", triggerPath, err)
     			^
2023-10-26 21:22:36 +02:00
Jordan Liggitt
84faaf4427 Prevent sampledeviceplugin binary commit 2023-10-26 09:57:06 -04:00
Jordan Liggitt
110ffa13b7 Delete binary file 2023-10-26 09:48:29 -04:00
Ed Bartosh
8a42be978b Add CDI support to the sample device plugin
Co-authored-by: Evan Lezar <elezar@nvidia.com>
2023-10-23 18:25:59 +03:00
Swati Sehgal
f46cdf1428 node: sample-dp: set default value for pluginSocksDir
Setting a reasonable default in case `PLUGIN_SOCK_DIR`
environment variable is not specified.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:10 +01:00
Swati Sehgal
211d8cc80a node: sample-dp: stubRegisterControlFunc for controlling registration
If the user specifies the intent to control registration process, we rely on
registration triggers (deletion of control file) to prompt registration.

This behvaiour is expected to be consistent across kubelet restarts and therefore
across the watch calls where we watch for changes to the unix socket so we make
this part of Stub object instead of a parameter.

Co-authored-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:10 +01:00