Commit Graph

26262 Commits

Author SHA1 Message Date
Ben Luddy
67b9dc1f3e Wire client feature gates affecting RESTClient content config. 2024-10-28 13:15:28 -04:00
Kubernetes Prow Robot
eb10b9b979 Merge pull request #128107 from alaypatel07/kep-4017-integration-tests
[KEP-4017]: update e2e and integration test for PodIndexLabel
2024-10-25 20:18:52 +01:00
Kubernetes Prow Robot
119f114f01 Merge pull request #128196 from richabanker/move-version
Move k8s.io/apiserver/pkg/util/version to component-base
2024-10-25 18:33:01 +01:00
Alay Patel
0aa065ab7e update e2e and integration test for PodIndexLabel
Signed-off-by: Alay Patel <alayp@nvidia.com>
2024-10-25 12:17:19 -04:00
Maciej Szulik
db94009981 Promote job creation timestamp annotation to stable
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2024-10-25 16:09:54 +02:00
Richa Banker
9274a584b8 Split k8s.io/component-base/registry and add into k8s.io/component-base/version and k8s.io/component-base/featuregate 2024-10-24 19:09:30 -07:00
Kubernetes Prow Robot
5147eebf22 Merge pull request #128243 from benluddy/cbor-dynamic-integration
KEP-4222: Add CBOR variant of admission webhook integration test.
2024-10-25 01:04:53 +01:00
Kubernetes Prow Robot
66da447e14 Merge pull request #128317 from Jefftree/revert-componentsli-feature
Set ComponentSLIs feature as GA
2024-10-24 22:42:51 +01:00
Kubernetes Prow Robot
b7a85a9db3 Merge pull request #128262 from dom4ha/scheduler-perf
Tune PreemptionAsync and Unschedulable tests threshold and params.
2024-10-24 21:24:52 +01:00
Ben Luddy
77401d7073 Add CBOR variant of admission webhook integration test.
The existing admission webhook integration test provides good coverage of serving built-in resources
and custom resources, including subresources. Serialization concerns, including roundtrippability,
of built-in types have existing test coverage; the CBOR variant of the admission webhook integration
test additionally exercises client and server codec wiring.
2024-10-24 13:27:39 -04:00
Ben Luddy
ea13190d8b Add test-only client feature gates for CBOR.
As with the apiserver feature gate for CBOR as a serving and storage encoding, the client feature
gates for CBOR are being initially added through a test-only feature gate instance that is not wired
to environment variables or to command-line flags and is intended only to be enabled
programmatically from integration tests. The test-only instance will be removed as part of alpha
graduation and replaced by conventional client feature gating.
2024-10-24 13:27:39 -04:00
Ben Luddy
0cad1a89b6 Wire test-only feature gate for CBOR serving.
To mitigate the risk of introducing a new protocol, integration tests for CBOR will be written using
a test-only feature gate instance that is not wired to runtime options. On alpha graduation, the
test-only feature gate instance will be replaced by a normal feature gate in the existing apiserver
feature gate instance.
2024-10-24 13:27:36 -04:00
Kubernetes Prow Robot
0a62f0fd7b Merge pull request #128139 from Jefftree/revert-allowservicelb
Revert removal of feature AllowServiceLBStatusOnNonLB and LockToDefault first
2024-10-24 15:20:54 +01:00
Kubernetes Prow Robot
8c7160205d Merge pull request #127922 from PiotrProkop/topology-manager-policy-options-e2e
add e2e tests for prefer-closest-numa-nodes TopologyManagerPolicyOption
2024-10-24 14:17:03 +01:00
Jefftree
b8e3ef7fbf update feature yaml 2024-10-24 13:09:04 +00:00
Jefftree
a0977f0673 Revert "Remove GA feature gate ComponentSLIs"
This reverts commit f1af84620b.
2024-10-24 13:00:04 +00:00
PiotrProkop
a6eb3281cc add e2e tests for prefer-closest-numa-nodes TopologyManagerPolicyOption suboptimal allocation
Signed-off-by: PiotrProkop <pprokop@nvidia.com>
2024-10-24 11:45:39 +02:00
Michal Wozniak
d521e44187 Rollback promotion of Job e2e test for pod failure policy using exit code 2024-10-24 10:30:56 +02:00
Kubernetes Prow Robot
753b6fe40b Merge pull request #128292 from bart0sh/PR162-dont-check-container-metrics-if-PodAndContainerStatsFromCRI-enabled
e2e_node: check container metrics conditionally
2024-10-24 01:02:58 +01:00
Kubernetes Prow Robot
050a4a13b9 Merge pull request #128291 from alculquicondor/rm-alculquicondor-job
Remove alculquicondor from job approvers
2024-10-23 23:59:01 +01:00
Kubernetes Prow Robot
71093a09c1 Merge pull request #128244 from gnufied/fix-fsgroup-behaviour
Apply fsGroup when accessMode is ReadWriteOncePod
2024-10-23 23:58:52 +01:00
Kubernetes Prow Robot
d7e5ff87e0 Merge pull request #128083 from carlory/fix-126662-kubelet
kubelet: fix a bug where kubelet wrongly drops the QOSClass field of the Pod's s status when it rejects a Pod
2024-10-23 21:00:53 +01:00
Ed Bartosh
2ac5dfe379 e2e_node: check container metrics conditionally
When PodAndContainerStatsFromCRI FG is enabled, Kubelet tries to get
list of metrics from the CRI runtime using CRI API 'ListMetricDescriptors'.

