Kubernetes Prow Robot
418e9d08a4
Merge pull request #120592 from AxeZhan/validation_sets
...
Use generic set in package "/pkg/apis/core/validation"
2023-10-31 19:16:02 +01:00
carlory
56ab6c5942
generated changes
2023-10-31 11:26:35 +08:00
carlory
ae90a69677
volumeattributesclass and core api changes
2023-10-31 11:18:56 +08:00
Abu Kashem
b8cd792b36
rename the roundtrip annotation, forbid it in v1
2023-10-30 18:22:51 -04:00
Abu Kashem
730d10a8fb
apiserver: add generated files for flowcontrol api change
2023-10-30 08:18:41 -04:00
Abu Kashem
9fd2ab419a
apiserver: allow zero value for the 'nominalConcurrencyShares' field
2023-10-30 08:18:40 -04:00
Abu Kashem
430c226709
apiserver: fix lint issue, defaulting and validation test for flowcontrol v1
2023-10-30 08:18:40 -04:00
Abu Kashem
17bda3c3e0
apiserver: apf controller, bootstrap, tests should use flowcontrol v1 API
2023-10-30 08:18:35 -04:00
Abu Kashem
5972037ffd
apiserver: generate code for apf flowcontrol v1 API
...
run:
- hack/update-codegen.sh
- hack/update-openapi-spec.sh
2023-10-30 07:48:22 -04:00
Abu Kashem
03a9ad200d
apiserver: remove copied generated files
...
otherwsie we see the following error from code-gen
Unrecognized package: k8s.io/api/flowcontrol/v1
2023-10-30 07:48:22 -04:00
Abu Kashem
b24dd44904
apiserver: enable apf v1 API
2023-10-30 07:48:22 -04:00
Abu Kashem
5cb03064d9
apiserver: update copy, rename v1beta3 to v1
2023-10-30 07:48:22 -04:00
Abu Kashem
dc72308093
apiserver: copy apf v1beta3 to v1
2023-10-30 07:48:21 -04:00
HirazawaUi
2c2fa2107a
deprecate the kubeProxyVersion field of v1.Node
2023-10-29 15:04:11 +08:00
AxeZhan
070e7a38cb
generic set
2023-10-28 15:31:28 +08:00
Paco Xu
36d6917ae1
valid error for creation and update from valid to invalid only
...
- using an option AllowNamespacedSysctlsForHostNetAndHostIPC
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-10-28 06:58:54 +08:00
Paco Xu
9a8ccdebc5
use sysctl utils to do pod spec validation
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-10-28 06:58:51 +08:00
Paco Xu
4321652d13
reject pod creation for hostNet pod with net sysctl; hostIPC pod with ipc sysctl
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-10-28 06:58:28 +08:00
Kubernetes Prow Robot
6d7d249372
Merge pull request #121077 from chrishenzie/readwriteoncepod-ga
...
Graduate ReadWriteOncePod to GA
2023-10-24 05:26:05 +02:00
Kubernetes Prow Robot
441d4b54ae
Merge pull request #120397 from ty-dc/StaticCheck
...
cleanup: omit comparison with bool constants
2023-10-24 05:25:52 +02:00
Kubernetes Prow Robot
8149ab3f3f
Merge pull request #121356 from mimowo/backoff-limit-per-index-beta
...
Graduate BackoffLimitPerIndex to Beta
2023-10-23 18:39:58 +02:00
Kubernetes Prow Robot
581552eaf0
Merge pull request #116065 from sanposhiho/match-label-key-alternative
...
feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
2023-10-23 18:39:13 +02:00
Chris Henzie
2dbd405583
Graduate ReadWriteOncePod to GA
2023-10-20 10:40:39 -07:00
Maciej Szulik
9a58f6c4fb
Forbid creating CronJob with TZ or CRON_TZ, but allow updates
2023-10-20 17:14:03 +02:00
Kubernetes Prow Robot
2c10d9cacb
Merge pull request #121277 from dprotaso/update-standard-protocols
...
update standard protocols to match KEP-3726
2023-10-20 03:10:43 +02:00
Michal Wozniak
6dd0ad5c0f
Graduate BackoffLimitPerIndex to Beta
2023-10-19 12:18:36 +02:00
Dave Protasowski
b7477c31b0
update versioned types
2023-10-18 11:36:48 -04:00
Kensei Nakada
d5d3c26337
feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
2023-10-18 11:28:02 +00:00
Kubernetes Prow Robot
bb16282831
Merge pull request #120249 from pacoxu/downwardAPI-hugepages
...
remove GAed FG DownwardAPIHugePages
2023-10-16 23:40:57 +02:00
Dave Protasowski
76059738a4
update standard protocols to match KEP3726
2023-10-16 17:38:06 -04:00
Kubernetes Prow Robot
f6ba25fdbd
Merge pull request #119026 from AxeZhan/sleepAction
...
Introducing Sleep Action for PreStop Hook
2023-10-16 21:19:44 +02:00
AxeZhan
5c0618b848
codegen
2023-10-16 19:50:33 +08:00
Kubernetes Prow Robot
7c876d8757
Merge pull request #120978 from tengqm/fix-admission-validation
...
Fixs a validation error in teh admission registration API
2023-10-15 22:58:39 +02:00
AxeZhan
fa01dfdb0a
validation
2023-10-15 13:55:08 +08:00
AxeZhan
9327f3a173
api changes
2023-10-15 13:32:54 +08:00
Kubernetes Prow Robot
e606314f2f
Merge pull request #118768 from killshotrevival/master
...
Fail validation if container restart policy is 'Never' and resource resize restart policy isn't 'NotRequired'
2023-10-15 04:13:34 +02:00
Antonio Ojea
c2d473f0d4
remove ClusterCIDR
...
KEP-2593 proposed to expand the existing node-ipam controller
to be configurable via a ClusterCIDR objects, however, there
were reasonable doubts on the SIG about the feature and after
several months of dicussions we decided to not move forward
with the KEP intree, hence, we are going to remove the existing
code, that is still in alpha.
https://groups.google.com/g/kubernetes-sig-network/c/nts1xEZ--gQ/m/2aTOUNFFAAAJ
Change-Id: Ieaf2007b0b23c296cde333247bfb672441fe6dfc
2023-10-14 19:06:22 +00:00
Hao Ruan
531324cb1d
allow FSGroupPolicy and PodInfoOnMount to be mutable in CSIDriver.Spec
2023-10-12 15:01:37 +08:00
Kubernetes Prow Robot
a2cc9db02f
Merge pull request #119665 from vinaykul/getpodqos-optimization
...
Perf optimization: GetPodQOS() returns persisted value of PodStatus.QOSClass, if set.
2023-10-12 06:48:26 +02:00
Kubernetes Prow Robot
f9d987c7c8
Merge pull request #121106 from aojea/ipaddress_uid
...
Remove Ipaddress uid
2023-10-12 03:26:45 +02:00
Dejan Zele Pejchev
921c0d0180
cleanup: add defaulting for job manual selector ( #120206 )
...
* cleanup: add defaulting for job manual selector
* cleanup: add assert in job defaults test for manual selector
* cleanup: fix failing job storage test
* cleanup: fix batch fuzzer to handle manual selector default
* cleanup: fix lint issue on checking bool condition in job strategy
* cleanup: remove TODO in generateSelectors in job strategy Validate; inline job manual selector assignment in fuzzer
2023-10-11 22:51:40 +02:00
Antonio Ojea
e9957d79aa
make update
...
Change-Id: I61be34cff942264acb2f45fe7e1c8538f807cb4e
2023-10-10 11:03:19 +00:00
Antonio Ojea
b7ee8e8422
drop UID from the IPAddress.Spec.ParentRef
...
This field is not needed, IPAddresses are unique and
the name is canonicalized to avoid duplicates.
Change-Id: Iccaaf5d55e2af61fea7af9abd39584a80ed4054e
2023-10-10 11:03:19 +00:00
Qiming Teng
f17468ff06
Fixs a validation error in teh admission registration API
2023-10-03 18:19:34 +08:00
Christoph Mewes
6e3ebdc68e
fix typo Conext => Context
2023-09-17 11:18:43 +02:00
carlory
5fcffcf4e4
Add APIGroup ratcheting validation to PVC.DataSource
2023-09-13 13:10:22 +08:00
Stephen Kitt
aa89e6dc97
Use ptr.To to retrieve intstr addresses
...
This uses the generic ptr.To in k8s.io/utils to replace functions and
code constructs which only serve to return pointers to intstr
values. Other uses of the deprecated pointer package are updated in
modified files.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-09-08 11:10:50 +02:00
tao.yang
b35357b6c0
cleanup: omit comparison with bool constants
...
Signed-off-by: tao.yang <tao.yang@daocloud.io>
2023-09-05 10:24:38 +08:00
Kubernetes Prow Robot
efadb94a74
Merge pull request #120259 from SataQiu/clean-apf-20230830
...
apf: remove v1alpha1 API
2023-08-31 19:44:42 -07:00
Quan Tian
2b69daa960
Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs
...
When defining a ClusterIP Service, we can specify externalIP, and the
traffic policy of externalIP is subject to externalTrafficPolicy.
However, the policy can't be set when type is not NodePort or
LoadBalancer, and will default to Cluster when kube-proxy processes the
Service.
This commit updates the defaulting and validation of Service to allow
specifying ExternalTrafficPolicy for ClusterIP Services with
ExternalIPs.
Signed-off-by: Quan Tian <qtian@vmware.com>
2023-08-30 23:56:47 +08:00
SataQiu
2825519da2
apf: remove v1alpha1 API
2023-08-30 20:48:42 +08:00
Kubernetes Prow Robot
370c85f5ab
Merge pull request #118493 from kerthcet/cleanup/pod-status-reason
...
Remove reasons from PodConditionType
2023-08-30 01:40:47 -07:00
Paco Xu
41adc93ca3
remove GAed FG DownwardAPIHugePages
2023-08-30 10:56:35 +08:00
Michal Wozniak
cc784cfe85
Mark Job onPodConditions as optional in pod failure policy
2023-08-28 11:42:56 +02:00
Kubernetes Prow Robot
c0691f3784
Merge pull request #119789 from thockin/deprecate_svc_lb_ingress_with_clusterip
...
Gate: disallow .status.loadBalancer on non-LB svc
2023-08-22 10:02:55 -07:00
Patrick Ohly
c1eb18c00c
generated files
2023-08-21 17:07:43 +02:00
Patrick Ohly
2472291790
api: introduce separate VolumeResourceRequirements struct
...
PVC and containers shared the same ResourceRequirements struct to define their
API. When resource claims were added, that struct got extended, which
accidentally also changed the PVC API. To avoid such a mistake from happening
again, PVC now uses its own VolumeResourceRequirements struct.
The `Claims` field gets removed because risk of breaking someone is low:
theoretically, YAML files which have a claims field for volumes now
get rejected when validating against the OpenAPI. Such files
have never made sense and should be fixed.
Code that uses the struct definitions needs to be updated.
2023-08-21 15:31:28 +02:00
Tim Hockin
a930892769
Gate: disallow .status.loadBalancer on non-LB svc
...
The fact that the .status.loadBalancer field can be set while .spec.type
is not "LoadBalancer" is a flub. Any spec update will already clear
.status.ingress, so it's hard to really rely on this. After this
change, updates which try to set this combination will fail validation.
Existing cases of this will not be broken. Any spec/metadata update
will clear it (no error) and this is the only stanza of status.
New gate "AllowServiceLBStatusOnNonLB" is off by default, but can be
enabled if this change actually breaks someone, which seems exceeedingly
unlikely.
2023-08-20 16:40:41 -07:00
Kubernetes Prow Robot
ee265c92fe
Merge pull request #119937 from RyanAoh/kep-1860-dev
...
Make Kubernetes aware of the LoadBalancer behaviour
2023-08-17 14:00:28 -07:00
Kubernetes Prow Robot
df493712e4
Merge pull request #119874 from kannon92/pod-replacement-policy-typos
...
fix typos for pod replacement policy
2023-08-17 11:21:34 -07:00
Kubernetes Prow Robot
012e61a860
Merge pull request #119806 from enj/enj/i/delete_psp_api
...
Delete PSP API types and generated clients
2023-08-17 11:21:22 -07:00
git-jxj
a5b3a4b738
cleanup: Update deprecated FromInt to FromInt32 ( #119858 )
...
* redo commit
* apply suggestions from liggitt
* update Parse function based on suggestions
2023-08-16 09:33:01 -07:00
Aohan Yang
29a6705dab
Generated code for IP mode field
2023-08-14 12:33:54 +08:00
Aohan Yang
3ac2899d2b
Add IP mode field
2023-08-14 11:24:49 +08:00
Kubernetes Prow Robot
e6218f3d3b
Merge pull request #119876 from marosset/revert-118895
...
Revert "Merge pull request #118895 from RyanAoh/kep-1860"
2023-08-09 19:27:31 -07:00
Mark Rossetti
0d90d1ffa5
Revert "Merge pull request #118895 from RyanAoh/kep-1860"
...
This reverts commit 890a6c8f70
, reversing
changes made to 4f60a8d493
.
2023-08-09 15:51:20 -07:00
kannon92
f73c253acc
fix typos for pod replacement policy
2023-08-09 20:34:48 +00:00
Jordan Liggitt
1876ddf714
Avoid returning nil responseKind in v1beta1 aggregated discovery
2023-08-09 14:45:33 -04:00
Vinay Kulkarni
40b604e374
Update pkg/apis/core/helper/qos/qos.go
...
Co-authored-by: Itamar Holder <77444623+iholder101@users.noreply.github.com>
2023-08-08 04:01:46 +00:00
Monis Khan
10fe3da87d
Delete PSP API types and generated clients
...
Signed-off-by: Monis Khan <mok@microsoft.com>
2023-08-07 16:44:13 -04:00
vinay kulkarni
4063ca4050
Code review fix: Move GetPodQOS code to ComputePodQOS. If set, return PodStatus.QOSClass from GetPodQOS.
2023-08-07 14:47:37 +00:00
vinay kulkarni
5d4410b960
Perf optimization: Move away from GetPodQOS, using PodStatus.QOSClass instead
2023-08-07 14:47:37 +00:00
Kubernetes Prow Robot
18f8cb8398
Merge pull request #118644 from alexzielenski/apiserver/policy/namespaceParamRef
...
KEP-3488: Promote ValidatingAdmissionPolicy to Beta
2023-07-21 17:44:08 -07:00
Kubernetes Prow Robot
f3a070f9c6
Merge pull request #116469 from RomanBednar/pv-phase-transition-time
...
PersistentVolume last phase transition time
2023-07-21 16:10:07 -07:00
Alexander Zielenski
d647958744
update codegen
2023-07-21 13:56:23 -07:00
Roman Bednar
294f5c9a42
make update
2023-07-21 21:39:24 +02:00
Roman Bednar
1b4de065df
add LastPhaseTransitionTime field to PersistentVolume
2023-07-21 17:19:11 +02:00
Alexander Zielenski
88becfc0ba
api: add v1beta1 ValidatingAdmissionPolicy/Binding types and storage
2023-07-20 13:24:09 -07:00
Kubernetes Prow Robot
8a053c700a
Merge pull request #119215 from alexzielenski/apiserver/policy/namespaceParamRef-alpha
...
KEP-3488: Per namespace policy params
2023-07-20 13:18:10 -07:00
Alexander Zielenski
9a595209bd
update-codegen
2023-07-20 09:30:10 -07:00
Alexander Zielenski
c8dbf4712c
add namespaceParamRef to v1alpha1 and internal
...
add required field to validation test
test multiple combinartions of paramRefs in binding tests
add validation test cases for new ParamRef fields
2023-07-20 09:30:09 -07:00
kannon92
ce92952037
add podReplacementPolicy and terminating field to job api
2023-07-19 16:34:38 +00:00
Michal Wozniak
cf0b74774f
Extend the API for the Job job-index-failure-count annotation
2023-07-18 16:41:11 +02:00
Michal Wozniak
fcbfdc1710
Extend the Job API for BackoffLimitPerIndex
2023-07-18 11:28:15 +02:00
Kubernetes Prow Robot
d17f3ba2cf
Merge pull request #119168 from gjkim42/sidecar-allow-probes-and-lifecycle-hooks
...
Allow all probes and lifecycle for restartable init containers
2023-07-17 18:11:07 -07:00
Kubernetes Prow Robot
704970877e
Merge pull request #119380 from A-Hilaly/api-server/webhooks/match-conditions-beta-graduations
...
Graduate `AdmissionWebhookMatchCondition` to beta
2023-07-17 16:55:07 -07:00
Gunju Kim
3bf282652f
Allow restartable init containers to have lifecycle
2023-07-18 08:12:24 +09:00
Gunju Kim
7ef2d674e2
Allow restartable init containers to have livenessProbe
2023-07-18 07:54:33 +09:00
Gunju Kim
2c8b37498e
Allow restartable init containers to have readinessProbe
2023-07-18 07:54:33 +09:00
Gunju Kim
8b20dbd0d1
Add validateStartupProbe
2023-07-18 07:54:32 +09:00
Amine
94c8ad289b
Enable admissionWebhookMatchCondition by default
2023-07-17 22:40:55 +01:00
Hemant Kumar
2e217e8cea
Reduce duplication between helpers for checking featuregate
2023-07-17 15:34:45 -04:00
Hemant Kumar
137474e283
Fix validation options for old pvc
...
Also update comments on allocatedresourcestatuses fields
2023-07-17 15:30:36 -04:00
Hemant Kumar
f01a1faa8c
Update comments about allocatedResourceStatus
...
Update API types with more comments
2023-07-17 15:30:36 -04:00
Hemant Kumar
6a780f57ce
Update generated data
2023-07-17 15:30:36 -04:00
Hemant Kumar
e011187114
Update code to use new generic allocatedResourceStatus field
2023-07-17 15:30:35 -04:00
Amine
0074b24ca4
Graduate AdmissionWebhookMatchCondition to beta
2023-07-17 18:19:35 +01:00
Aohan Yang
7c6e399b22
Generated code for IP mode field
2023-07-17 16:01:59 +08:00
Aohan Yang
e6863757f4
Add IP mode field
2023-07-17 15:51:40 +08:00
Kubernetes Prow Robot
8a0ea1bd58
Merge pull request #109616 from wzshiming/feat/pod-host-ips
...
Field `status.hostIPs` added for Pod
2023-07-15 00:31:04 -07:00