Commit Graph

130075 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
707efc4e51 Merge pull request #131677 from lalitc375/master
[Kubeadm]: Add support for ECDSA-P384 encryption algorithm
2025-05-20 18:24:35 -07:00
Kubernetes Prow Robot
d202031fe0 Merge pull request #131871 from dims/add-a-list-of-modules-that-should-be-pinned-at-current-versions
Add a list of modules that should be pinned at current versions
2025-05-20 16:10:34 -07:00
Davanum Srinivas
c509e22d11 Add a list of modules that should be pinned at current versions
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-20 18:05:57 -04:00
Kubernetes Prow Robot
a7061bcc95 Merge pull request #131860 from arpitjain099/feature/fix-build-dependencies-yaml-file
Fix incorrect URL in build/dependencies.yaml file
2025-05-20 14:44:43 -07:00
Kubernetes Prow Robot
b6c0d7de96 Merge pull request #131561 from JoelSpeed/add-kube-api-linter
Add kube-api-linter verify scripts
2025-05-20 14:44:33 -07:00
Kubernetes Prow Robot
1d93307673 Merge pull request #131865 from carlory/fix-131834
fix flaky test:  ResourceQuota should verify ResourceQuota with terminating scopes through scope selectors
2025-05-20 13:38:12 -07:00
Kubernetes Prow Robot
6729ebd17e Merge pull request #131849 from mortent/AllocatorTestWithAttributes
DRA: Add an allocator test that uses an attribute selector
2025-05-20 13:38:05 -07:00
Kubernetes Prow Robot
148761ce2c Merge pull request #131840 from pohly/client-go-workqueue-wording
client-go workqueue: clarify parallel reenqueuing
2025-05-20 11:21:15 -07:00
Lalit Chauhan
637d234aae feat: Add support for ECDSA-P384 encryption algorithm
This commit introduces support for using ECDSA P-384 as an encryption
algorithm for generating certificates and keys within kubeadm.

The following changes are included:
- Defined the `EncryptionAlgorithmECDSAP384` constant in the kubeadm API types.
- Updated API documentation to reflect the new algorithm option ("ECDSA-P384").
- Added validation for `ECDSA-P384` in the cluster configuration.
- Implemented key generation logic for ECDSA P-384 keys in `pkiutil`
  (using `elliptic.P384()`).
- Added corresponding unit tests to verify the new algorithm's functionality
  in `pkiutil`.

