Commit Graph

6011 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
b16838370b Merge pull request #136044 from SergeyKanzhelev/versioninconfigz
added API Version and Kind in /configz serailized objects
2026-03-11 15:09:36 +05:30
Kubernetes Prow Robot
38940f0222 Merge pull request #135297 from michaelasp/svmUpdateCRD
Remove CRD stored versions from status upon SVM migration
2026-03-11 08:03:09 +05:30
Michael Aspinwall
d274e05cc9 Remove CRD stored versions from status upon SVM migration 2026-03-11 00:50:27 +00:00
Sergey Kanzhelev
4396474b0b integration tests for configz endpoints 2026-03-11 00:25:32 +00:00
Kubernetes Prow Robot
fdbea74545 Merge pull request #137419 from michaelasp/rvInformerMetrics
Add metric tracking the latest cached rv of informers
2026-03-11 03:53:24 +05:30
Kubernetes Prow Robot
69144c9081 Merge pull request #137371 from pohly/dra-bind-claim-panic
DRA scheduler: fix potential panic when DRABindingConditions are enabled
2026-03-11 03:03:25 +05:30
Michael Aspinwall
9fb9e933b2 Add metric tracking the latest cached rv of informers 2026-03-10 20:29:41 +00:00
Kubernetes Prow Robot
0009958799 Merge pull request #137386 from richabanker/flagz-beta
Graduate ComponentFlagz feature gate to Beta
2026-03-11 00:45:26 +05:30
Kubernetes Prow Robot
89d2deaa1d Merge pull request #137202 from serathius/watchlist-trace
Mirror List and WatchList tracing
2026-03-11 00:45:18 +05:30
Kubernetes Prow Robot
bfb362c575 Merge pull request #137466 from richabanker/nh-scheduler
Enable native histograms gated by feature flag in scheduler
2026-03-10 23:03:11 +05:30
Richa Banker
a902b8ffdc Graduate ComponentFlagz feature gate to Beta 2026-03-10 09:50:16 -07:00
Kubernetes Prow Robot
f8b277b2b8 Merge pull request #137600 from pacoxu/integration-flake
for discovery integration, set client qps limit to 50 and burst to 100
2026-03-10 20:21:30 +05:30
Kubernetes Prow Robot
2757a872ec Merge pull request #137523 from enj/enj/f/constrained_impersonation_latency_metrics
KEP-5284: add impersonation latency tracking
2026-03-10 19:29:36 +05:30
Paco Xu
0cc4aaa963 for discovery integration, set client qps limit to 50 and burst to 100 2026-03-10 15:43:45 +08:00
Antoni Zawodny
3f094dc228 Create Workload API v1alpha2 (#136976)
* Drop WorkloadRef field and introduce SchedulingGroup field in Pod API

* Introduce v1alpha2 Workload and PodGroup APIs, drop v1alpha1 Workload API

Co-authored-by: yongruilin <yongrlin@outlook.com>

* Run hack/update-codegen.sh

* Adjust kube-scheduler code and integration tests to v1alpha2 API

* Drop v1alpha1 scheduling API group and run make update

---------

Co-authored-by: yongruilin <yongrlin@outlook.com>
2026-03-10 07:59:10 +05:30
Monis Khan
8a154c3d39 KEP-5284: add impersonation latency tracking
This change allows slow impersonation requests to be tracked via the
apiserver.latency.k8s.io/impersonation audit event annotation.

Updated tests to assert that the audit event log:

- Contains the new latency annotation
- Contains the impersonationConstraint field
- Failed impersonation attempts are observable by the response status

Signed-off-by: Monis Khan <mok@microsoft.com>
2026-03-09 19:58:31 -04:00
Richa Banker
07705a5de7 Enable native histograms in scheduler gated by feature flag 2026-03-09 16:36:05 -07:00
Kubernetes Prow Robot
e7f635506d Merge pull request #136763 from richabanker/nh-alpha
Enable native histograms gated by feature flag in apiserver
2026-03-10 04:11:09 +05:30
Kubernetes Prow Robot
7495d96adf Merge pull request #136924 from troychiu/PriorityListStable
Promote DRAPrioritizedList to GA
2026-03-09 23:55:29 +05:30
Kubernetes Prow Robot
090693bd79 Merge pull request #137497 from atombrella/feature/modernize_activate_forvar
Lint: Activate modernize/forvar rule in golangci-lint.
2026-03-09 14:01:11 +05:30
Mads Jensen
dd32d7c324 Lint: Activate modernize/forvar rule in golangci-lint. 2026-03-06 21:36:05 +01:00
Kubernetes Prow Robot
f5bafe93ac Merge pull request #135048 from yliaog/beta_promo
DRA Extended Resource: promote to Beta in 1.36
2026-03-07 01:12:19 +05:30
Kubernetes Prow Robot
c37f97806d Merge pull request #137351 from ibihim/ibihim/2026-02-24_kep-3926-add-cr-and-bitflip-tests
kep-3926: add integration tests for CR and bit-flip corrupt object deletion
2026-03-06 15:42:21 +05:30
Kubernetes Prow Robot
559e7a23b0 Merge pull request #137448 from bishal7679/fix/137422-discovery-integration-test-timeout
fix: [sig-apimachinery] flaky discovery integration test `TestReadinessAggregatedAPIServiceDiscovery`
2026-03-06 14:40:27 +05:30
Kubernetes Prow Robot
4915f3f8b3 Merge pull request #137304 from aaron-prindle/fieldsv1-encapsulation
refactor: fieldsv1 encapsulation via accessors and deprecation of direct "Raw" field usage
2026-03-06 06:50:17 +05:30
Richa Banker
3b98cd284d Enable native histograms gated by feature flag 2026-03-05 16:35:00 -08:00
Aaron Prindle
e57b3a74f3 refactor: update in-tree FieldsV1 consumers to use format-specific accessors 2026-03-05 22:23:05 +00:00
Kubernetes Prow Robot
b50a6aa7cf Merge pull request #137374 from enj/enj/f/constrained_impersonation_metrics
KEP-5284: add constrained impersonation metrics
2026-03-06 03:42:25 +05:30
Kubernetes Prow Robot
2a41bb390e Merge pull request #136759 from pravk03/ndf-guaranteedQos-fix
Remove `GuaranteedQoSPodCPUResize` declared feature
2026-03-06 02:00:18 +05:30
Monis Khan
ba2a68e1db KEP-5284: add constrained impersonation metrics
See https://kep.k8s.io/5284 for details.

apiserver_impersonation_attempts_total{mode, decision}
apiserver_impersonation_attempts_duration_seconds{mode, decision}
apiserver_impersonation_authorization_attempts_total{mode, decision}
apiserver_impersonation_authorization_attempts_duration_seconds{mode, decision}

Signed-off-by: Monis Khan <mok@microsoft.com>
2026-03-05 15:26:45 -05:00
Rita Zhang
c4f88de33e Move DRAAdminAccess feature to GA (#137373)
* Move DRAAdminAccess feature to GA

Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>

* address comments

Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>

---------

Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2026-03-05 23:42:21 +05:30
Krzysztof Ostrowski
80cc27ae50 kep-3926: fix 60s shutdown timeout in transformation tests
Cancel informer watch connections before tearing down the test
apiserver to avoid hitting the 60s http.Server.Shutdown drain timeout.
Each subtest was blocking on open watch connections, adding ~300s to
the total suite runtime.

Decouple the informer lifecycle from the apiserver by using a separate
cancellable context for factory.Start(). Go's defer LIFO ordering
ensures the informer stops before test.cleanUp() shuts down the
server.

Also reduce EncryptionConfigFileChangePollDuration to 1s in TestMain.
2026-03-05 18:44:52 +01:00
bishal7679
35cf373703 increased discovery integration test timeout to resolve flakiness
Signed-off-by: bishal7679 <bishalhnj127@gmail.com>
2026-03-05 16:49:49 +05:30
Kubernetes Prow Robot
ad854f3495 Merge pull request #137411 from jpbetz/add-controlplane-test-owners
Add OWNERS file for test/integration/controlplane
2026-03-05 05:02:33 +05:30
Praveen Krishna
8af985c4fa fix: Remove GuaranteedQoSPodCPUResize declared feature 2026-03-04 21:17:44 +00:00
Joe Betz
a48ca688da Add OWNERS file for test/integration/controlplane 2026-03-04 14:54:37 -05:00
Marek Siarkowicz
8ec951bf10 Mirror List and WatchList tracing 2026-03-04 10:29:37 +01:00
Kubernetes Prow Robot
5bc6d200a2 Merge pull request #137379 from aramase/aramase/c/drop_v1alpha1_webhookadmission
drop v1alpha1 webhookadmission configuration
2026-03-04 05:20:35 +05:30
Anish Ramasekar
2727957fec drop v1alpha1 webhookadmission configuration
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2026-03-03 13:31:09 -08:00
Richa Banker
adbf7dee82 graduate config.k8s.io.v1alpha1.flagz to beta 2026-03-03 13:12:16 -08:00
Krzysztof Ostrowski
df9ee166f5 kep-3926: add bit-flip corruption test for Secrets decoder error path
Add TestBitFlipCorruptObjectDeletion to exercise the decoder error path
for KEP-3926 using Secrets (protobuf encoding). Unlike the existing
TestAllowUnsafeMalformedObjectDeletionFeature which tests transformer
errors (wrong encryption key), this test uses identity encryption and
corrupts stored bytes directly in etcd, triggering "undecodable" errors
at the protobuf decoder layer.

The informer is given an extended timeout (2 minutes) after deletion
to recover from the exponential backoff accumulated during the
corruption window. The reflector's backoff caps at [30s, 60s) with
jitter, so 2 minutes provides sufficient leeway.

The gate=false subtest is skipped because writing corrupt bytes directly
to etcd emits a watch event that the cacher cannot decode, breaking its
watch. Without the feature gate, the subsequent re-list aborts on the
first decode error (abortOnFirstError aggregator), so the cacher never
recovers and GET requests hang. This differs from the encryption-config
swap tests where no etcd data changes and no watch event is emitted.
This is a known issue to be addressed separately.
2026-03-03 18:49:09 +01:00
Krzysztof Ostrowski
77b45524d9 kep-3926: add integration tests for corrupt CR object deletion
Add tests that exercise the AllowUnsafeMalformedObjectDeletion feature
gate for Custom Resources (foos.cr.bar.com), mirroring the existing
Secret-based tests. This covers the dynamic storage registry code path
that is distinct from built-in resources, including unsafe delete with
privilege escalation and LIST behavior for corrupt CR objects.
2026-03-03 18:49:08 +01:00
Kubernetes Prow Robot
56262e6ab1 Merge pull request #137173 from richabanker/statusz-beta
Graduate statusz API to beta
2026-03-03 22:07:46 +05:30
Kubernetes Prow Robot
13010f06b2 Merge pull request #137167 from pohly/dra-device-taints-update-timestamp
DRA device taints: automatically bump TimeAdded when changing effect
2026-03-03 22:07:37 +05:30
Patrick Ohly
6be0185960 DRA integration: fix goroutine leak in ControllerManagerMetrics test
The goroutine did not keep running for long, but waiting for the controller to
stop is better. Noticed because of:

   E0303 07:43:20.154262   39037 runtime.go:221] "Work item failed" err="Operation cannot be fulfilled on resourceclaims.resource.k8s.io \"external-claim\": the object has been modified; please apply your changes to the latest version and try again" logger="TestDRA/all/ControllerManagerMetrics leaked goroutine.UnhandledError" item="claim:testdra-all-shareresourceclaimsequentially-9q88d/external-claim"

Besides the "leaked goroutine" warning this also ensures that the controller is
really inactive when the next test runs.
2026-03-03 15:51:52 +01:00
Sunyanan Choochotkaew
e035c41256 DRA: Promote DRAConsumableCapacity to Beta
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
2026-03-03 18:30:26 +09:00
Krzysztof Ostrowski
783b84cff9 kep-3926: refactor secrets_transformation_test.go
Refactoring as a preparation for the following commits.
Modernize the test file:
- interface{} -> any
- ioutil.ReadFile -> os.ReadFile
- ptr.To[bool](true) -> ptr.To(true)
- Extract grantUserVerbsOnResource from permitUserToDoVerbOnSecret
  to support granting RBAC verbs on arbitrary resources, not just secrets
2026-03-02 22:32:04 +01:00
Kubernetes Prow Robot
2a5b28436c Merge pull request #137253 from tsj-30/fix-133435
DRA: start scheduler after creating binding/non-binding slicesin Basicflow
2026-03-02 17:21:01 +05:30
Jon Huhn
db8e2f4842 DRA: serialize binding conditions integration tests with custom scheduler config 2026-03-01 14:36:17 -06:00
Richa Banker
8f48e83df7 Support multiple versions, add v1alpha1 to deprecated versions 2026-02-27 22:24:15 -08:00