As this API is not implemented in neither CRI-O nor Containerd versions
used in the test-infra, ResourceMetrics test case fails to gather
certain container metrics.

Excluding container metrics from the expected list of metrics if
PodAndContainerStatsFromCRI is enabled should solve the issue.
2024-10-23 21:08:36 +03:00
Aldo Culquicondor
5fab6175b7 Remove alculquicondor from job approvers
Change-Id: I2b1514ff70108602a589522cbb63dcdc88849313
2024-10-23 17:58:55 +00:00
Hemant Kumar
3c1576d47c Add e2e for fsGroupChangePolicy for RWOP volume types 2024-10-23 13:47:15 -04:00
carlory
c7e384f9ff kubelet: fix a bug where kubelet drops the QOSClass field of the Pod's status when it rejects a Pod
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2024-10-24 01:01:04 +08:00
Kubernetes Prow Robot
66e3401225 Merge pull request #128264 from mimowo/promote-pod-failure-tests
Promote the Job pod failure policy to Conformance
2024-10-23 14:23:00 +01:00
dom4ha
b3c4fe48e9 Tune PreemptionAsync and Unschedulable tests threshold and params. 2024-10-23 12:24:10 +00:00
Kubernetes Prow Robot
c6669ea7d6 Merge pull request #127155 from ffromani/alignment-metrics
node: metrics: add resource alignment metrics
2024-10-23 09:54:58 +01:00
Kubernetes Prow Robot
2002023a4e Merge pull request #127656 from jdtuhui/testifylint/formatter@test/utils
fix: enable formatter rule from testifylint in module test/utils
2024-10-23 07:26:52 +01:00
Francesco Romani
c025861e0c node: metrics: add resource alignment metrics
In order to improve the observability of the resource management
in kubelet, cpu allocation and NUMA alignment, we add more metrics
to report if resource alignment is in effect.

The more precise reporting would probably be using pod status,
but this would require more invasive and riskier changes,
and possibly extra interactions to the APIServer.

We start adding metrics to report if containers got their
compute resources aligned.
If metrics are growing, the assingment is working as expected;
If metrics stay consistent, perhaps at zero, no resource
alignment is done.

Extra fixes brought by this work
- retroactively add labels for existing tests
- running metrics test demands precision accounting to avoid flakes;
  ensure the node state is restored pristine between each test, to
  minimize the aforementioned risk of flakes.
- The test pod command line was wrong, with this the pod could not
  reach Running state. That gone unnoticed so far because
  no test using this utility function actually needed a pod
  in running state.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2024-10-23 08:05:38 +02:00
