Commit Graph

10594 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9a50e30636 Merge pull request #132668 from dims/fix-todos-from-sorted-features-original-pr
Fix todos from sorted features golangci-lint plugin PR
2025-07-09 13:15:26 -07:00
ArkaSaha30
621482d68b update pause version to 3.10.1
This commit will update the pause version to 3.10.1 as per thread: https://kubernetes.slack.com/archives/CJH2GBF7Y/p1741674313893029

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2025-07-09 16:38:14 +05:30
Kubernetes Prow Robot
4fedef93d1 Merge pull request #132820 from dims/update-to-v1.1.4-for-golang.org/x/vuln/cmd/govulncheck
Update to v1.1.4 for golang.org/x/vuln/cmd/govulncheck
2025-07-08 20:01:33 -07:00
Kubernetes Prow Robot
b0e1a16e94 Merge pull request #132155 from vekarpov/132153
feat verify-goluncheck: add -q flag for git worktree command
2025-07-08 11:45:27 -07:00
Davanum Srinivas
637bf55cbc bump golang.org/x/vuln/cmd/govulncheck to v1.1.4
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-07-08 13:48:26 -04:00
Sascha Grunert
841886df76 Convert externaljwt from gogo to protoc
Use standard protoc for the `externaljwt` package instead of gogo.

Part of https://github.com/kubernetes/kubernetes/issues/96564

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-07-08 08:08:30 +02:00
Patrick Ohly
b22ffdb48f golangci-lint: exclude naming convention check for swagger docs
This started to show up now as linter hints at the start of the 1.34 cycle in
all PRs which modify the API. We don't want to enforce that convention in that
generated code, so suppressing it.
2025-07-06 16:54:04 +02:00
Sascha Grunert
b464bbeb8f Remove gogo-protobuf from CRI
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-07-04 08:55:57 +02:00
Davanum Srinivas
1514568ddf rename sortedfeatures -> sorted
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-07-01 22:12:26 -04:00
Davanum Srinivas
9e1a21816d update README
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-07-01 22:03:22 -04:00
Davanum Srinivas
5cebe66b64 update log line
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-07-01 21:57:50 -04:00
Jefftree
ec6471f63e Remove gnostic-models gopkg.in/yaml.v3 unwanted dependency 2025-07-01 15:56:40 +00:00
Kubernetes Prow Robot
c6539bc785 Merge pull request #132284 from ArkaSaha30/bump-etcd-3.6.1
Bump etcd to v3.6.1
2025-06-30 11:00:35 -07:00
Davanum Srinivas
f2d8b7ec2c Add linter to report on unsorted feature gates
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-27 11:05:13 -04:00
Kubernetes Prow Robot
ec1803cab8 Merge pull request #132509 from yongruilin/fix-make-vet
chore: Remove vet target and associated script from Makefile and hack directory
2025-06-26 00:26:34 -07:00
Kubernetes Prow Robot
b3e438aef9 Merge pull request #132220 from BenTheElder/a-little-owners-cleanup
emeritus spiffxp and backfill OWNERS
2025-06-25 19:16:28 -07:00
yongruilin
8b2eb9090e chore: Remove vet target and associated script from Makefile and hack directory 2025-06-25 17:39:14 +00:00
Patrick Ohly
49ebabb54e verify: additional validation of e2e.test --list-images output
If the command failed in the <( ... ) expression, the return code was ignored
and the script continued with potentially no output. Not likely, but it's still
better to invoke the command where pipefail will catch a non-zero exit
code. For example, broken test registration could cause this.

There should be no log output, but if there is, failing explicitly is better
than ignoring it (on stderr) or treating it like an image (on stdout). Found
when experimenting with the logging configuration of e2e.test, currently there
is no such unwanted log output.
2025-06-25 10:30:45 +02:00
Patrick Ohly
73627dd663 verify: improve output of verify-e2e-images.sh
Before:

    Diffing e2e image list ...
    --- /dev/fd/63	2025-06-24 09:32:43.736397729 +0200
    +++ /dev/fd/62	2025-06-24 09:32:43.736397729 +0200
    @@ -5,7 +5,7 @@ invalid.registry.k8s.io/invalid/alpine
     registry.k8s.io/build-image/distroless-iptables
     registry.k8s.io/cloud-provider-gcp/gcp-compute-persistent-disk-csi-driver
     registry.k8s.io/e2e-test-images/agnhost
    -registry.k8s.io/e2e-test-images/apparmor-loader
    +registry.k8s.io/e2e-test-images/apparmor-no-such-image
     registry.k8s.io/e2e-test-images/busybox
     registry.k8s.io/e2e-test-images/httpd
     registry.k8s.io/e2e-test-images/ipc-utils
    FAIL: e2e images do not match the approved list!

