Commit Graph

119634 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
4d45fe55e6
Merge pull request #121544 from liggitt/fix-big-file
Delete binary file
2023-10-26 19:25:56 +02:00
Kubernetes Prow Robot
95e2b1b68e
Merge pull request #121543 from dims/add-back-k8s.io/kms/internal/plugins/_mock-go-mod-sum
Add back k8s.io/kms/internal/plugins/_mock/go.*
2023-10-26 19:25:47 +02:00
Jiahui Feng
3f73cdcf2a extend SchemaResolver for more types of schemas. 2023-10-26 10:25:41 -07:00
Jiahui Feng
38fecc8319 opportunistically attempt to refresh RESTMapper
if GVK resolution fails.
2023-10-26 10:24:21 -07:00
Jiahui Feng
05cd3e66ef simplified e2e test for CRD typechecking. 2023-10-26 10:21:49 -07:00
Kubernetes Prow Robot
53e91942bf
Merge pull request #117780 from sourcelliu/schedulinggates
Improve the performance of schedulinggates
2023-10-26 18:14:32 +02:00
Mat Kowalski
60a602f170
gce: fix test for non-existing instance in cloud
This commit fixes a GCE instance test for a scenario where instance does
not exist in the cloud. In the `gce_instances.go` we have a code that
handles such a scenario and strips off the error, i.e.

```
if providerID, err = cloudprovider.GetInstanceProviderID(ctx, g, types.NodeName(node.Name)); err != nil {
	if err == cloudprovider.InstanceNotFound {
		return false, nil
	}
	return false, err
}
```

but nevertheless the test was expecing a non-empty error string. This
issue got exposed when implementation of `GetInstanceProviderID` in the
`cloud-provider/cloud.go` changed to return `InstanceNotFound` as-is and
not as a custom string.

Signed-off-by: Mat Kowalski <mko@redhat.com>
2023-10-26 18:06:46 +02:00
Mat Kowalski
4a640ea384
cloud-node-lifecycle controller: add fallback for empty providerID in shutdown
Simiarly to the function `ensureNodeExistsByProviderID`,
`shutdownInCloudProvider` should have a logic where in case of an empty
providerID we get it using the name of the node. This is to support
scenarios when the function is called with Node object that has a name
but does not have any provider ID.

Currently in such a scenario we have an error as it is not possible to
call `InstanceShutdownByProviderID` with empty value. With this change
in such a scenario we will first obtain a correct provider ID and only
afterwards check the shutdown status.

Signed-off-by: Mat Kowalski <mko@redhat.com>
2023-10-26 18:06:45 +02:00
Kubernetes Prow Robot
c73ab5162b
Merge pull request #116507 from sourcelliu/podrequest
Improve performance of method PodRequests
2023-10-26 15:58:16 +02:00
Jordan Liggitt
84faaf4427
Prevent sampledeviceplugin binary commit 2023-10-26 09:57:06 -04:00
Davanum Srinivas
7fc42189b1
Add back k8s.io/kms/internal/plugins/_mock/go.*
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-10-26 09:54:13 -04:00
Jordan Liggitt
110ffa13b7
Delete binary file 2023-10-26 09:48:29 -04:00
Aleksandra Malinowska
e07d898cfd Make StatefulSet restart pods with phase Succeeded 2023-10-26 15:34:01 +02:00
Patrick Ohly
27f6fb2fa7 hack/tools: golangci-lint v1.55.1
No particular reason for updating to it besides staying up-to-date. The new
checks in the updated ginkgolinter found issues.
2023-10-26 15:32:43 +02:00
Kubernetes Prow Robot
94ec99d4c2
Merge pull request #121448 from p0lyn0mial/upstream-add-support-for-watchlist-detector-to-ci-jobs
cluster/gce: set KUBE_WATCHLIST_INCONSISTENCY_DETECTOR when requested by a CI job
2023-10-26 14:09:35 +02:00
Kubernetes Prow Robot
993c918311
Merge pull request #121255 from tukwila/OpenAPIV3-cleanup
Remove GAed feature gates OpenAPIV3
2023-10-26 14:09:17 +02:00
Patrick Ohly
6302f01121 e2e node: fix broken assertion
It looks like the test or the branch is never executed, because it wouldn't
pass: a []v1.NodeIP is value is never the same as []string. Found by the
upcoming ginkgolinter update.

    ERROR: test/e2e_node/pod_host_ips.go:167:45: ginkgo-linter: use Equal with different types: Comparing []k8s.io/api/core/v1.HostIP with []string; either change the expected value type if possible, or use the BeEquivalentTo() matcher, instead of Equal() (ginkgolinter)
    ERROR: 					gomega.Expect(p.Status.HostIPs).Should(gomega.Equal(nodeIPs))
    ERROR: 					                                       ^
