Monis Khan
779d76176a
Update tests to handle RemoteRequestHeaderUID
...
Signed-off-by: Monis Khan <mok@microsoft.com >
2024-12-04 16:04:36 -05:00
Stanislav Láznička
a051b067cd
featuregate UID in RequestHeader authenticator
2024-12-04 16:26:28 +01:00
Kubernetes Prow Robot
45260fd76a
Merge pull request #127857 from Jefftree/cle-v1alpha2
...
Coordinated Leader Election add v1alpha2
2024-11-08 07:10:43 +00:00
Jefftree
0ce7b688a6
v1alpha2 LeaseCandidate API
2024-11-08 02:27:19 +00:00
Richa Banker
da8dc433e9
Add flagz implementation and enablement in apiserver
2024-11-07 17:11:49 -08:00
Richa Banker
8bf6eecedf
add statusz implementation and enablement in apiserver
2024-11-07 12:37:38 -08:00
Harshal Neelkamal
6fdacf0411
Add plugin and key-cache for ExternalJWTSigner integration
2024-11-07 03:16:23 +00:00
Patrick Ohly
d6bad27b7d
DRA apiserver: allow DRAAdminAccess feature without DynamicResourceAllocation
...
This makes a configuration with --feature-gates=AllAlpha=true valid
again. Without this change, that flag enabled DRAAdminAccess without
DynamicResourceAllocation being enabled (default off!) and the kube-apiserver
refused to start.
While DRAAdminAccess isn't usable without DynamicResourceAllocation, it's also
not really wrong to allow it - it simply won't matter.
2024-11-06 13:03:20 +01:00
Patrick Ohly
2e64c72249
DRA API: register v1beta1
...
This is the minimal set of changes that are needed to make the new version
usable. The storage version is still v1alpha3. More changes will follow.
2024-11-06 13:03:18 +01:00
Kubernetes Prow Robot
a50b4e52a9
Merge pull request #128553 from thockin/master
...
Validation: merge TooLong and TooLongMaxLen
2024-11-06 04:19:43 +00:00
Kubernetes Prow Robot
67a4d20970
Merge pull request #128505 from Jefftree/fix-cle-lock-acquisition
...
Fix CLE leader lock acquisition
2024-11-06 00:35:42 +00:00
Tim Hockin
c8eeb486f4
Call-site comments: the "" arg to TooLong is unused
2024-11-05 15:10:24 -08:00
Tim Hockin
8a7af90300
Clarify that value arg to field.TooLong is unused
2024-11-05 15:10:23 -08:00
Tim Hockin
4d0e1c8fd4
Kill TooLongMaxLength() in favor of TooLong()
2024-11-05 15:10:22 -08:00
Jefftree
1ede4d8f15
Allow cle mutual exclusion lock to be reacquired
2024-11-05 21:01:03 +00:00
Joe Betz
c0f9c81338
Add MutatingAdmissionPolicy to samples
2024-11-04 21:40:54 -05:00
Patrick Ohly
9a7e4ccab2
DRA admin access: add feature gate
...
The new DRAAdminAccess feature gate has the following effects:
- If disabled in the apiserver, the spec.devices.requests[*].adminAccess
field gets cleared. Same in the status. In both cases the scenario
that it was already set and a claim or claim template get updated
is special: in those cases, the field is not cleared.
Also, allocating a claim with admin access is allowed regardless of the
feature gate and the field is not cleared. In practice, the scheduler
will not do that.
- If disabled in the resource claim controller, creating ResourceClaims
with the field set gets rejected. This prevents running workloads
which depend on admin access.
- If disabled in the scheduler, claims with admin access don't get
allocated. The effect is the same.
The alternative would have been to ignore the fields in claim controller and
scheduler. This is bad because a monitoring workload then runs, blocking
resources that probably were meant for production workloads.
2024-10-29 09:50:11 +01: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
Richa Banker
81cd728c66
Move k8s.io/apiserver/pkg/util/version to component-base
2024-10-22 13:03:42 -07:00
Patrick Ohly
f84eb5ecf8
DRA: remove "classic DRA"
...
This removes the DRAControlPlaneController feature gate, the fields controlled
by it (claim.spec.controller, claim.status.deallocationRequested,
claim.status.allocation.controller, class.spec.suitableNodes), the
PodSchedulingContext type, and all code related to the feature.
The feature gets removed because there is no path towards beta and GA and DRA
with "structured parameters" should be able to replace it.
2024-10-16 23:09:50 +02:00
Kubernetes Prow Robot
d88b4e3b6e
Merge pull request #127777 from tkashem/refactor-delete-option
...
KEP-4795: refactor: add delete options for Delete method in storage interface
2024-10-10 16:36:27 +01:00
Abu Kashem
bc0ea34bc3
refactor: add delete options for Delete method in storage interface
2024-10-08 10:45:15 -04:00
googs1025
b60cef2609
fix(leaderelection): nil check in OnStoppedLeading func
2024-10-04 00:26:06 +08:00
Matthieu MOREL
f736cca0e5
fix: enable expected-actual rule from testifylint in module k8s.io/kubernetes
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-09-27 07:56:31 +02:00
Kubernetes Prow Robot
f9a57ba82d
Merge pull request #126760 from ncdc/ncdc/emeritus
...
Move ncdc to emeritus
2024-09-20 21:01:58 +01:00
Stanislav Láznička
0409ba7ff1
cluster trust CM: wire in the new RequestHeader UID config
2024-09-05 14:28:31 +02:00
carlory
49b2c969a3
remove resource flowschemas and prioritylevelconfigurations from legacyBetaEnabledByDefaultResources in v1.32
2024-09-02 11:30:17 +08:00
Andy Goldstein
0e228be96f
Use emeritus_*
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2024-08-22 17:48:27 -04:00
Andy Goldstein
3ab816dcab
Move ncdc to emeritus
...
I am moving myself to emeritus as I am now firmly on the end-user side
of things.
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2024-08-17 13:06:45 -04:00
Dr. Stefan Schimanski
634c9cd135
Address comments
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-30 09:45:52 +02:00
Jefftree
d092513685
Use fake clock for controller/leaderelection:TestController
2024-07-29 19:36:53 +00:00
Dr. Stefan Schimanski
3987d850a4
kube-apiserver/leaderelection/test: clean up controller test
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-29 09:56:39 +02:00
Dr. Stefan Schimanski
b13aab9cf1
kube-apiserver/leaderelection: remove klog noise
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-29 09:56:05 +02:00
Jefftree
f173f0c58c
kube-apiserver/leaderelection/tests: fix test case PingTime should be ahead of RenewTime
2024-07-27 17:54:09 +00:00
Dr. Stefan Schimanski
b8045f98a4
kube-apiserver/leaderelection/tests: use fake clock
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-27 17:54:09 +00:00
Dr. Stefan Schimanski
8c971c5c15
kube-apiserver/leaderelection/test: fixing waiting for informer
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-27 17:54:08 +00:00
Dr. Stefan Schimanski
c7a1fa432a
Call non-blocking informerFactory.Start synchronously to avoid races
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-27 18:13:09 +02:00
Dr. Stefan Schimanski
87f40441d6
kube-apiserver/leaderelection: remove broken printf
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-26 09:27:05 +02:00
Jefftree
56b278d5d2
fix flake in TestLeaseCandidateCleanup
2024-07-24 14:41:13 +00:00
Jefftree
0c774d0b1f
Change PingTime to be persistent
2024-07-24 14:41:13 +00:00
Dr. Stefan Schimanski
a738daa88a
Review feedback: fix context handling in LeaseCandidateGCController
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-24 14:38:13 +00:00
Dr. Stefan Schimanski
15affefcab
Review feedback: handle non-kube strategy correctly
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-24 14:38:13 +00:00
Dr. Stefan Schimanski
a64418ba0a
Review feedback
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-24 14:38:13 +00:00
Jefftree
fac7581640
feedback: leasecandidate clients
2024-07-24 14:38:12 +00:00
Jefftree
e0c6987ca8
add gc and improve testing
2024-07-24 14:38:11 +00:00
Jefftree
c47ff1e1a9
CLE controller and client changes
2024-07-24 14:38:11 +00:00
Jefftree
e3e56eb1e2
CLE storage and type registration changes
2024-07-24 14:38:11 +00:00
Kubernetes Prow Robot
e83fca8dd9
Merge pull request #124530 from sttts/sttts-controlplane-plumbing-split
...
Step 12 - Add generic controlplane example
2024-07-23 12:21:02 -07:00
Kubernetes Prow Robot
bb350f7111
Merge pull request #125661 from mjudeikis/mjudeikis/poststarthookctx.stopch.cleanup
...
Clean deprecated context.StopCh
2024-07-23 02:12:22 -07:00
Dr. Stefan Schimanski
17970b291a
generic-controlplane: add generic-controlplane apiserver sample
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
generic
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-23 08:38:33 +02:00