For this test, apparmor-loader was commented out in .permitted-images (making
it a forbidden unknown image) and apparmor-no-such-image was added (making it
an obsolete image).

Problems with the output:
- The position of old and new image lists was reversed.
- It's not clear what is being diffed. Not referencing .permitted-images
  directly probably was meant to discourage using some image other than
  agnhost, but developers can easily find the file anyway and are shown
  some other images in the diff context.

After:

    Diffing e2e image list ...
    obsolete image: registry.k8s.io/e2e-test-images/apparmor-no-such-image
    forbidden image: registry.k8s.io/e2e-test-images/apparmor-loader
    FAIL: current e2e images do not match the approved list in test/images/.permitted-images!

This mentions test/images/.permitted-images because developers might have to
edit it if some image really becomes obsolete.
2025-06-25 10:30:45 +02:00
Kubernetes Prow Robot
8d2a5a2c9c Merge pull request #132499 from liggitt/unwanted-json-patch-v5
Add json-patch v4 compatibility test
2025-06-24 09:54:35 -07:00
Stephen Kitt
2ca4ffe653 Add evanphx/json-patch/v5 to unwanted dependencies
This comes up periodically; bumping to v5 introduces issues with
replace operations in JSON patches. k/k relies on non-RFC-compliant
operations which v5 no longer allows.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-06-24 09:18:04 -04:00
Davanum Srinivas
138e363e41 cleanup shellcheck for temporary HOME directory
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-19 11:48:15 -04:00
Davanum Srinivas
cfff359b41 fix for gimme when $HOME is not writable
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-18 18:01:28 -04:00
Kubernetes Prow Robot
aeaec76893 Merge pull request #132290 from dims/script-to-enforce-dead-code-elimination
add script for verifying dead code elimination
2025-06-17 13:30:52 -07:00
Kubernetes Prow Robot
805898e09c Merge pull request #132241 from BenTheElder/disable-selinux-relabel
disable selinux relabeling when mounting sourcedir to shellcheck
2025-06-17 07:29:01 -07:00
Davanum Srinivas
2a5e4d5582 add script for verifying dead code elimination
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-17 03:35:12 +00:00
Kubernetes Prow Robot
3e39d1074f Merge pull request #132221 from dims/new-cmp-diff-impl
New implementation for `Diff` (drop in replacement for `cmp.Diff`)
2025-06-16 18:02:58 -07:00
Davanum Srinivas
03afe6471b Add a replacement for cmp.Diff using json+go-difflib
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-16 17:10:42 -04:00
Pierre Gimalac
40c718864b chore(apiserver): avoid using html template which disables dce 2025-06-13 15:28:55 +02:00
ArkaSaha30
e09b042d34 Bump etcd to v3.6.1
This commit will bump etcd to v3.6.1
Release: https://github.com/etcd-io/etcd/releases/tag/v3.6.1
Issue: https://github.com/etcd-io/etcd/issues/20047

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2025-06-13 16:28:35 +05:30
Kubernetes Prow Robot
0001a8aeff Merge pull request #132210 from dims/add-a-toggle-adding-disabling-grpcnotrace-tag
Adding `grpcnotrace` tag for production (non-debug) builds
2025-06-11 15:58:54 -07:00
Benjamin Elder
b86b4632b3 disable selinux relabeling when mounting sourcedir to shellcheck 2025-06-11 15:35:56 -07:00
Davanum Srinivas
5a2844a766 Update to etcd v3.6.1 in vendor/
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-11 16:46:03 -04:00
Davanum Srinivas
a9108e8f53 Adding grpcnotrace tag for production (non-debug) builds
If someone really wants to do golang diagnostics:
https://go.dev/doc/diagnostics#tracing

