Commit Graph

116301 Commits

Author SHA1 Message Date
Dan Winship
a744a186b6 Rename GetNodeAddresses to GetNodeIPs, return net.IP 2023-05-16 09:14:09 -04:00
Dan Winship
2ca215fd99 Add NodePortAddresses.MatchAll()
Rather than having GetNodeAddresses() return a special magic value
indicating that it matches all IPs, add a separate method to check
that. (And have GetNodeAddresses() just return the IPs as expected
instead.)
2023-05-16 09:09:24 -04:00
Kubernetes Prow Robot
2d742bb8ab
Merge pull request #118045 from Nordix/annotate-fix/adil
Changing annotate PrintFlags from annotate to annotated
2023-05-16 06:07:35 -07:00
adil ghaffar
d6e488b998
Changing annotate PrintFlags from annotate to annotated 2023-05-16 14:39:15 +03:00
Humble Chirammal
d8e82b1417 e2e: use gomega.Expect instead of framework.ExpectEqual in windows/*
stop using deprecated framework.ExpectEqual

Ref#115961

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-16 16:33:21 +05:30
Kubernetes Prow Robot
31d0821ab4
Merge pull request #117995 from liggitt/discovery-tests
Add tests to capture discovery output
2023-05-16 01:41:43 -07:00
Kubernetes Prow Robot
03b2e84183
Merge pull request #113209 from luozhiwenn/personal/etc-host
ensure etc-host file permission is 644 whatever umask is
2023-05-16 01:41:35 -07:00
Kubernetes Prow Robot
a31899a6fd
Merge pull request #118030 from pohly/dra-kind-cluster-fix
test/e2e/dra: fix kind cluster creation
2023-05-16 00:41:36 -07:00
Stephen Kitt
3680a5230c
Bump docker/distribution to 2.8.2
k/k doesn't use much code from docker/distribution so this doesn't
change anything that's actually relevant, but 2.8.1 is identified as
affected by CVE-2022-28391 and CVE-2023-2253; bumping to 2.8.2 avoids
k/k triggering scanners on those CVEs.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-16 09:20:40 +02:00
kerthcet
3ac7497361 Chore: cleanup in interpodaffinity
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-05-16 14:46:15 +08:00
Patrick Ohly
073b4cf66a test/e2e/dra: fix kind cluster creation
The nightly containerd binary no longer works in the current kind base images:

   May 15 16:32:31 kind-worker containerd[222]: /usr/local/bin/containerd:
   /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by
   /usr/local/bin/containerd)

kind now builds containerd directly with the base images. The official base
images still use containerd 1.6, so we have to use a special base image that
was prepared for this purpose.

Because the containerd config can be patched through kind, we don't need to
modify the generated node image anymore.
2023-05-16 08:11:43 +02:00
Kubernetes Prow Robot
70033bf843
Merge pull request #114606 from tuunit/bugfix-case-sensitive-headers
fix: remove case sensitive checking of probe headers
2023-05-15 22:05:36 -07:00
Humble Chirammal
3b69fa2fa5 dependencies: update github.com/mitchellh/go-wordwrap v1.0.1
https://github.com/mitchellh/go-wordwrap/compare/v1.0.0...v1.0.1

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-16 10:18:52 +05:30
Hao Ruan
19ae103e82 emit warning on deprecated annotation volume.beta.kubernetes.io/storage-class 2023-05-16 10:19:01 +08:00
Kubernetes Prow Robot
bc41f37e85
Merge pull request #118023 from liggitt/unwanted-deps
Update unwanted deps
2023-05-15 18:33:14 -07:00
Jordan Liggitt
517c5b75c5
Update unwanted deps 2023-05-15 20:35:58 -04:00
Kubernetes Prow Robot
ffb4172ff1
Merge pull request #115754 from linxiulei/sched
Start informers after leader election
2023-05-15 15:41:36 -07:00
Kubernetes Prow Robot
ea4cc84cf7
Merge pull request #118014 from liggitt/mapstructure
Update kube-openapi, drop mapstructure
2023-05-15 14:41:35 -07:00
Jordan Liggitt
d6d1dbdd82
Update kube-openapi, drop mapstructure 2023-05-15 16:42:00 -04:00
Kubernetes Prow Robot
8411524daa
Merge pull request #117573 from pacoxu/use-allowlist
user --prune-allowlist in kube-addons.sh
2023-05-15 13:21:58 -07:00
Kubernetes Prow Robot
4d4d92808b
Merge pull request #117544 from ruquanzhao/removeUndefinedConvert
fix undefined convertion
2023-05-15 13:21:47 -07:00
Kubernetes Prow Robot
38652a8c31
Merge pull request #116531 from my-git9/ut-conditions
[UT] add ut for pkg/client/conditions
2023-05-15 13:21:35 -07:00
Eric Lin
a52dcd0d9f Add DelayCacheUntilActive option to start informers after leader election
If scheduler fails to be active (elected if leader election is enabled),
setting this option will not start informers so that to avoid memory
overhead.

Signed-off-by: Eric Lin <exlin@google.com>
2023-05-15 19:52:04 +00:00
Kubernetes Prow Robot
f84ff3d052
Merge pull request #117813 from pohly/scheduler-perf-test-runtime
scheduler-perf: measure workload runtime and relabel workloads
2023-05-15 12:19:18 -07:00
Kubernetes Prow Robot
2a4bf451b2
Merge pull request #117547 from wojtek-t/apf_dynamic_retry_after
Return dynamic RetryAfter header from APF
2023-05-15 12:19:07 -07:00
Jordan Liggitt
7c554ea1d9
Regenerate discovery fixtures 2023-05-15 14:18:19 -04:00
Jordan Liggitt
2ab6fd3590
Capture discovery API output in test fixtures 2023-05-15 14:18:18 -04:00
Kubernetes Prow Robot
23ea6996d2
Merge pull request #118015 from tenzen-y/list-supprted-operators
Scheduler: Pass the supported nodeSelectorOperators to the field.NotSupported
2023-05-15 11:05:39 -07:00
Kubernetes Prow Robot
1d6158e11b
Merge pull request #117993 from liggitt/shortnames
Undo 1.28 shortname additions for now
2023-05-15 11:05:27 -07:00
John Howard
3867569ae2 codegen 2023-05-15 10:16:18 -07:00
Kubernetes Prow Robot
1487fc762f
Merge pull request #117982 from jpbetz/sig-roles-jpbetz
Add api-machinery TL owners permissions for jpbetz
2023-05-15 09:07:29 -07:00
kannon92
0819d34204 using parsers in applyDefaultImageTag 2023-05-15 15:53:47 +00:00
Joe Betz
f0f92853ad Add api-machinery TL owners permissions for jpbetz 2023-05-15 11:09:54 -04:00
Humble Chirammal
e4dd6f68dc remove CSIStorageCapacity featuregate
This feature gates were GAed in Kubernetes v1.24 and supposed to be
removed in kubernetes >=v1.26. This commit remove the same.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-15 20:26:42 +05:30
Dan Winship
9ac657bb94 Make NodePortAddresses explicitly IP-family-specific
Both proxies handle IPv4 and IPv6 nodeport addresses separately, but
GetNodeAddresses went out of its way to make that difficult. Fix that.

This commit does not change any externally-visible semantics, but it
makes the existing weird semantics more obvious. Specifically, if you
say "--nodeport-addresses 10.0.0.0/8,192.168.0.0/16", then the
dual-stack proxy code would have split that into a list of IPv4 CIDRs
(["10.0.0.0/8", "192.168.0.0/16"]) to pass to the IPv4 proxier, and a
list of IPv6 CIDRs ([]) to pass to the IPv6 proxier, and then the IPv6
proxier would say "well since the list of nodeport addresses is empty,
I'll listen on all IPv6 addresses", which probably isn't what you
meant, but that's what it did.
2023-05-15 10:53:44 -04:00
Dan Winship
f7bb9a9a0a Remove a mostly-unused variable in the ipvs proxy
It probably was used for something else in the past but it's pointless
now.
2023-05-15 10:53:21 -04:00
Kubernetes Prow Robot
3a65b989e3
Merge pull request #117645 from humblec/etcd-2
dependencies: update etcd dependencies to v3.5.9
2023-05-15 07:49:39 -07:00
Kubernetes Prow Robot
87d8c4ed0a
Merge pull request #117139 from pohly/test-integration-race-detection-update-utils
dependencies: bump k8s.io/utils
2023-05-15 07:49:28 -07:00
Kubernetes Prow Robot
52353a2e4a
Merge pull request #117994 from sanposhiho/patch-6
cleanup unused variables for v1beta2 component config
2023-05-15 06:01:29 -07:00
Yuki Iwai
1ca8f84eed Scheduler: Pass the supported nodeSelectorOperators to the field.NotSupported
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-05-15 21:43:00 +09:00
Patrick Ohly
d85b91f343 scheduler-perf: measure workload runtime and relabel workloads
The goal is to only label workloads as "performance" which actually run long
enough to provide useful metrics. The throughput collector samples once per
second, so a workload should run at least 5, better 10 seconds to get at least
a minimal amount of samples for the percentile calculation.

For benchstat analysis of runs with sufficient repetitions to get statistically
meaningful results, each workload shouldn't run more than one minute, otherwise
before/after analysis becomes too slow.

The labels were chosen based on benchmark runs on a reasonably fast desktop. To
know how long each workload takes, a new "runtime_seconds" benchmark result
gets added.
2023-05-15 14:33:40 +02:00
Kubernetes Prow Robot
714b165af8
Merge pull request #117901 from ardaguclu/use-getter-allowed-cmds
Use getter function for plugin subcommand resolution
2023-05-15 02:27:27 -07:00
Sascha Grunert
aa405c8aac
Allow runtimes to provide additional context on CRI pull errors
Right now container runtimes have no way to provide additional context
to the pull errors. We now loosen the constraints and check for
additional messages after the actual CRI errors, which allows to enrich
the verbosity of the warning events, for example:

```
Warning  Failed     2s (x3 over 43s)   kubelet            Failed to pull image "localhost:5000/foo": RegistryUnavailable: pinging container registry localhost:5000: Get "http://localhost:5000/v2/": dial tcp [::1]:5000: connect: connection refused
```

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-05-15 09:08:14 +02:00
Patrick Ohly
83fb5a50bc dependencies: bump k8s.io/utils
This includes a fix for a race condition.
2023-05-15 08:58:05 +02:00
Arda Güçlü
daebf1c735 Simplify plugin resolution check function 2023-05-15 08:51:46 +03:00
Kubernetes Prow Robot
f70c26d495
Merge pull request #117919 from dlipovetsky/kubeadm-etcd-log-message-format
kubeadm: Remove leading zeros from etcd member ID in log messages
2023-05-14 20:09:38 -07:00
Kubernetes Prow Robot
e425a6f6e4
Merge pull request #117904 from HeavenTonight/master
fix:translations zh_CN LC_MESSAGES k8s.po error
2023-05-14 20:09:27 -07:00
Paco Xu
f562375c8a add changelog for kube-addon-manager v9.1.7 2023-05-15 09:39:45 +08:00
Riaan Kleinhans
be4c4a51ea
Update pending_eligible_endpoints.yaml 2023-05-15 10:14:38 +12:00
Stephen Heywood
d34d4755ae Promote APIResources e2e test to Conformance 2023-05-15 09:53:31 +12:00