Antonio Ojea
b2c8190ee7
allow to set the service reference on the allocator
2023-03-14 22:58:11 +00:00
Antonio Ojea
e6f197a991
plumb new ipallocators in the apiserver
...
plumb the new allocators from the control-plane instance to the
registry_core
Change-Id: I240cc91942260f725492597f1b599f7480560b1e
2023-03-14 22:58:11 +00:00
Antonio Ojea
b022475448
clusterip allocator based on IPAddress API
...
add a new ClusterIP allocator that uses the new IPAddress API resource
and an informer as the backend, instead a bitmap snapshotted on etcd.
Change-Id: Ia891a2900acd2682d4d169abab65cdd9270a8445
2023-03-14 22:58:11 +00:00
Antonio Ojea
aa18a0cd3f
enable IPAddress on storage
...
Change-Id: Iaeac050223bb7db6acba601aa9b7254c74f2b5d2
2023-03-14 22:58:11 +00:00
Antonio Ojea
a2dfbd6117
Add IPAddress API to the REST registry
...
ipaddress registry storage
don't generate names for ipaddress
2023-03-14 22:58:11 +00:00
Patrick Ohly
fec5233668
api: resource.k8s.io PodScheduling -> PodSchedulingContext
...
The name "PodScheduling" was unusual because in contrast to most other names,
it was impossible to put an article in front of it. Now PodSchedulingContext is
used instead.
2023-03-14 10:18:08 +01:00
Patrick Ohly
29941b8d3e
api: resource.k8s.io v1alpha1 -> v1alpha2
...
For Kubernetes 1.27, we intend to make some breaking API changes:
- rename PodScheduling -> PodSchedulingHints (https://github.com/kubernetes/kubernetes/issues/114283 )
- extend ResourceClaimStatus (https://github.com/kubernetes/enhancements/pull/3802 )
We need to switch from v1alpha1 to v1alpha2 for that.
2023-03-14 07:52:03 +01:00
Jiahui Feng
68ac7acbce
[API REVIEW] ValidatingAdmissionPolicyStatus
2023-03-07 15:43:34 -08:00
Kubernetes Prow Robot
94e30facdb
Merge pull request #114497 from dgrisonnet/pod-logs-metrics
...
Remove redundant subsystem in kube-apiserver pod logs metrics name
2023-03-10 12:40:41 -08:00
Damien Grisonnet
1efa1a65ee
pkg/registry: rename pod logs metrics
...
The pod_logs subsystem was inadvertently made redundant in the following
kube-apiserver metrics:
- kube_apiserver_pod_logs_pods_logs_backend_tls_failure_total
- kube_apiserver_pod_logs_pods_logs_insecure_backend_total
To safely rename them, it is required to deprecate them in 1.27 whilst
introducing the new metrics replacing them.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2023-03-10 17:43:09 +01:00
Kubernetes Prow Robot
e8ae6658ed
Merge pull request #115065 from apelisse/apimachinery-managed-fields
...
managedfields: Move most of fieldmanager package to managefields
2023-03-09 21:34:22 -08:00
Maksim Nabokikh
c1431af4f8
KEP-3325: Promote SelfSubjectReview to Beta ( #116274 )
...
* Promote SelfSubjectReview to Beta
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
* Fix whoami API
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
* Fixes according to code review
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
---------
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2023-03-08 15:42:33 -08:00
Antoine Pelisse
4f3859ce91
managedfields: Move most of fieldmanager package to managefields
2023-03-08 13:44:00 -08:00
Kubernetes Prow Robot
2225ee5dd3
Merge pull request #115904 from soltysh/cronjob_tz_ga
...
Promote CronJob TZ to GA
2023-03-07 07:20:47 -08:00
Kubernetes Prow Robot
51ef4b10ba
Merge pull request #115504 from pacoxu/cronjob-timezone
...
add some ut for cronjob strategy and timezone in schedule
2023-03-07 07:20:34 -08:00
Maciej Szulik
1b825c179b
Promote CronJob TZ to GA
2023-03-07 12:58:57 +01:00
Joe Betz
d221ddb89a
Implement validationActions and auditAnnotations
2023-03-06 21:51:27 -05:00
kannon92
cd71486cfb
update documentation on generateSelector for manual selector case
2023-03-02 19:47:58 +00:00
ahg-g
2ecd24011a
Graduate JobMutableNodeSchedulingDirectives feature to GA
2023-02-28 15:47:13 +00:00
Kubernetes Prow Robot
f2fdda8667
Merge pull request #115918 from yt2985/genericWatch
...
Partition watchers by namespace/name scope
2023-02-28 01:47:17 -08:00
Kubernetes Prow Robot
b9fd1802ba
Merge pull request #102884 from vinaykul/restart-free-pod-vertical-scaling
...
In-place Pod Vertical Scaling feature
2023-02-27 22:53:15 -08:00
Jordan Liggitt
1c2fa0c7f7
Partition watchers by namespace/name scope
2023-02-27 20:38:11 +00:00
Daniel Vega-Myhre
93a74afccb
move AllowElasticIndexedJobs into JobValidationOptions declaration
2023-02-27 18:45:58 +00:00
Vinay Kulkarni
76962b0fa7
In-place Pod Vertical Scaling - API changes
...
1. Define ContainerResizePolicy and add it to Container struct.
2. Add ResourcesAllocated and Resources fields to ContainerStatus struct.
3. Define ResourcesResizeStatus and add it to PodStatus struct.
4. Add InPlacePodVerticalScaling feature gate and drop disabled fields.
5. ResizePolicy validation & defaulting and Resources mutability for CPU/Memory.
6. Various fixes from code review feedback (originally committed on Apr 12, 2022)
KEP: /enhancements/keps/sig-node/1287-in-place-update-pod-resources
2023-02-24 17:18:04 +00:00
Kubernetes Prow Robot
0753f02851
Merge pull request #115944 from SataQiu/warning-for-externalid
...
Add field-level warning for deprecated spec.externalID of node
2023-02-24 06:15:47 -08:00
Daniel Vega-Myhre
8d31da4599
add validation test case for immutable completions on indexed jobs when AllowElasticIndexedJobs is false
2023-02-23 21:05:03 +00:00
Daniel Vega-Myhre
15077a0f28
plumb feature gate value through job validation opts and modify validateCompletions function to only check completions == parallelism after the update, not before
2023-02-23 18:09:47 +00:00
SataQiu
ba6fcf4169
add field-level warning for deprecated spec.externalID of node
2023-02-23 09:35:56 +08:00
Paco Xu
dfea1ae53e
add some ut for cronjob strategy and timezone in schedule
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-02-22 16:29:26 +08:00
Wei Huang
feed8c683d
Enforce nodeName cannot be set along with non empty schedulingGates
2023-02-07 13:53:28 -08:00
Kubernetes Prow Robot
4b0d433dd9
Merge pull request #115536 from pwschuurman/kep-3335-enable-disable-unit-test
...
Add enablement/disablement unit test for StatefulSetStartOrdinal feature
2023-02-07 05:53:00 -08:00
Peter Schuurman
773b45abc5
Add enablement/disablement unit test for StatefulSetStartOrdinal feature
2023-02-05 20:28:54 -08:00
Kubernetes Prow Robot
ae23b0c11b
Merge pull request #115111 from kannon92/strategy-coverage-increase
...
increasing coverage from 78% to 94% for strategy.go for batch/job
2023-02-02 07:58:41 -08:00
Kubernetes Prow Robot
7f0d1722f5
Merge pull request #115378 from aojea/aojea_allocator
...
add aojea as approver for networking APIs: services/allocators, netwo…
2023-01-29 16:14:49 -08:00
Kubernetes Prow Robot
5bb7326c36
Merge pull request #114418 from xuzhenglun/master
...
Reserve Nodeport Ranges For Dynamic And Static Port Allocation
2023-01-29 14:02:35 -08:00
Antonio Ojea
0461c48078
add aojea as approver for networking APIs: services/allocators, networking group, ...
...
Change-Id: Ia6542b21339f4a92a9c13c2b628038abe737d0f9
2023-01-29 00:10:06 +00:00
Kubernetes Prow Robot
12240c2a5c
Merge pull request #115247 from Volatus/refactor-node-storage-tests
...
Refactor: cleanup node/storage tests
2023-01-26 17:42:32 -08:00
Ismayil Mirzali
6d484dc037
Refactor: cleanup node/storage tests
...
Removes some repetitive patterns and simplifies the existing test code.
2023-01-26 23:03:02 +02:00
xuzhenglun
d48dd100bf
add kube_apiserver_nodeport_allocator_* to improve observability of ServiceNodePortStaticSubrange
2023-01-26 14:44:16 +08:00
xuzhenglun
c18c6e1b87
allocate nodeport with offset
2023-01-26 14:44:04 +08:00
Antonio Ojea
ea99593fa1
Fix panic on ClusterIP allocation for /28 subnets
...
The ClusterIP allocator tries to reserve on part of the ServiceCIDR
to allocate static IPs to the Services.
The heuristic of the allocator to obtain the offset was taking into
account the whole range size, not the IPs available in the range, the
subnet address and the broadcast address for IPv4 are not available.
This caused that for CIDRs with 16 hosts, /28 for IPv4 and /124 for
IPv6, the offset calculated was higher than the max number of available
addresses on the allocator, causing this to panic.
Change-Id: I6c6f527b0a600b3612be37769e405b8fb3dd33a8
2023-01-25 20:32:40 +00:00
kannon92
96541d3e51
increasing coverage from 75% to 95% for strategy.go for batch/job
2023-01-23 18:53:46 +00:00
HirazawaUi
3b18e80fb4
delete unused functions in pkg directory
2023-01-16 21:43:36 +08:00
Kubernetes Prow Robot
696701b9fd
Merge pull request #114086 from xmcqueen/113935
...
block ephemeral container addition to static pods
2023-01-13 07:36:28 -08:00
Kubernetes Prow Robot
6ce055d62d
Merge pull request #114947 from saschagrunert/seccomp-ga-cleanup
...
Make seccomp annotations non-functional
2023-01-12 13:48:54 -08:00
Sascha Grunert
af1f6a230b
Make seccomp annotations non-functional
...
This cleanup has been planned to finish the corresponding KEP:
https://github.com/kubernetes/kubernetes/issues/91286
As follow-up on the partly removal of the seccomp annotations in
https://github.com/kubernetes/kubernetes/pull/109819 , we now drop
the version skew handling completely, but still warn as well as keep
the validation in place if both (annotation and field) are set.
The Pod Security Admission code has been already changed in
https://github.com/kubernetes/kubernetes/pull/114846 .
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-01-12 17:11:52 +01:00
Kubernetes Prow Robot
08d9a0ef5b
Merge pull request #113467 from pacoxu/psp-cleanup
...
Remove PodSecurityPolicy related code except client-go & API type
2023-01-11 14:28:07 -08:00
Kubernetes Prow Robot
564f438892
Merge pull request #114691 from thockin/fix-pod-warning-string
...
Make the warning about pod name clearer
2023-01-10 13:47:38 -08:00
Kubernetes Prow Robot
5a896bf379
Merge pull request #114677 from kl52752/epd-warning-address-type
...
Generate warning for EndpointSlice AddressType FQDN
2023-01-10 13:47:27 -08:00
Paco Xu
e0bc0693e9
registry/storage: remove psp support
2023-01-06 17:07:02 +08:00