2023-10-26 13:25:00 +02:00
Patrick Ohly
d0a5cd16da e2e upgrades: fix broken assertion
It looks like the test is never executed, because it wouldn't pass: an int32
value is never the same as an int 0. Found by the upcoming ginkgolinter update.
2023-10-26 13:25:00 +02:00
Kubernetes Prow Robot
4aea803f3f
Merge pull request #121254 from bart0sh/PR124-graduate-DevicePluginCDIDevices-to-Beta
Graduate DevicePluginCDIDevices to Beta
2023-10-26 12:59:19 +02:00
Kubernetes Prow Robot
7658fe8dc4
Merge pull request #118456 from testwill/bool-constant
chore: omit comparison to bool constant
2023-10-26 12:59:05 +02:00
Roman Bednar
fb872e8638 test: fix storage status update test
After enabling PersistentVolumeLastPhaseTransitionTime feature, any
test that compares PV objects that transitioned phase needs to handle
timestamp values correctly.

Either the tests should avoid phase transitions if not needed or the
test needs to set the same timestamp on new PV object so it's not
changed and can be checked for equality later, the latter is used in
this commit.
2023-10-26 11:47:02 +02:00
Roman Bednar
53339894a1 enable PersistentVolumeLastPhaseTransitionTime feature gate for status update test 2023-10-26 11:47:02 +02:00
Roman Bednar
071a67d8c2 export time function
NowFunc() has to be exported so it is available for testing in other
packages.
2023-10-26 11:47:01 +02:00
Roman Bednar
9cfd96dbb5 graduate PersistentVolumeLastPhaseTransitionTime to beta 2023-10-26 11:47:01 +02:00
Sascha Grunert
c6b42c8a72
Make e2e node image ID test more flexible
Container runtimes like CRI-O actually show the image identifier in the
`ImageID` field rather than the repo digest. For the digest we already
have the `Image` field. We still allow the digest in the `ImageID` field
for historic reasons.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-10-26 11:07:12 +02:00
Kubernetes Prow Robot
191abe34b8
Merge pull request #120550 from adrianchiris/fix-dra-node-reboot
DRA: call plugins for claims even if exist in cache
2023-10-26 10:26:59 +02:00
Lukasz Szaszkiewicz
517efd6442 cluster/gce: set KUBE_WATCHLIST_INCONSISTENCY_DETECTOR when requested by a CI job
when the KUBE_WATCHLIST_INCONSISTENCY_DETECTOR environment variable was set
then the reflector performs a data consistency check.

The consistency check is meant to be enforced only in the CI, not in production.
The check ensures that data retrieved by the watch-list api call
is exactly the same as data received by the standard list api call.

