Kubernetes Prow Robot
6929a11f69
Merge pull request #123481 from sanposhiho/mindomain-stable
...
graduate MinDomainsInPodTopologySpread to stable
2024-03-04 17:18:53 -08:00
Kubernetes Prow Robot
e4ee7b005c
Merge pull request #123323 from gjkim42/add-ValidateInitContainerStateTransition
...
Validate restartable init container state transition
2024-03-04 16:21:30 -08:00
Kubernetes Prow Robot
1c789a9d46
Merge pull request #122422 from neolit123/1.30-update-hostaliases-note
...
core/v1: remove note about hostAliases not working with hostNetwork
2024-03-04 16:21:21 -08:00
Gaurav Ghildiyal
646fd200b8
Run 'make update'
2024-03-03 22:46:00 -08:00
Gaurav Ghildiyal
996d11d4e8
Add new field trafficDistribution to Service spec
2024-03-03 22:34:17 -08:00
Kubernetes Prow Robot
e4a14fe0f5
Merge pull request #123575 from Huang-Wei/pod-scheduling-readiness-stable
...
Graduate PodSchedulingReadiness to stable
2024-03-03 22:29:38 -08:00
Kubernetes Prow Robot
1fceb815ac
Merge pull request #123437 from tenzen-y/fix-job-validatioin-test-name
...
Job: Fix test case names for the validations
2024-03-02 13:33:18 -08:00
Tim Hockin
467d5d745c
Get rid of unused API type NodeResources
2024-03-01 15:13:50 -08:00
Kubernetes Prow Robot
df366107d1
Merge pull request #123529 from thockin/go-workspaces
...
Go workspaces for k/k and k/staging/*
2024-03-01 08:43:03 -08:00
Kubernetes Prow Robot
6cc77a577e
Merge pull request #123560 from ivelichkovich/master
...
kep-3716 GA, remove feature gate
2024-02-29 22:53:38 -08:00
Tim Hockin
d6cf98f8ac
Remove errant +required with no validation code
2024-02-29 22:07:37 -08:00
Kubernetes Prow Robot
56a1b075cd
Merge pull request #122870 from wzshiming/kep-2681
...
Promote KEP-2681 to GA in 1.30
2024-02-29 15:11:33 -08:00
Igor Velichkovich
a51a5b4622
kep-3716 GA, remove feature gate
2024-02-29 14:14:19 -06:00
Wei Huang
01db4ae9e7
Graduate PodSchedulingReadiness to stable
2024-02-28 23:18:44 -08:00
Shiming Zhang
d303cec118
Update test
2024-02-29 11:48:18 +08:00
Kensei Nakada
f46df21cad
update comments on API
2024-02-28 12:32:32 +00:00
Kubernetes Prow Robot
72c92e975d
Merge pull request #123411 from hunshcn/fix/volume-link
...
fix persistent volume docs link
2024-02-27 16:47:27 -08:00
Kubernetes Prow Robot
02306739ab
Merge pull request #122451 from Songjoy/master
...
remove duplicated check on validateTokenRequests for new object
2024-02-27 16:47:13 -08:00
Gunju Kim
a24f2c1192
Validate restartable init container state transition
...
This allows the state of restartable init containers to be transitioned
from terminated to non-terminated even for pods with RestartPolicyNever
or RestartPolicyOnFailure.
2024-02-26 20:47:40 +09:00
Paco Xu
dc7114fa91
fix default IPMode set in UT
2024-02-26 12:32:01 +08:00
Kensei Nakada
07e0a80216
graduate HPAContainerMetrics to stable
2024-02-25 00:58:00 +00:00
Kubernetes Prow Robot
9fa043e769
Merge pull request #123181 from tenzen-y/job-avoid-casts-due-to-old-sets
...
Job: Use generic sets to avoid unnecessary string casts in valiations
2024-02-22 13:03:10 -08:00
Kubernetes Prow Robot
88c581833b
Merge pull request #123081 from tenzen-y/job-stop-no-need-type-casting
...
Job: Stop unnecessary string casts in validations
2024-02-22 13:03:01 -08:00
Yuki Iwai
cc515bd8f1
Job: Fix test case names for the validations
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-02-22 15:13:38 +09:00
hunshcn
ce6bacb5ac
fix persistent volume docs link
...
Signed-off-by: hunshcn <hunsh.cn@gmail.com>
2024-02-21 16:26:16 +08:00
Kubernetes Prow Robot
6049a1bca4
Merge pull request #122880 from Jefftree/agg-discovery-v2-types
...
Add aggregated discovery v2 types
2024-02-20 21:03:22 -08:00
Michal Wozniak
fe8e896df8
Improve the doc comment for the Job status.active field
2024-02-19 14:27:30 +01:00
Kubernetes Prow Robot
91ee30074b
Merge pull request #123174 from danwinship/cidr-validation-cleanup
...
Make CIDR validation consistent
2024-02-15 18:37:20 -08:00
Kubernetes Prow Robot
b65508b477
Merge pull request #123158 from AkihiroSuda/nodeconditiontype-godoc
...
core/v1: remove comment about non-existing constants
2024-02-15 08:16:20 -08:00
Kubernetes Prow Robot
684a9975fe
Merge pull request #122919 from alexzielenski/apiserver/policy/mutating-initial
...
Refactor AdmissionPolicy for code sharing with mutating
2024-02-14 14:52:26 -08:00
Kubernetes Prow Robot
3bf9477b52
Merge pull request #122472 from pacoxu/flowcontrolv1
...
flowcontrol: set the serialization version to v1
2024-02-12 13:17:48 -08:00
Alexander Zielenski
8b14116509
refactor: move vap into parent policy
folder
...
also renames to remove stutter
comment
2024-02-12 10:58:24 -08:00
Akihiro Suda
5c825d8a22
core/v1: remove comment about non-existing constants
...
`NodeReachable`, `NodeLive`, `NodeSchedulable`, and `NodeRunnable` are mentioned
as "built-in set of conditions" but some of them do not exist in the current API.
Updated `pkgs/apis/core/types.go` too for consistency.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-12 23:16:43 +09:00
Dan Winship
593b1c6c63
Do service.spec.LoadBalancerSourceRanges validation inline
...
Inline the LoadBalancerSourceRanges parsing to make it more obvious
what it's requiring (and more importantly, *not* requiring), and
change it to use IsValidCIDR as well.
2024-02-09 10:43:20 -05:00
Dan Winship
d930215794
Update service.Spec.LoadBalancerSourceRanges validation tests
...
In preparation for rewriting LoadBalancerSourceRanges validation,
add/update the existing unit tests to cover some of the more exciting
edge cases of the existing validation code:
- The values in service.Spec.LoadBalancerSourceRanges are allowed to
have arbitrary whitespace around them.
- The annotation must be unset for non-LoadBalancer services, but
for LoadBalancer services, "set but empty" and "whitespace-only"
are treated the same as "unset".
- The annotation value is only validated if the field is not set.
Also fix some of the existing tests to be more precise about what they
are testing.
Also fix the CIDR values to actually be valid. Sigh.
2024-02-09 10:43:20 -05:00
Yuki Iwai
c8d18da437
Scheduler: Fix the feature stage of preemptionPolicy in the API comment
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-02-08 08:13:00 +09:00
Yuki Iwai
1ef469343f
Job: Use generic sets to avoid unnecessary string casts in valiations
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-02-08 08:02:00 +09:00
Dan Winship
7a56b6e3f7
Add validation.IsValidCIDR
...
Move apivalidation.ValidateCIDR to apimachinery, and rename it and
change its return value to match the other functions.
Also, add unit tests.
(Also, while updating NetworkPolicy validation for the API change, fix
a variable name that implied that IPBlock.Except[] is IP-valued rather
than CIDR-valued.)
2024-02-07 09:48:01 -05:00
Kubernetes Prow Robot
052bce26f4
Merge pull request #122931 from danwinship/ip-validation-cleanup
...
consistently use IsValidIP for IP validation
2024-02-06 15:58:15 -08:00
Yuki Iwai
71bf563034
Job: Stop unnecessary sting casts in validations
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-02-02 06:46:30 +09:00
Kubernetes Prow Robot
f025a96d2f
Merge pull request #122728 from RomanBednar/pv-phase-transition-time-doc-fix
...
Remove alpha reference from PersistentVolumeStatus.lastPhaseTransitionTime docs
2024-01-24 19:51:51 +01:00
Kubernetes Prow Robot
fc4d6ac8ea
Merge pull request #121731 from Taction/service-account-token-projected-volume-validation
...
Fix service account token projected volume validation
2024-01-24 19:51:43 +01:00
liyuerich
e490439262
drop deprecated pointer package
...
Signed-off-by: liyuerich <yue.li@daocloud.io>
2024-01-24 19:44:07 +08:00
zhangchao
7972f0309c
Fix service account token projected volume validation
...
Signed-off-by: zhangchao <zchao9100@gmail.com>
2024-01-23 23:03:37 +08:00
Dan Winship
1d59d6b6c6
Use validation.IsValidIP in a few more places
...
Rather than using netutils.ParseIPSloppy directly.
Also fix the field paths in the errors for pod.spec.hostAliases to
include the array index.
2024-01-23 09:10:35 -05:00
Dan Winship
519dd6887d
Make validation.IsValidIP return a field.ErrorList for consistency
2024-01-23 09:08:27 -05:00
Jefftree
0bc023bc28
Add aggregated discovery v2 types
2024-01-19 11:40:14 -05:00
Roman Bednar
2ce04fc04b
flag PersistentVolumeLastPhaseTransitionTime field as beta
2024-01-17 13:14:09 +01:00
Paco Xu
f73bba51c9
flowcontrol: set the serialization version to v1
2023-12-25 14:24:50 +08:00
宋文杰
d12416e2f3
remove duplicated check on validateTokenRequests for new object
2023-12-22 16:33:44 +08:00
carlory
f8f24cf8e7
ValidateVolumeAttributesClassUpdate also validates new vac
2023-12-22 15:52:04 +08:00
Lubomir I. Ivanov
47ee56a7f2
core/v1: remove note about hostAliases not working with hostNetwork
...
Support for this was added in 1.8 by PR 50646.
Local tests confirm that the feature indeed works.
E2e tests seem to be missing.
2023-12-20 18:09:21 +02:00
Kubernetes Prow Robot
0bfb25beec
Merge pull request #121964 from kannon92/ephemeral-storage-not-alpha
...
drop alpha comment on ephemeral storage
2023-12-14 05:08:49 +01:00
Kubernetes Prow Robot
d2fc690421
Merge pull request #116209 from haoruan/feature-csidriver-fields-mutable
...
Allow FSGroupPolicy and PodInfoOnMount to be mutable in CSIDriver.Spec
2023-12-13 21:24:57 +01:00
Kevin Hannon
4e5321c92e
add beta comment for pod replacement policy
2023-12-05 13:17:24 -05:00
Kevin Hannon
7ba546cfeb
drop alpha comment on ephemeral storage
2023-11-20 09:58:13 -05:00
Kubernetes Prow Robot
e4b74dd12f
Merge pull request #121765 from mimowo/ready-pods-stable-api
...
Fix API comment for the Job ready field
2023-11-07 23:52:12 +01:00
Michal Wozniak
9d5b2a4476
Fix API comment for the Job ready field
2023-11-07 07:38:51 +01:00
Michal Wozniak
1395e2e02c
Fix API comment for the FailIndex Job pod failure policy action
2023-11-06 17:47:13 +01:00
Taahir Ahmed
96e610ac18
ClusterTrustBundle: Enforce max size during validation
2023-11-03 11:40:49 -07:00
Taahir Ahmed
599fdb7add
Regenerate for ClusterTrustBundlePEM projected volume API
2023-11-03 11:40:48 -07:00
Taahir Ahmed
ecfdc8fda5
Define ClusterTrustBundlePEM projected volume
...
This commit defines the ClusterTrustBundlePEM projected volume types.
These types have been renamed from the KEP (PEMTrustAnchors) in order to
leave open the possibility of a similar projection drawing from a
yet-to-exist namespaced-scoped TrustBundle object, which came up during
KEP discussion.
* Add the projection field to internal and v1 APIs.
* Add validation to ensure that usages of the project must specify a
name and path.
* Add TODO covering admission control to forbid mirror pods from using
the projection.
Part of KEP-3257.
2023-11-03 11:40:48 -07:00
Humble Chirammal
3890546265
Update APIs and adjust tests
...
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-11-01 09:28:36 +05:30
Antonio Ojea
fee07ad608
make update with the new API with arrays
2023-10-31 21:05:58 +00:00
Antonio Ojea
c3d9b77d94
update ServiceCIDR API: replace IPv4,IPv6 fields by an array of strings
...
https: //docs.google.com/document/d/1-CKDPRHsG6XfnGs-Bb7ptWgDtTq9-hj8aJQpGz1CSh8/edit
Change-Id: If7134a5553b4ecc12b1d58ffc52ebb9f8594778a
2023-10-31 21:05:06 +00:00
Antonio Ojea
8182c4d9ec
make update
...
Change-Id: I4007d4f6dda24b5c74f602d35191556f315de222
2023-10-31 21:05:05 +00:00
Antonio Ojea
632081a907
add ServiceCIDR APIs
...
Change-Id: Ia084c5505e43033ac34449031a1d32418ca326fd
Change-Id: Iafc236d456f7185a5c89a65d7b96245e04060013
2023-10-31 21:05:04 +00:00
Antonio Ojea
16363b6fb4
fix IPAddress.Name validation message
...
Change-Id: Idc29166d69c1eadd6e4dac3bf16f4a6739f98be2
2023-10-31 21:05:04 +00:00
Kubernetes Prow Robot
dba565193c
Merge pull request #121104 from carlory/kep-3751-api-changes
...
[KEP-3571] introduce the VolumeAttributesClass API
2023-10-31 20:23:50 +01:00
Kubernetes Prow Robot
d475c249da
Merge pull request #120954 from HirazawaUi/deprecate-kubeProxyVersione-field
...
deprecate the kubeProxyVersion field of v1.Node
2023-10-31 19:16:20 +01:00
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