Commit Graph

116541 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
4e12a5f60f
Merge pull request #117913 from daman1807/fix/curl-timeout
using --max-time instead of --connect-timeout for e2e/network/service tests.
2023-05-10 12:09:10 -07:00
Kubernetes Prow Robot
19aaf0c0e1
Merge pull request #117724 from dlipovetsky/kubeadm-remove-etcd-member-idempotent
kubeadm: Make etcd member removal idempotent
2023-05-10 12:08:59 -07:00
Sean Sullivan
6f23c77408 QueryParamVerifier falls back on invalid v3 document 2023-05-10 18:30:16 +00:00
Ed Bartosh
d5f4b9634c DRA: fix image build on Mac 2023-05-10 21:14:36 +03:00
Kubernetes Prow Robot
5d524f3dc3
Merge pull request #117900 from skitt/ioutil-apimachinery-util
apimachinery/util: stop using deprecated io/ioutil
2023-05-10 10:59:10 -07:00
Kubernetes Prow Robot
8b33eaa0a7
Merge pull request #116207 from pohly/dra-scheduler-perf
scheduler_perf: dynamic resource allocation test cases
2023-05-10 10:58:59 -07:00
Daman Arora
569695b022 e2e/network: setting --max-time for curl
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-05-10 22:28:23 +05:30
Kubernetes Prow Robot
f319dab8d9
Merge pull request #117899 from thockin/codegen_purge_openapi_shell_indirection
Simpler openapi gen - subprojects do themselves
2023-05-10 09:35:07 -07:00
Kubernetes Prow Robot
7aea5a9b25
Merge pull request #117794 from utam0k/interpodaffinity-skip
Return Skip in InterPodAffinity#PreScore under specific conditions
2023-05-10 09:34:59 -07:00
Daniel Lipovetsky
5fd5768ef3
kubeadm: Make etcd member removal idempotent
If the etcd member is not found, then it has already been removed, and
kubeadm reset should immediately complete the 'remove-etcd-member'
phase. Previously, the phase would complete only once the
exponential-backoff retry expired, up to 3 minutes duration.