note that the new env var is set in the same places
the ENABLE_CACHE_MUTATION_DETECTOR is set.
2023-10-26 09:41:48 +02:00
Kubernetes Prow Robot
d0084356b3
Merge pull request #121338 from dims/working-otel-bump
Bump otel and other dependencies for CVE-2023-45142
2023-10-26 08:34:47 +02:00
Kubernetes Prow Robot
2dc35c28bf
Merge pull request #121306 from dims/drop-usage-of-deprecated-method-NewNamedRateLimitingQueue
[sample-controller] Drop usage of deprecated method NewNamedRateLimitingQueue
2023-10-26 08:34:30 +02:00
Kubernetes Prow Robot
97b4a8d16b
Merge pull request #120023 from chansuke/update-testgrid-url
Update the URL of testgrid
2023-10-26 08:34:20 +02:00
Lubomir I. Ivanov
837090135f kubeadm: make super-admin.conf changes to app/cmd
- Update unit tests in certs_test.go related to the "renew" CLI command.
- In /init, (d *initData) Client(), make sure that the new logic
for bootstrapping an "admin.conf" user is performed, by calling
EnsureAdminClusterRoleBinding() from the phases backend. Add a
"adminKubeConfigBootstrapped" flag that helps call this logic only
once per "kubeadm init" binary execution.
- In /phases/init include a new subphase for generating
the "super-admin.conf" file.
- In /phases/reset make sure the file "super-admin.conf" is
cleaned if present. Update unit tests.
2023-10-26 07:36:03 +03:00
Lubomir I. Ivanov
30ed50d32e kubeadm: make super-admin.conf changes in app/phases
- Register the new file in /certs/renewal, so that the
file is renewed if present. If not present the common message "MISSING"
is shown. Same for other certs/kubeconfig files.
- In /kubeconfig, update the spec for admin.conf to use
the "kubeadm:cluster-admins" Group. A new spec is added for
the "super-admin.conf" file that uses the "system:masters" Group.
- Add a new function EnsureAdminClusterRoleBinding() that includes
logic to ensure that admin.conf contains a User that is properly
bound on the "cluster-admin" built-in ClusterRole. This requires
bootstrapping using the "system:masters" containing "super-admin.conf".
Add detailed unit tests for this new logic.
- In /upgrade#PerformPostUpgradeTasks() add logic to create the
"admin.conf" and "super-admin.conf" with the new, updated specs.
Add detailed unit tests for this new logic.
- In /upgrade#StaticPodControlPlane() ensure that renewal of
"super-admin.conf" is performed if the file exists.
Update unit tests.
2023-10-26 07:36:03 +03:00
Kubernetes Prow Robot
92c4b3254f
Merge pull request #118432 from testwill/stats
chore: loop optimization
2023-10-26 06:25:25 +02:00
Kubernetes Prow Robot
266b3929e4
Merge pull request #117529 from sourcelliu/podstatus
Improve the performance of isPodStatusCacheTerminal
2023-10-26 06:25:16 +02:00
Kubernetes Prow Robot
f997e50425
Merge pull request #117516 from sourcelliu/intcast
Remove unnecessary type conversion
2023-10-26 06:25:02 +02:00
Kubernetes Prow Robot
3ae4dbd45f
Merge pull request #121442 from swatisehgal/topology-mgr-test-fix
node: e2e: topology-mgr: Determine threads per core to disambiguage cores from cpus
2023-10-26 04:22:52 +02:00
Kubernetes Prow Robot
338aee71c3
Merge pull request #119898 from saschagrunert/semconv
Use tracing semconv types instead of own defines
2023-10-26 04:22:38 +02:00
Kubernetes Prow Robot
9363edf07b
Merge pull request #121517 from soltysh/security_contacts
Update security contacts for sig-cli
2023-10-26 02:14:01 +02:00
Kubernetes Prow Robot
2e2e68e7f0
Merge pull request #121479 from wzshiming/test/pod-host-ips
Add PodHostIPs test
2023-10-26 02:13:52 +02:00
Kubernetes Prow Robot
1662399131
Merge pull request #121506 from kwilczynski/fix/upstream/remove-dbus-restart-test
Remove problematic Dbus restart test
2023-10-26 01:08:41 +02:00
Kubernetes Prow Robot
e0eb5edbf9
Merge pull request #121487 from mimowo/fix-flaky-e2e-tests-for-job
Do not preallocate node for Job e2e tests to fix flakes
2023-10-26 01:08:32 +02:00
Kubernetes Prow Robot
a88dbd9269
Merge pull request #121440 from bart0sh/PR125-e2e-test-DevicePluginCDIDevices
e2e_node: test device plugin support of CDI devices
2023-10-26 01:08:23 +02:00
Kubernetes Prow Robot
b7e5cbf1cf
Merge pull request #121301 from sttts/sttts-validate-cloud-provider-2
kubeapiserver/options: fix cloud provider validation
2023-10-26 01:08:14 +02:00
Kubernetes Prow Robot
0501933e56
Merge pull request #121291 from bzsuni/ga/CSIMigrationvSphere
Remove GA featuregate about CSIMigrationvSphere in 1.29
2023-10-26 01:08:06 +02:00
Kubernetes Prow Robot
5fbc278d94
Merge pull request #121097 from danwinship/BaseEndpointInfo-fixes
BaseEndpointInfo cleanup
2023-10-26 01:07:56 +02:00
Kubernetes Prow Robot
de708905d8
Merge pull request #121041 from ruiwen-zhao/sli-add-pull
Add metric for e2e pod startup latency including image pull
2023-10-26 01:07:43 +02:00
Alexander Zielenski
d0328df04e add time tracking to CorrelatedObject 2023-10-25 14:53:21 -07:00
Kubernetes Prow Robot
6330b27225
Merge pull request #121501 from pohly/golangci-lint-path
verify-golangci-lint.sh: support arbitrary GOBIN
2023-10-25 23:48:49 +02:00
Kubernetes Prow Robot
ab096ef3de
Merge pull request #121459 from jiahuif-forks/feature/cel/allow-empty-object
allow empty object to be CEL value.
2023-10-25 23:48:40 +02:00
Kubernetes Prow Robot
d7b3d5d4ee
Merge pull request #121343 from alexzielenski/apiserver/apiextensions/ratcheting-metrics
KEP-4008: CRDValidationRatcheting: Shared CorrelatedObject for Schema and CEL Validators
2023-10-25 23:48:26 +02:00