Commit Graph

127786 Commits

Author SHA1 Message Date
Stanislav Láznička
a051b067cd
featuregate UID in RequestHeader authenticator 2024-12-04 16:26:28 +01:00
Kubernetes Release Robot
2b472fe469 CHANGELOG: Update directory for v1.32.0-rc.1 release 2024-12-03 19:07:38 +00:00
Kevin Hannon
a0b74011b2 add kubelet validation for containerLogMaxFiles 2024-12-03 11:03:05 -05:00
zhifei92
cb74323e07 refactor: Simplify the code logic. 2024-12-03 20:31:09 +08:00
carlory
617e5c79bb storage e2e tests: apply feature-gate label when these tests depend feature-gate 2024-12-03 18:25:41 +08:00
Jordan Liggitt
1fd76884b9
Isolate mock signer for externaljwt tests 2024-12-02 18:44:40 -05:00
Siyuan Zhang
b71763ef38 Remove unnecessary log msg.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-12-02 08:57:51 -08:00
Patrick Ohly
0a02c74ca6 update-vanity-imports.sh: remove script
With the "// import ..." statements removed form all files, we no
longer need the update script which would add them back.
2024-12-02 17:00:41 +01:00
Patrick Ohly
8a908e0c0b remove import doc comments
The "// import <path>" comment has been superseded by Go modules.
We don't have to remove them, but doing so has some advantages:

- They are used inconsistently, which is confusing.
- We can then also remove the (currently broken) hack/update-vanity-imports.sh.
- Last but not least, it would be a first step towards avoiding the k8s.io domain.

This commit was generated with
   sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/')

Everything was included, except for
   package labels // import k8s.io/kubernetes/pkg/util/labels
because that package is marked as "read-only".
2024-12-02 16:59:34 +01:00
Nadia Pinaeva
326c84a151 [e2e, service] Add total timeout for affinity check curl command.
Not setting a total timeout for curl may result in hanging command if
the connection succeeded, but the data transfer did not.

Signed-off-by: Nadia Pinaeva <n.m.pinaeva@gmail.com>
2024-12-02 11:55:05 +01:00
Patrick Ohly
b330eeac2f prune-junit-xml: preserve system out + err text during test pruning
When stripping out log messages from the failure text, the original text gets
stored as <system-out>. That part then got lost when reducing tests. Instead of
dropping it, it needs to be joined from all failed tests. Same for
<system-err>, although that isn't used yet.
2024-12-02 11:17:57 +01:00
Patrick Ohly
e0e4af8a58 prune-junit-xml: smarter concatenation when pruning tests
Repeating the same "Failed" message text doesn't add any
information. Separating with a blank line is more readable.

Before:

    <failure message="Failed; Failed; Failed" type="">
       ...
       --- FAIL: TestFrontProxyConfig/WithoutUID (64.89s) ; === RUN TestFrontProxyConfig/WithUID

After:

    <failure message="Failed" type="">
       ...
       --- FAIL: TestFrontProxyConfig/WithoutUID (64.89s)

       === RUN TestFrontProxyConfig/WithUID
2024-12-02 11:17:57 +01:00
HirazawaUi
53e9f29d29 Fix kubelet e2e tests incorrect message 2024-12-01 22:45:29 +08:00
Kensei Nakada
8f4e425daf
chore: ignore dat files generated by scheduler-perf 2024-11-30 22:23:15 +09:00
Dr. Stefan Schimanski
0d18ae303b
apiextensions: add pkg/test with CEL unit test helpers
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-11-29 16:30:39 +01:00
Penghao
9e99be7c2b Fix: typos for volume package 2024-11-29 17:11:00 +08:00
Antonio Ojea
e5ebbdc3c7 Ignore internal packages messages 2024-11-29 07:29:46 +00:00
zhifei92
27608fa25d refactor(scheduler): Rename UpdatePodTolerations for code style consistency. 2024-11-29 13:13:09 +08:00
Kubernetes Prow Robot
810e9e212e
Merge pull request #129019 from cpanato/update-rules
Update publishing-bot rules to Go 1.22.9 for the active release branches
2024-11-28 19:22:57 +00:00
Antonio Ojea
f92bde1894 parallalize the apidiff dump 2024-11-28 18:20:07 +00:00
Antonio Ojea
affafd906d improve report on failures summarizing the modules with incompatible changes 2024-11-28 18:20:04 +00:00
Antonio Ojea
7de94d43ca handle the case when modules are added or removed
don't compare modules that didn't or doesn't exist
2024-11-28 18:19:18 +00:00
Antonio Ojea
52386915a8 use relative paths and modules that are not visible to golagn workspaces 2024-11-28 18:19:12 +00:00
Ed Bartosh
48ea6fc465 oom_watcher: fix testifylint failures
Fixed the following testifylint failures:

oom_watcher_linux_test.go:68:2: require-error: for error assertions use require (testifylint)
  assert.NoError(t, oomWatcher.Start(tCtx, node))
  ^
oom_watcher_linux_test.go:128:2: require-error: for error assertions use require (testifylint)
  assert.NoError(t, oomWatcher.Start(tCtx, node))
  ^
oom_watcher_linux_test.go:165:2: require-error: for error assertions use require (testifylint)
  assert.NoError(t, oomWatcher.Start(tCtx, node))
  ^