This allows users to choose ECDSA P-384 for
kubeadm-managed clusters.
2025-05-20 17:08:56 +00:00
Morten Torkildsen
b98b86bd6a DRA: Add scheduler perf test for partitionable devices (#131771) 2025-05-20 09:57:16 -07:00
Morten Torkildsen
4cc2bded91 DRA: Add an allocator test that uses an attribute selector 2025-05-20 15:48:31 +00:00
Kubernetes Prow Robot
c40db09a0a Merge pull request #131741 from soltysh/deprecate_preferences
Deprecate kubeconfig's preference field in favor of kuberc
2025-05-20 08:11:18 -07:00
Kubernetes Prow Robot
889cd833a2 Merge pull request #131844 from pohly/dra-no-static-pods
DRA node: reject static pods which reference ResourceClaims
2025-05-20 07:07:24 -07:00
Kubernetes Prow Robot
444e2b4eb0 Merge pull request #131838 from dims/bump-google.golang.org/grpc-to-google-v1.72.1
Bump google.golang.org/grpc to google v1.72.1
2025-05-20 07:07:17 -07:00
carlory
f6fafba424 fix flacky test: ResourceQuota should verify ResourceQuota with terminating scopes through scope selectors
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-05-20 21:57:44 +08:00
Kubernetes Prow Robot
0afe2b839d Merge pull request #129983 from nickbp/master
feature(scheduler): Customizable pod selection and ordering in DefaultPreemption plugin
2025-05-20 05:09:15 -07:00
Maciej Szulik
8cf5e8db78 Deprecate kubeconfig's preference field in favor of kuberc
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-05-20 13:31:57 +02:00
Kubernetes Prow Robot
b20fca7484 Merge pull request #131855 from mortent/CleanupAllocatorTests
DRA: Clean up allocator tests
2025-05-20 02:49:15 -07:00
Kubernetes Prow Robot
4aa2652e5f Merge pull request #131628 from skitt/applyconfig-nil
applyconfig-gen: handle non-pointer types
2025-05-20 01:23:16 -07:00
Arpit Jain
c4a59afe9d Fix incorrect URL in build/dependencies.yaml file 2025-05-20 04:47:50 +00:00
Morten Torkildsen
5bb3f862a0 DRA: Clean up allocator tests 2025-05-20 01:46:55 +00:00
Kubernetes Prow Robot
d75a5811ef Merge pull request #131843 from pohly/resourcequota-scope-flake
ResourceQuota: partial fix "should verify ResourceQuota with terminating scopes through scope selectors" flake
2025-05-19 12:45:21 -07:00
Kubernetes Prow Robot
4e80b05087 Merge pull request #131704 from karlkfi/karl-watch-subtests
test: Use sub-tests in watch tests
2025-05-19 12:45:14 -07:00
Omer Aplatony
3530731974 Kubectl: check version skew (#127365)
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2025-05-19 10:19:14 -07:00
Patrick Ohly
3878f7e748 E2E ResourceQuota: ensure consistent ResourceQuote during scope selector test
When expectation is that something does *not* happen, the test has to check for
a certain time. Checking just once is not sufficient because it might not have
happened immediately.
2025-05-19 18:23:49 +02:00
Kubernetes Prow Robot
f2502b31b8 Merge pull request #131830 from dims/future-proof-csi-test-mocks
future-proof csi test mocks
2025-05-19 08:53:22 -07:00
Kubernetes Prow Robot
f80233f24b Merge pull request #131766 from serathius/flake-TestGetCacheBypass
Separate getList and watch errors to prevent TestGetCacheBypass flakes
2025-05-19 08:53:15 -07:00
Kubernetes Prow Robot
fc3e0cf60d Merge pull request #131841 from pohly/local-up-cluster-cloud-config-fix
hack/local-up-cluster.sh: remove kubelet --cloud-config
2025-05-19 07:09:15 -07:00
Patrick Ohly
4a353d07e4 E2E ResourceQuota: fix pod creation flake
As can be seen in the output of a test failure in the CI, the test waits for
"quota-not-terminating" to be updated, but then fails because creating the pod
exceeds the "quota-terminating" quota which has not been updated yet. As both
ResourceQuotas apply, it needs to wait for both of them to be updated.

    STEP: Deleting the pod - k8s.io/kubernetes/test/e2e/apimachinery/resource_quota.go:1597 @ 05/18/25 07:50:46.531
    STEP: Ensuring resource quota status released the pod usage - k8s.io/kubernetes/test/e2e/apimachinery/resource_quota.go:1601 @ 05/18/25 07:50:46.547
    I0518 07:50:46.551520 75078 resource_quota.go:2508] Got expected ResourceQuota:
    ...
              name: quota-not-terminating
              namespace: scope-selectors-1836
              resourceVersion: "15914"
              uid: db72668e-2fe0-4543-ada2-a3ff0ac77dd5
            spec:
              hard:
                limits.cpu: "2"
                limits.memory: 1Gi
                pods: "1"
                requests.cpu: "1"
                requests.memory: 500Mi
              scopeSelector:
                matchExpressions:
                - operator: Exists
                  scopeName: NotTerminating
            status:
              hard:
                limits.cpu: "2"
                limits.memory: 1Gi
                pods: "1"
                requests.cpu: "1"
                requests.memory: 500Mi
              used:
                limits.cpu: "0"
                limits.memory: "0"
                pods: "0"
                requests.cpu: "0"
                requests.memory: "0"
    STEP: Creating a terminating pod - k8s.io/kubernetes/test/e2e/apimachinery/resource_quota.go:1610 @ 05/18/25 07:50:46.551
    I0518 07:50:46.560944 75078 resource_quota.go:1612] Unexpected error:
        <*errors.StatusError | 0xc002dba500>:
        pods "terminating-pod" is forbidden: exceeded quota: quota-terminating, requested: pods=1, used: pods=1, limited: pods=1
        {
            ErrStatus:
                code: 403
                details:
                  kind: pods
                  name: terminating-pod
                message: 'pods "terminating-pod" is forbidden: exceeded quota: quota-terminating,
                  requested: pods=1, used: pods=1, limited: pods=1'
                metadata: {}
                reason: Forbidden
                status: Failure,
        }
    [FAILED] pods "terminating-pod" is forbidden: exceeded quota: quota-terminating, requested: pods=1, used: pods=1, limited: pods=1
2025-05-19 15:36:57 +02:00
Patrick Ohly
4b10ba9eef E2E ResourceQuota: dump last ResourceQuota
This is meant to help debug this flake:

   [It] [sig-api-machinery] ResourceQuota should verify ResourceQuota with terminating scopes through scope selectors.

   [FAILED] pods "test-pod" is forbidden: exceeded quota: quota-terminating, requested: pods=1, used: pods=1, limited: pods=1
   In [It] at: k8s.io/kubernetes/test/e2e/apimachinery/resource_quota.go:1572 @ 05/14/25 08:49:07.456