This commit also fixes a semantic error in etcd.GetMemberID. Previously,
the function returned 0 if no member was found, but 0 is not a valid
member ID.
2023-05-10 09:13:31 -07:00
Kubernetes Prow Robot
a55681ef86
Merge pull request #115950 from SataQiu/fix-kubelet-log-20230222
Fix a bug where the KubeletConfiguration is not printed correctly in the log
2023-05-10 08:30:59 -07:00
SataQiu
164113bc1c fix a bug where the KubeletConfiguration is not printed correctly in the log 2023-05-10 22:29:37 +08:00
gxwilkerson33
a5575425b0
add no resources found message to rollout-status command (#117884)
* add no resources found message to rollout-status command

* return err if not nil before no resource message
2023-05-10 06:02:58 -07:00
utam0k
c0611b6bb3
Return Skip in InterPodAffinity#PreScore under specific conditions
This commit updates the InterPodAffinity PreScore to return a Skip status when the following conditions are met:
1. There are no nodes to score.
2. The incoming pod has no inter-pod affinities && the `IgnorePreferredTermsOfExistingPods` option is enabled.

Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-05-10 13:02:23 +00:00
Claudiu Belu
11f1d24165 unit tests: Fixes kubelet util unit tests for Windows
The unit tests are currently failing due to missing imports. This commit
addresses this issue.

Additionally, TestIsUnixDomainSocket expects an error to be raised by
IsUnixDomainSocket if the file does not exist, but on Windows we do not
raise such error.

This issue is addressed by Stat-ing the file, and checking
if the file exists or not. We're also handling the case in which the given
filePath is a named pipe, returning false immediately, instead of trying to
dial it as a Unix domain socket.
2023-05-10 11:25:49 +00:00
Kubernetes Prow Robot
626b2db1ca
Merge pull request #117335 from kkkkun/update-etcd-3.5.8
etcd: Update version to 3.5.8
2023-05-10 03:38:59 -07:00
guiyong.ou
3a394bbead fix:translations zh_CN LC_MESSAGES k8s.po error
Signed-off-by: guiyong.ou <guiyong.ou@daocloud.io>
2023-05-10 18:13:28 +08:00
Arda Güçlü
4634073d0b Use getter function for plugin subcommand resolution
Plugin subcommand resolution is relatively less used than the
builtin subcommands. That's why, instead always initializing a
hash map on memory, it would be better to use a getter function only
serves as needed.

In addition to that this function will be exported that external
libraries can use it.
2023-05-10 10:41:43 +03:00
Stephen Kitt
2c03afac4c
apimachinery/util: stop using deprecated io/ioutil
This replaces deprecated ioutil functions as follows:

* ioutil.NopCloser -> io.NopCloser
* ioutil.ReadAll -> io.ReadAll
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempFile -> os.CreateTemp

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-10 09:29:34 +02:00
Kubernetes Prow Robot
af1bf43067
Merge pull request #117872 from danwinship/kep-3453-to-ga
MinimizeIPTablesRestore to GA
2023-05-10 00:19:11 -07:00
Kubernetes Prow Robot
65c13c5c21
Merge pull request #117836 from ruquanzhao/addPodUID
Passing podUID in AddReference and DeleteReference
2023-05-10 00:18:59 -07:00
Kubernetes Prow Robot
21afcd453a
Merge pull request #117696 from thockin/hostnet_hostport_default_pod_not_podspec
Do hostNet Pod-ports -> hostPorts in Pod defaults
2023-05-09 22:53:00 -07:00
Tim Hockin
6607834207
Use the same report files as before 2023-05-09 19:33:21 -07:00
RuquanZhao
9150e6b55a s/of referencedFrom/from referenceFrom/
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2023-05-10 10:22:52 +08:00
Kubernetes Prow Robot
cd648c9c7d
Merge pull request #117114 from pohly/test-integration-race-detection-logs-registry
component-base: avoid data race in log format registry
2023-05-09 18:50:58 -07:00
Tim Hockin
4bbf611773
Retool validation for pod HostNetwork ports
This will ensure that HostPort == ContainerPort for pods and that
HostPort == 0 || HostPort == ContainerPort for embedded PodSpecs.
2023-05-09 18:10:44 -07:00
Tim Hockin
ec3379a717
Do hostNet Pod-ports -> hostPorts in Pod defaults
Rather than doing it in PodSpec defaulting, which triggers in
Deployments and DaemonSets, do it only when a Pod is actually in play.
2023-05-09 18:10:20 -07:00
Tim Hockin
ef796dca9b
Simpler openapi gen - subprojects do themselves
This involves moving the report files, but it allows me to delete the
indirect variable and indirect array code in update-codgen.  As proud as
I was of figuring that out, I am also ashamed of myself for doing it.

This is my atonement.
2023-05-09 16:24:18 -07:00
Tim Hockin
93b2845bec
Codegen: subprojects openapi
Use the "subprojects" aspect of update-codegen to generat openapi for
the subprojects.  Next we can simplify and remove the generic support.

apiextensions-apiserver seems like it was ALWAYS broken:
k8s.io/apiextensions/ doesn't exist, but k8s.io/apiextensions-apiserver
does.

Fixing that causes different openapi results, obviously.
2023-05-09 16:24:17 -07:00
Tim Hockin
4909dbd0d7
Deprecate generate*groups.sh -> kube_codegen.sh 2023-05-09 16:14:48 -07:00
Dan Winship
c3971002c9 MinimizeIPTablesRestore to GA 2023-05-09 18:19:00 -04:00
Kubernetes Prow Robot
4c45313c3f
Merge pull request #115704 from AkihiroSuda/cri-rprivate
cri-api: fix comment lines about PROPAGATION_PRIVATE
2023-05-09 13:31:54 -07:00
Kubernetes Prow Robot
44a93d0b9d
Merge pull request #117792 from dlipovetsky/kubeadm-etcd-client-refactor
kubeadm: Add etcd client unit tests
2023-05-09 11:02:20 -07:00
Kubernetes Prow Robot
7cdf67ebf8
Merge pull request #117262 from thockin/codegen_new_script_for_subprojects
Codegen: a new script for subprojects to use
2023-05-09 11:02:09 -07:00
Kubernetes Prow Robot
b277afdf46
Merge pull request #116506 from HirazawaUi/fix-events-field
generate ReportingInstance and ReportingController in Event
2023-05-09 11:01:57 -07:00
Kubernetes Prow Robot
c75ac4cb2e
Merge pull request #117885 from xmudrii/export-gomaxprocs
Export GOMAXPROCS environment variable
2023-05-09 09:36:08 -07:00
Kubernetes Prow Robot
a9b08f4cc2
Merge pull request #117642 from carlory/fix-001
remove ability to re-enable serving deprecated node.k8s.io/v1beta1 types
2023-05-09 09:35:56 -07:00
Kubernetes Prow Robot
d96993fc1c
Merge pull request #117688 from liggitt/dynamic-version
Allow override of prerelease/buildID portions of version at runtime
2023-05-09 07:35:58 -07:00
HirazawaUi
82e3fa0930 fix fd leaks and failed file removing for main pkg and cmd 2023-05-09 09:24:11 -05:00
HirazawaUi
5289a7b029 fix fd leaks and failed file removing for test directory 2023-05-09 09:22:31 -05:00
HirazawaUi
b94c6daa0b fix fd leaks and failed file removing for pkg kubectl and pod-security-admission 2023-05-09 09:22:31 -05:00
HirazawaUi
982d2966cd fix fd leaks and failed file removing for pkg controller-manager and apiserver 2023-05-09 09:22:31 -05:00
HirazawaUi
73aeed8766 fix fd leaks and failed file removing for pkg client-go 2023-05-09 09:22:30 -05:00
HirazawaUi
f49cc5eb11 add remove_file in client-go util directory 2023-05-09 09:22:30 -05:00
Marko Mudrinić
c8737346db
Export GOMAXPROCS environment variable
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-05-09 15:43:32 +02:00
Min Ni
e865b30abd
update serial number to a valid non-zero number in ca certificate (#117791)
* update serial number to a valid non-zero number in ca certificate

* fix the existing problem (0 SerialNumber in all certificate) as part of this PR in a separate commit
2023-05-09 06:34:08 -07:00
Kubernetes Prow Robot
9e9ec8f62c
Merge pull request #117539 from TommyStarK/fix-flaky/mount-utils-TestFormat
mount-utils: fix flaky test 'TestFormat'
2023-05-09 06:33:56 -07:00
Kubernetes Prow Robot
714221dbaa
Merge pull request #117879 from kkkkun/fix-make-etcd-image-failed
Fix make etcd image failed
2023-05-09 05:28:16 -07:00
RuquanZhao
308ab380d7 Add unit testcases of refMap.
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2023-05-09 18:05:43 +08:00
Wojciech Tyczyński
23ac0fdaa5 APF: Dynamically compute retry-after based on history 2023-05-09 11:40:03 +02:00