2024-11-28 17:47:02 +02:00
Ed Bartosh
f622be0333 kubelet: Migrate pkg/kubelet/oom to contextual logging 2024-11-28 17:47:02 +02:00
Antonio Ojea
e6fccc36d8 apidiff support internal go modules
The kubernetes repository contains some internal golang modules that are
not part of the golang global workspace. Because apidiff is currently
run from the root of the repository, it does not work against this
internal modules.

Instead of executing apidiff from the root we can just cd into the
passed path of the module to avoid this limitation.
2024-11-28 15:43:09 +00:00
cpanato
823cd76162
Update publishing-bot rules to Go 1.22.9 for the active release branches
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-11-28 15:00:08 +01:00
LongKang Fan
79d62d8bb3 change current and desired 2024-11-28 09:37:55 +08:00
Ondrej Kokes
6f06cd6e05 Do not reload kubeconfig from disk
When `kubeadm init phase bootstrap-token` gets invoked, it reads
the kubeconfig from disk repeatedly. This is wasteful, but, more
importantly, it blocks the use of `/dev/stdin` and other sources
of data that cannot be read repeatedly.

This change introduces a new field that caches a parsed kubeconfig
and when a new clientset is requested, it is converted from
this pre-parsed kubeconfig, the code no longer reaches out to disk.
2024-11-27 16:44:51 +01:00
Kubernetes Prow Robot
95d71c464a
Merge pull request #128990 from dims/update-publishing-bot-rules-for-release-1.32
staging/publishing: add release-1.32 branch
2024-11-27 15:14:56 +00:00
Kubernetes Prow Robot
9d62330bfa
Merge pull request #128286 from umagnus/fix_unmount_relative_path
fix: mount-utils IsLikelyNotMountPoint relative path issue
2024-11-27 09:02:57 +00:00
Benjamin Elder
a43b00b429 make test-cmd: use kube::util::find-binary to get kubeadm binary
fixes finding the binary when dockerized builds vs host builds
2024-11-26 17:33:44 -08:00
Davanum Srinivas
2ca4217a38
staging/publishing: add release-1.32 branch
```
update-rules --branch release-1.32 --rules staging/publishing/rules.yaml --o staging/publishing/rules.yaml
```

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-11-26 19:40:13 -05:00
Kubernetes Release Robot
0e1abc4d18 CHANGELOG: Update directory for v1.32.0-rc.0 release 2024-11-26 16:47:58 +00:00
googs1025
65b243fcd6 chore: remove repeated scheduler prefix metrics for CacheSizeMetrics 2024-11-26 14:26:07 +08:00
zhikuodu
3195883831 UnitTest: kube-proxy EndpointSliceCache cleared correctly
Signed-off-by: zhikuodu <duzhk@qq.com>
2024-11-26 10:36:02 +08:00
zhikuodu
78b440a74a Fixed: kube-proxy EndpointSliceCache memory is leaked
Signed-off-by: zhikuodu <duzhk@qq.com>
2024-11-26 10:21:33 +08:00
Kubernetes Prow Robot
8770bd58d0
Merge pull request #128966 from liggitt/deflake-external
Wait for updated keys to be observed
2024-11-25 19:18:59 +00:00
Jon Huhn
05ebf45114 e2e: wrap DRA ResourceQuota Forbidden claim check in gomega.Eventually 2024-11-25 12:31:45 -06:00
Jordan Liggitt
eb6bb5f84d
Record dataTimestamp as float 2024-11-25 12:01:28 -05:00
Jordan Liggitt
26c08dde52
Wait for updated keys to be observed 2024-11-25 11:55:20 -05:00
dom4ha
67b74696f8 Adjust performance test threshold limits 2024-11-25 15:07:15 +00:00
Arda Güçlü
8312c3ec24 Use generic Contains rather than deprecated ContainsString 2024-11-25 11:30:04 +03:00
Kensei Nakada
89e23dd038 fix(e2e): retry on conflict when deleting extended resource 2024-11-24 16:46:18 +09:00
Kubernetes Prow Robot
e4c1f980b7
Merge pull request #128932 from pohly/dra-node-selector-validation
DRA API: validate node selector labels
2024-11-22 20:22:55 +00:00
Kubernetes Prow Robot
35d098aaa0
Merge pull request #128852 from cpanato/update-go
[go] Bump images, dependencies and versions to go 1.23.3 and distroless iptables
2024-11-22 10:18:55 +00:00
AxeZhan
3075a9ae96 DRA API: validate node selector labels
Previously, ValidateNodeSelector did not check that labels are valid. Now it
does for resource.k8s.io, regardless whether an object already was created with
invalid labels in an earlier Kubernetes release. Theoretically this is a
breaking change and could cause problems during an upgrade, but that is highly
unlikely in practice.

In contrast to node affinity, DRA does not ignore parse errors
(= uses NewNodeSelector, not NewLazyErrorNodeSelector), so invalid labels would
have been found instead of being silently ignored.

Even if some object has invalid labels, this only affects an alpha -> beta
upgrade which isn't guaranteed to work seamlessly.
2024-11-22 09:10:02 +01:00
Tim Allclair
7c3a9d65fc Don't set default resize policy in E2E tests 2024-11-21 09:54:37 -08:00
Tim Allclair
da4dc0aec7 Stop defaulting container ResizePolicy 2024-11-21 09:51:31 -08:00
Jordan Liggitt
3baa6f08c0
Add modern-go libraries to unwanted dependencies 2024-11-21 11:25:44 -05:00