Kubernetes Prow Robot
ed696ecd20 Merge pull request #127753 from skitt/missing-go-env
hack: configure Go environments where necessary
2024-10-23 03:46:59 +01:00
Kubernetes Prow Robot
7fff5b6b02 Merge pull request #127566 from zhifei92/integrate-watchdog
integrate kubelet with the systemd watchdog
2024-10-23 02:21:34 +01:00
Kubernetes Prow Robot
061be57eb1 Merge pull request #125808 from bzsuni/cleanup/PollUntil
Use PollUntilContextCancel to replace PollUntil in test
2024-10-23 01:17:58 +01:00
Kubernetes Prow Robot
c326b0d2a3 Merge pull request #123818 from carlory/cleanup-deployment
remove stale comment
2024-10-23 01:17:37 +01:00
Kubernetes Prow Robot
8ddbf2a789 Merge pull request #128245 from dims/copy-limited-pieces-of-code-we-use-from-runc-apparmor-and-utils-packages
Copy limited pieces of code we use from runc's apparmor and utils packages
2024-10-23 00:12:59 +01:00
Kubernetes Prow Robot
fdc61b8fa2 Merge pull request #128116 from pohly/ktesting-context-timeout-warning
ktesting: improve context message
2024-10-23 00:12:53 +01:00
Kubernetes Prow Robot
d4a0c2be3e Merge pull request #128260 from macsko/add_node_update_event_test_case
Add scheduler_perf test case for NodeUpdate event handling
2024-10-22 22:36:58 +01:00
Richa Banker
81cd728c66 Move k8s.io/apiserver/pkg/util/version to component-base 2024-10-22 13:03:42 -07:00
Arda Güçlü
1caf9a150b KEP-4292: Add e2e test for custom profile in kubectl debug (#127187)
* Remove KUBECTL_DEBUG_CUSTOM_PROFILE env var

* Add e2e test for custom profile in kubectl debug

* Keep feature flag until 1.33

* Update comment

* Simplify tests by relying on test framework functionality

* Rename import alias to better to pass verify-import-alias
2024-10-22 19:48:59 +01:00
Michal Wozniak
be685c838e Promote the Job pod failure policy to Conformance 2024-10-22 17:00:37 +02:00
Davanum Srinivas
abbc5ad346 Copy limited pieces of code we use from runc's apparmor and utils packages
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-10-22 09:56:22 -04:00
torredil
501ec35a5f Update context in cleanup func for e2e test
Signed-off-by: torredil <torredil@amazon.com>
2024-10-22 10:37:08 +00:00
Maciej Skoczeń
84e23fcc88 Add scheduler_perf test case for NodeUpdate event handling 2024-10-22 09:03:53 +00:00
Kubernetes Prow Robot
8d373066bb Merge pull request #127790 from torredil/fix-e2e-retroactive-sc-12513
Fix Storage e2e test `should assign default SC to PVCs that have no SC set`
2024-10-21 19:44:51 +01:00
Kubernetes Prow Robot
f1e447b9d3 Merge pull request #126897 from HirazawaUi/promote-env-to-beta
KEP-4369: promote RelaxedEnvironmentVariableValidation feature gate to beta
2024-10-21 15:26:41 +01:00
zhifei92
dac7332ed2 integrate kubelet with the systemd watchdog
feat:  add unit test

feat:  add FeatureGate for SystemdWatchdog

fix:  linter and failed tests

feat:  add SystemdWatchdog to versioned feature list yaml
2024-10-21 10:46:14 +08:00
Kubernetes Prow Robot
e39571591d Merge pull request #127478 from googs1025/scheduler/fine-grained
feature(scheduler): more fine-grained QHints for podtopologyspread plugin
2024-10-20 13:29:03 +01:00
googs1025
1edbd0b54f feature(scheduler): more fine-grained QHints for podtopologyspread plugin 2024-10-19 23:45:13 +08:00
Kubernetes Prow Robot
ec16c90aaf Merge pull request #126593 from stlaz/trustbundles-e2e
KEP-3257: e2e: extend cluster trust bundles coverage
2024-10-19 00:51:03 +01:00