Dumping the ResourceQuota object each time the test progresses will
help with understanding the test and the actual behavior.
2025-05-19 15:36:57 +02:00
Kubernetes Prow Robot
82db38a23c Merge pull request #128748 from sanposhiho/attempt-incre
feat: introduce pInfo.UnschedulableCount to make the backoff calculation more appropriate
2025-05-19 01:21:15 -07:00
Patrick Ohly
d3afe8a87e hack/local-up-cluster.sh: remove kubelet --cloud-config
c0b2f341a7 removed that flag, which was already
deprecated earlier. When passing it now, kubelet fails to come up.
2025-05-19 09:20:54 +02:00
Patrick Ohly
772d010665 client-go workqueue: clarify parallel reenqueuing
"Is allowed" does not exactly say what happens. Let's be more explicit.
2025-05-19 08:02:43 +02:00
Davanum Srinivas
d043beb223 HealthChecker has a List method
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-18 12:52:13 -04:00
Davanum Srinivas
9b3830fba2 Bump google.golang.org/grpc v1.72.1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-18 12:52:05 -04:00
Kubernetes Prow Robot
3196c99463 Merge pull request #131832 from bshephar/no-kubeadm-config-option
Remove --config option from suggest kubeadm command
2025-05-18 02:49:14 -07:00
Brendan Shephard
be5d8c767b Update cmd/kubeadm/app/cmd/upgrade/apply.go
Co-authored-by: Bing Hongtao <695097494plus@gmail.com>
2025-05-18 18:38:16 +10:00
Brendan Shephard
c0885e018a Fix --config option from suggested kubeadm command
This change fixes the --config option in the recommended kubeadm command
that is returned to users.

Fixes: https://github.com/kubernetes/kubeadm/issues/3201
Signed-off-by: Brendan Shephard <bshephar@bne-home.net>
2025-05-18 18:36:45 +10:00
Kubernetes Prow Robot
ce450746a4 Merge pull request #131760 from bart0sh/PR178-dra-test-re-registration
DRA: test plugin re-registration after failed GetInfo call
2025-05-17 22:15:13 -07:00
Davanum Srinivas
8f49fb5ce7 future-proof csi test mocks
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-17 20:42:08 -04:00
Kubernetes Prow Robot
2125fd6a94 Merge pull request #130161 from carlory/kep-2395-kubelet-cleanup
kubelet: clean up cloud provider code because cloud provider only supports empty or external and cloud is nil
2025-05-17 13:05:13 -07:00
Kubernetes Prow Robot
ed34574525 Merge pull request #129758 from gyutaeb/fix/kubemark-tr
Fix LC_CTYPE for kubemark start scripts
2025-05-17 08:59:13 -07:00
Kensei Nakada
adc4916dfe feat: introduce pInfo.UnschedulableCount to make the backoff calculation more appropriate 2025-05-17 12:39:58 +02:00
Kubernetes Prow Robot
6e6e6f6e53 Merge pull request #131820 from dims/drop-dependency-on-x/exp-package-in-mount_linux_test
Drop dependency on x/exp package in mount_linux_test.go
2025-05-16 18:27:15 -07:00
Kubernetes Prow Robot
b6bff1bd44 Merge pull request #131800 from BenTheElder/kubelet-testing
kubelet: don't import testing dependency in non-test code
2025-05-16 16:37:13 -07:00
Davanum Srinivas
5def7fadf3 Drop dependency on x/exp package in mount_linux_test.go
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-16 20:46:55 +00:00
Ed Bartosh
b9e2a16083 e2e_node: dra: test plugin registration retry
Adds a DRA e2e_node test to verify that the kubelet plugin manager
retries plugin registration when the GetInfo call fails, and
successfully registers the plugin once GetInfo succeeds.

This ensures correct recovery and registration behavior for
DRA plugins in failure scenarios.
2025-05-16 21:53:35 +03:00
Ed Bartosh
aef61622ae e2e: dra: implement ResetGRPCCalls 2025-05-16 21:53:35 +03:00
Ed Bartosh
e8be3e575b e2e: dra: simulate GetInfo failure 2025-05-16 21:53:30 +03:00
Kubernetes Prow Robot
79cc5ddaa6 Merge pull request #131816 from joshjms/build-etcd-image-v3.6.0
etcd: Build etcd image v3.6.0
2025-05-16 08:07:14 -07:00