Commit Graph

114136 Commits

Author SHA1 Message Date
kannon92
32ac4a9581 left over uncounted from tracking cleanup 2023-02-22 16:45:53 +00:00
Mahmoud Atwa
13d25acdfa Remove version check & 403 ignore 2023-02-22 16:03:18 +00:00
cc
d49bff855f
refine: the server-side http Request Body is always non-nil (#115908)
* refine: the server-side http Request Body is always non-nil

* revert changes under vendor

* Update staging/src/k8s.io/pod-security-admission/cmd/webhook/server/server.go

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>

* Update main.go

---------

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2023-02-22 07:18:09 -08:00
andrew_li
78c0018ca0
fix make verify (#115871) 2023-02-22 07:17:56 -08:00
Mahmoud Atwa
e4c25afa59 Remove unneeded edit in error formatting 2023-02-22 13:51:01 +00:00
Mahmoud Atwa
b1980b2f6b Update ExistsInDiscovery to ignore 404 & 403 errors in autoscaling utils framework 2023-02-22 13:41:46 +00:00
Dan Winship
c45fff589a Optimize NodePortAddresses
Do more work at construct time and less at
GetNodeAddresses()/ContainsIPv4Loopback() time.
2023-02-22 08:32:21 -05:00
Dan Winship
0c2711bf24 Make NodePortAddresses abstraction around GetNodeAddresses/ContainsIPv4Loopback 2023-02-22 08:32:19 -05:00
Dan Winship
d43878f970 Put all iptables nodeport address handling in one place
For some reason we were calculating the available nodeport IPs at the
top of syncProxyRules even though we didn't use them until the end.
(Well, the previous code avoided generating KUBE-NODEPORTS chain rules
if there were no node IPs available, but that case is considered an
error anyway, so there's no need to optimize it.)

(Also fix a stale `err` reference exposed by this move.)
2023-02-22 08:30:36 -05:00
Francesco Romani
00b41334bf e2e: node: podresources: fix restart wait
Fix the waiting logic in the e2e test loop to wait
for resources to be reported again instead of making logic on the
timestamp. The idea is that waiting for resource availability
is the canonical way clients should observe the desired state,
and it should also be more robust than comparing timestamps,
especially on CI environments.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2023-02-22 14:04:55 +01:00
Francesco Romani
92e00203e0 e2e: node: unify sample device plugin utilities
Start to consolidate the sample device plugin utility
and constants in a central place, because we need
to use it in different e2e tests.

Having a central dependency is better than a maze of
entangled e2e tests depending on each other helpers.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2023-02-22 14:04:55 +01:00
Francesco Romani
871201ba64 e2e: node: remove kubevirt device plugin
The podresources e2e tests want to exercise the case on which a device
plugin doesn't report topology affinity. The only known device plugin
which had this requirement and didn't depend on specialized hardware
was the kubevirt device plugin, which was however deprecated after
we started using it.

So the e2e tests are now broken, and in any case they can't depend on
unmaintained and liable to be obsolete code.

To unblock the state and preserve some e2e signal, we switch to the
sample device plugin, which is a stub implementation and which is
managed in-tree, so we can maintain it and ensure it fits the e2e test
usecase.

This is however a regression, because e2e tests should try their hardest
to use real devices and avoid any mocking or faking.
The upside is that using a OS-neutral device plugin for the tests enables
us to run on all the supported platform (windows!) so this could allow
us to transition these tests to conformance.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2023-02-22 14:04:22 +01:00
Francesco Romani
aa1a0385e2 e2e: node: podresources: internal cleanup
rename getPodResources for clarity. Allow to return error
(and not use ginkgo expectations), so it can actually be used
as intended inside `Eventually` blocks without blow up at the
first failure.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2023-02-22 13:49:13 +01:00
Kubernetes Prow Robot
7e40d6d04e
Merge pull request #115947 from aramase/aramase/f/kmsv2/grpc-metrics-bucket
[KMSv2] update `kms_operations_latency_seconds` metric bucket range
2023-02-22 04:47:57 -08:00
Kubernetes Prow Robot
4dd887797f
Merge pull request #115924 from claudiubelu/fix-kubeadm-unittest
unit tests: Fixes kubeadm postupgrade failing unit test on Windows
2023-02-22 00:50:08 -08:00
Kubernetes Prow Robot
39a99710bc
Merge pull request #115919 from princepereira/ppereira-115783-etplocal-master
[115783] Fix for windows kube-proxy: 'externalTrafficPolicy: Local' results in no clusterIP entry in windows node.
2023-02-22 00:49:56 -08:00
Li Bo
d56218fb39 add missed case of float types 2023-02-22 16:00:17 +08:00
Anish Ramasekar
ac1c8aaed1
[KMSv2] update kms_operations_latency_seconds metric bucket range
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-02-22 07:12:35 +00:00
Patrick Ohly
443b1c6c23 hack/tools: bump golangci-lint to v1.51.2 2023-02-22 07:54:20 +01:00
Kubernetes Prow Robot
1bafca3099
Merge pull request #115770 from Jefftree/aggregated-discovery-legacy-fix
Fix legacy fallback stale for aggregated discovery
2023-02-21 22:37:55 -08:00
Shiming Zhang
b70d1377bb Add test for Pod TerminationGracePeriodSeconds is negative 2023-02-22 13:36:16 +08:00
Shiming Zhang
4bdc1364ea Warn if the terminationGracePeriodSeconds is negative.
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2023-02-22 13:36:15 +08:00
Kubernetes Prow Robot
96312d711e
Merge pull request #115633 from TommyStarK/unit-tests/staging-apiserver-util-proxy
apiserver/util/proxy: Improving test coverage
2023-02-21 18:37:55 -08:00
Dave Chen
66f043f650 kubeadm: skip ipv4 check if the cluster is using IPv6 address
Signed-off-by: Dave Chen <dave.chen@arm.com>
2023-02-22 10:02:54 +08:00
Kubernetes Prow Robot
403a46037d
Merge pull request #115938 from aramase/aramase/f/organize-kms-pkg
[KMSv2] restructure kms staging dir
2023-02-21 17:26:03 -08:00
Kubernetes Prow Robot
59ec35eb2d
Merge pull request #115686 from tkashem/apf-test-fix
apiserver: fix APF tests, use T functions on the test goroutine
2023-02-21 17:25:56 -08:00
Kubernetes Prow Robot
b2a40948bd
Merge pull request #115933 from intUnderflow/clean-up-fake-recorder
Clean up FakeRecorder event emission
2023-02-21 15:27:56 -08:00
Anish Ramasekar
c9b8ad6a55
[KMSv2] restructure kms staging dir
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-02-21 22:40:25 +00:00
Kubernetes Prow Robot
33c1a542fb
Merge pull request #115846 from ritazh/kmsv2-metrics-invalidkeyid
kmsv2: add metrics for invalid_key_id_from_status_total
2023-02-21 14:24:39 -08:00
Kubernetes Prow Robot
06b6644fcf
Merge pull request #115815 from Huang-Wei/pod-scheduling-readiness-beta
Graduate PodSchedulingReadiness to beta
2023-02-21 14:24:32 -08:00
Kubernetes Prow Robot
4a58096e48
Merge pull request #115814 from aramase/kms-cryptographic-wearout
[KMSv2] Implement local KEK generation and rotation
2023-02-21 14:24:23 -08:00
Kubernetes Prow Robot
be3cf12d79
Merge pull request #115628 from alombarte/patch-1
getHost and getHostname have documentation swapped for IPv6
2023-02-21 14:24:16 -08:00
Kubernetes Prow Robot
c94f708ce4
Merge pull request #114470 from danwinship/kep-3178-fixups
KEP-3178-related iptables rule fixups
2023-02-21 14:24:08 -08:00
Kubernetes Prow Robot
edea44c82e
Merge pull request #113205 from mimowo/oomkiller-e2e-node-test
Add e2e_node test for oom killed container reason
2023-02-21 14:23:55 -08:00
Kubernetes Prow Robot
2d88d2d993
Merge pull request #112977 from mimowo/oomkilled-standardization
Documentation for the CRI API reason field to standardize the field for containers terminated by OOM killer
2023-02-21 13:15:58 -08:00
Lucy Sweet
247299946b Fix typo 2023-02-21 22:05:02 +01:00
Lucy Sweet
191fe47b6c Clean up FakeRecorder event emission 2023-02-21 20:35:54 +01:00
Kubernetes Prow Robot
4dfd2fe74d
Merge pull request #115922 from sourcelliu/impovevolume
Improve performance of method haveOverlap
2023-02-21 11:34:08 -08:00
Kubernetes Prow Robot
cd228fa551
Merge pull request #115073 from Nordix/proxy-ipvs-cleanup1
proxy/ipvs: Use generic Sets and sanitize code
2023-02-21 11:33:56 -08:00
Abu Kashem
62742db16b
apiserver: fix APF tests, use T functions on the test goroutine 2023-02-21 13:34:59 -05:00
Kubernetes Prow Robot
44b2fb4cfa
Merge pull request #115927 from tkashem/rate-limited-waitgroup
api-machinery: add a rate limited request wait group
2023-02-21 10:30:07 -08:00
Kubernetes Prow Robot
3a4583aeb6
Merge pull request #115860 from intUnderflow/include-annotations-fake-recorder
Allow inclusion of annotations in channel events when using FakeRecorder
2023-02-21 10:29:56 -08:00
Rita Zhang
5292542b72
kmsv2: add metrics for invalid_key_id_from_status_total
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2023-02-21 09:42:40 -08:00
Anish Ramasekar
3bdd5ceae1
implement local kek generation and rotate based on status
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-02-21 17:40:16 +00:00
Kubernetes Prow Robot
572804c93d
Merge pull request #115903 from yoongon/feature/fit-calculation-typo
Fix typo at most_allocated_test.go
2023-02-21 09:16:09 -08:00
Kubernetes Prow Robot
07e7e72c07
Merge pull request #115721 from saschagrunert/downward-api-huge-pages-ga
Graduate `DownwardAPIHugePages` feature to stable / GA
2023-02-21 09:15:57 -08:00
Claudiu Belu
2e2ef9b0e7 unit tests: Fixes kubeadm postupgrade failing unit test on Windows
The unit test TestWriteKubeletConfigFiles fails on Windows because the
file not found error message is different on Windows.
2023-02-21 16:53:06 +00:00
mantuliu
edc0455c5c Improve performance of method haveOverlap
Signed-off-by: mantuliu <240951888@qq.com>
2023-02-22 00:51:55 +08:00
Lucy Sweet
8373afef0e Include annotations all the time 2023-02-21 16:42:37 +01:00
Lucy Sweet
7a48c6e217 Respond to review 2023-02-21 16:29:38 +01:00