then they will only be able to do that in debug builds (`DBG`).

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-11 15:52:40 -04:00
Benjamin Elder
ad68a4b4cd emeritus spiffxp
spiffxp moved on from the project years ago, he is still missed
2025-06-10 20:05:40 -07:00
Davanum Srinivas
c85ac59df4 Build k8s using latest commit of golang
Run "gimme master" and use the newly built binaries. Adjust
GOROOT_BOOTSTRAP so we can use the golang that is already
on disk to build the new commit from golang.

To enable this, edit `.go-version` and set the version to
```
devel
```

and then run `make quick-release` (for example)

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-09 17:41:41 -04:00
Vladimir Karpov
3cfa73bc17 add -q flag for git worktree 2025-06-07 17:42:29 +03:00
Kubernetes Prow Robot
d96cfeb7de Merge pull request #132125 from neolit123/1.34-replace-pkg-errors
kubeadm: fix one missed pkg/errors location; drop pkg/errors from go.mod
2025-06-05 13:02:38 -07:00
Stephen Kitt
d1bddfd779 Forbid github.com/pkg/errors in k/k
kubeadm has replaced pkg/errors with an internal implementation, which
means that pkg/errors can be marked as unwanted (once a final
straggler is replaced).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-06-05 18:03:56 +03:00
Patrick Ohly
036f4bfe28 hack: fix KUBE_RACE in benchmark-dockerized.sh
This fixes the following issue in ci-benchmark-scheduler-perf-master:

    malformed import path " ": invalid char ' '

    FAIL	  [setup failed]

Setting the non-empty string with just a space was broken, the right way to
disable the race detector is with an empty KUBE_RACE variable. This worked
before when test-integration.sh unconditionally overwrote the KUBE_RACE
variable and stopped working when 6cb1488 started to keep whatever was
set by the caller.

This then caused an empty string to be passed as additional parameter to "go
test".
2025-06-05 15:08:35 +02:00
Kubernetes Prow Robot
6eaef7b0d6 Merge pull request #131969 from skitt/test-e2e-pkg-errors
test: drop dependency on github.com/pkg/errors
2025-06-04 12:16:38 -07:00
Stephen Kitt
a6e2268994 Ensure github.com/pkg/errors is used only in kubeadm
Now that all other uses have been removed, this configures depguard to
ensure that new ones aren't added outside kubeadm.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-06-02 14:29:38 +02:00
Patrick Ohly
6cb14884b6 test-integration: allow enabling race detection
A job may now enable race detection via KUBE_RACE=-race.
2025-06-02 11:47:42 +02:00
Kubernetes Prow Robot
02eb7d424a Merge pull request #130787 from pohly/test-integration-e2e-suite-removal
hack: remove verify-e2e-suites.sh
2025-05-30 07:36:18 -07:00
Kubernetes Prow Robot
d9c1b4ec9b Merge pull request #131951 from dims/drop-usages-of-deprecated-otelgrpc-methods
Drop usages of deprecated otelgrpc methods (update to v0.60.0)
2025-05-27 10:18:26 -07:00
Kubernetes Prow Robot
4c2a741aac Merge pull request #131964 from skitt/kubectl-pkg-errors
kubectl: drop dependency on github.com/pkg/errors
2025-05-26 11:30:15 -07:00
Davanum Srinivas
7c0f968ab2 Drop usages of deprecated otelgrpc methods
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-26 08:32:09 -04:00
Kubernetes Prow Robot
8a0f6370e4 Merge pull request #131941 from dims/update-to-latest-ishidawataru/sctp-dependency
update to latest ishidawataru/sctp dependency
2025-05-26 04:30:29 -07:00
Stephen Kitt
54b2fad033 kubectl: drop dependency on github.com/pkg/errors
The package is unmaintained, and kubectl doesn't rely on the
functionality it provides on top of Golang errors (stack traces).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-05-26 11:28:24 +02:00
joshjms
b461d80f3d etcd: update etcd image to v3.6.0
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-05-26 15:06:50 +08:00