Commit Graph

121041 Commits

Author SHA1 Message Date
Alexander Zielenski
8b26b6eec1 refactor: move celmetrics close to its usage in vap
does not need to be accessed from anywhere else, and removed an excessive lonesome `cel` pkg with just the metrics
2024-02-12 10:58:24 -08:00
Kubernetes Prow Robot
015e76aa24
Merge pull request #122846 from marosset/cri-stats-windows-fix
[KEP-2371] Fixing bug with windows criStatsProvider sometimes not reporting AvailableBytes correctly
2024-02-12 10:57:28 -08:00
Mark Rossetti
5ba3883be0
Adding unit test for makeWinContainerStats
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2024-02-12 09:56:58 -08:00
Kubernetes Prow Robot
7bea14097b
Merge pull request #122612 from mtardy/remove-scdeny
auth: remove SecurityContextDeny admission plugin
2024-02-12 08:37:13 -08:00
Kubernetes Prow Robot
e51e3c74f7
Merge pull request #122152 from pohly/client-go-event-context-fix
client-go events: support context.Background() as context
2024-02-12 06:48:06 -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
Kubernetes Prow Robot
73f19e4c01
Merge pull request #123235 from cpanato/update-bot
Update publishing-bot rules to Go 1.21.7
2024-02-11 09:11:02 -08:00
cpanato
a8abed8015
Update publishing-bot rules to Go 1.21.7
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-11 15:09:41 +01:00
Kubernetes Prow Robot
98b589a76d
Merge pull request #123224 from mmerkes/cleanup
Clean up dead code in node controller
2024-02-09 17:15:23 -08:00
Kubernetes Prow Robot
48228bf9db
Merge pull request #121486 from benluddy/cbor-stub
KEP-4222: Add stub CBOR serializer.
2024-02-09 14:42:05 -08:00
Matt Merkes
75210d0840 Clean up dead code in node controller
Signed-off-by: Matt Merkes <merkes@amazon.com>
2024-02-09 21:39:36 +00:00
Kubernetes Prow Robot
ad19beaa83
Merge pull request #123117 from kerthcet/fix/wild-resource
Fix registered wildcard clusterEvents doesn't work in scheduler requeueing
2024-02-09 10:34:15 -08:00
Kubernetes Prow Robot
b85c9bbf1a
Merge pull request #123217 from cpanato/update-go-main
[go] Bump images, dependencies and versions to go 1.22
2024-02-09 08:10:19 -08: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
cpanato
73cc31847f
fix
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-09 15:01:16 +01:00
cpanato
eec508e488
use patch number
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-09 14:47:56 +01:00
cpanato
ddb0b8da9d
[go] Bump images, dependencies and versions to go 1.22
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-09 14:43:34 +01:00
Harsha Narayana
ab8c784ee9
kubelet: enable configurable rotation duration and parallel rotate 2024-02-09 16:49:11 +05:30
Kubernetes Prow Robot
f99638d315
Merge pull request #123210 from my-git9/util-ut-4
kubeadm: increase ut coverage for app/util
2024-02-09 01:27:25 -08:00
xin.li
36904475db kubeadm: increase ut coverage for app/util
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-02-09 16:24:54 +08:00
Kubernetes Prow Robot
295b94d85e
Merge pull request #123191 from aojea/patch-2
add aojea as feature-approvers on OWNER_ALIASES
2024-02-08 20:57:16 -08:00
Kubernetes Prow Robot
012f04b178
Merge pull request #123023 from ah8ad3/fix-kubectl-explain-show-enum
Fix kubectl explain to shows enum for field types if they were defined
2024-02-08 19:52:59 -08:00
Kubernetes Prow Robot
002b0f0003
Merge pull request #123083 from jiahuif-forks/feature/validating-admission-policy/typechecking-variables
ValidatingAdmissionPolicy: support variables
2024-02-08 15:53:00 -08:00
Jiahui Feng
3e777540fd add test case for error inside variables. 2024-02-08 13:39:25 -08:00
Kevin Hannon
13c848f562 self nominate kevin hannon as a sig-node reviewer 2024-02-08 11:12:19 -05:00
Antonio Ojea
3a813049d3
add aojea as feature-approvers on OWNER_ALIASES
Update the list to reflect current status
2024-02-08 13:19:32 +00:00
José Carlos Chávez
6d6398ef92
chore: adds consistent vanity import to files and provides tooling for verifying and updating them. (#120642)
* chore: drops update vanity imports from script.

* chore: changes copyright year to 2024.

* chore: makes lint happy.
2024-02-08 04:33:30 -08:00
Kubernetes Prow Robot
f07b47c3d1
Merge pull request #123182 from tenzen-y/fix-nonpreemptionpolicy-stage
Scheduler: Fix the feature stage of preemptionPolicy in the API comment
2024-02-07 18:07:51 -08:00
ruiwen-zhao
0f5cf6c1cd Add image pull duration metric with bucketed image size
Signed-off-by: ruiwen-zhao <ruiwen@google.com>
2024-02-08 00:30:31 +00: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
Kubernetes Prow Robot
fae7ec4a37
Merge pull request #123164 from liggitt/api-validation
Put validation utility packages used by API validation under API review
2024-02-07 14:25:55 -08:00
Kubernetes Prow Robot
9b3d8a9063
Merge pull request #123162 from tnqn/flush-on-startup
kube-proxy: flush nftables base chains on startup
2024-02-07 14:25:37 -08:00
Kubernetes Prow Robot
e7d84c9f08
Merge pull request #123171 from vrutkovs/kubeadm-issue3014
kubeadm: use current-context when validating kubelet kubeconfig
2024-02-07 09:04:06 -08:00
Kubernetes Prow Robot
27e15a6c70
Merge pull request #123159 from oxxenix/master
Revert "print error message regardless verbosity level"
2024-02-07 09:03:43 -08:00
Quan Tian
42672ee2ea Make comment about reject action more accurate
Signed-off-by: Quan Tian <qtian@vmware.com>
2024-02-07 23:57:47 +08:00
Quan Tian
c7e48f1ebf kube-proxy: flush nftables base chains on startup
Do an extra "add+delete" once to ensure all previous base chains in the
table will be recreated. Otherwise, altering properties (e.g. priority)
of these chains would fail the transaction.

Signed-off-by: Quan Tian <qtian@vmware.com>
2024-02-07 23:57:40 +08:00
Kubernetes Prow Robot
bd0288af97
Merge pull request #123150 from bzsuni/update/etcd/v3.5.12
etcd: Update to version 3.5.12
2024-02-07 07:17:49 -08: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
bzsuni
658e3308f3 etcd: Update to version 3.5.12
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-02-07 21:16:08 +08:00
Vadim Rutkovsky
fc610f0941 kubeadm: use current-context when validating kubelet kubeconfig
During initialization `kubeadm init` creates kubelet.conf with
specified name and during finalize phase validates that
this kubeconfig is not corrupted by checking for presence of specific
authinfo

However:
* kubelet doesn't require a specific name for this context
* in external CA mode this kubeconfig can be created outside of
  `kubeadm init`

This change updates kubeadm finalize stage to avoid overly strict
context check.
2024-02-07 14:14:13 +01:00
Kubernetes Prow Robot
87fa400d9d
Merge pull request #123126 from bart0sh/PR131-bump-sample-device-plugins-version
Bump sample-device-plugin version
2024-02-07 05:01:10 -08:00
Kubernetes Prow Robot
d6e4c6cdea
Merge pull request #123170 from cpanato/update-distroless
update distroless-iptables to v0.5.0 debian-base to bookworm-v1.0.1 and setcap to bookworm-v1.0.1
2024-02-07 03:57:07 -08:00
cpanato
ac9482d15f
update distroless-iptables to v0.5.0 debian-base to bookworm-v1.0.1 and setcap to bookworm-v1.0.1
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-07 11:46:19 +01: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
Jordan Liggitt
eceaed8c07
Put validation utility packages used by API validation under API review 2024-02-06 17:50:09 -05:00
Kubernetes Prow Robot
eb5b9b0b6d
Merge pull request #123140 from Jefftree/latest-sampleapiserver
Bump sample-apiserver to latest version (1.29.1)
2024-02-06 12:30:43 -08:00
Kubernetes Prow Robot
2fb99eb9e8
Merge pull request #121141 from wlq1212/introduceNewethod
using wait.Interrupted instead of deprecated wait.ErrWaitTimeout for utils
2024-02-06 11:06:34 -08:00
Kubernetes Prow Robot
862ff187ba
Merge pull request #123001 from tkashem/apf-allow-zero-concurrency
Allow zero value for the 'nominalConcurrencyShares' field
2024-02-06 09:08:18 -08:00
Kubernetes Prow Robot
e566bd7769
Merge pull request #121952 from sanposhiho/optimize-csi
add(nodevolumelimits): return UnschedulableAndUnresolvable when PVC is not found
2024-02-06 07:16:28 -08:00