Commit Graph

112544 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d98e9620e3
Merge pull request #114193 from xmudrii/fix-pub-bot-rules
publishing-bot: Fix apimachinery rule for release-1.26 pointing to the wrong staging dir and use correct Go version
2022-11-29 13:03:08 -08:00
michael mccune
6981a1acf5 fix spelling error in e2e upgrade apps daemonset test 2022-11-29 15:56:15 -05:00
Davanum Srinivas
ffef2d1f1a
add more validation to rules.yaml
We need to better catch problems like the one we fixed in:
7b6a3d6a33

Essentially a copy-paste error where had a branch pointing to staging/src/k8s.io/code-generator instead of staging/src/k8s.io/apimachinery

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-11-29 15:07:34 -05:00
Marko Mudrinić
8e973ce871
Fix Go 1.19 version in publishing-bot rules
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-11-29 20:55:12 +01:00
Marko Mudrinić
7b6a3d6a33
Update publishing-bot rule for apimachinery on release-1.26
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-11-29 20:53:14 +01:00
QuantumEnergyE
847a39afc0 Retry patch when then service is unavailable or timeout. 2022-11-29 23:09:31 +08:00
Dan Winship
bfa4948bb6 Don't re-run EnsureChain/EnsureRules on partial syncs
We currently invoke /sbin/iptables 24 times on each syncProxyRules
before calling iptables-restore. Since even trivial iptables
invocations are slow on hosts with lots of iptables rules, this adds a
lot of time to each sync. Since these checks are expected to be a
no-op 99% of the time, skip them on partial syncs.
2022-11-29 09:42:49 -05:00
Sascha Grunert
f04bb71878
Tracing: sample always in hack/local-up-cluster.sh
If the feature gate `KubeletTracing` is enabled, then we should default
to a sample rate of 1 million per million, which will sample everything:

https://github.com/open-telemetry/opentelemetry-go/blob/aa868d5/sdk/trace/sampling.go#L107-L110

This helps to easier spin-up a cluster with tracing enabled by exporting
`FEATURE_GATES="KubeletTracing=true"`.

Related docs: https://k8s.io/docs/concepts/cluster-administration/system-traces/#kubelet-traces

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-11-29 13:12:19 +01:00
ZhangYu
6553ba246f pkg/kubelet/network/dns: omit unnecessary fmt.Sprintf 2022-11-29 14:44:14 +08:00
Tim Hockin
f4c1682fb1
Validate StatefulSet names as DNS Label
Any StatefuleSet which took advantage of this (by having dots in the
name) can't have worked because we set `pod.spec.hostname` from it,
which is validated as a DNS label.

So while this is strictly a breaking change, it doesn't break anything
that was not already broken.
2022-11-28 17:31:08 -08:00
Joe Betz
ab3c353227 Improve error messages for parse errors of --kube-reserved, --system-reserved and --qos-reserved 2022-11-28 16:35:26 -05:00
Takafumi Takahashi
fa9c295adc update API Change in release note 2022-11-28 12:08:36 -05:00
Claudiu Belu
1129f57143 unittests: Skip test if not on GCE
The test in pkg/credentialprovider/gcp/metadata_test.go is meant to
run only on GCE, which means that it will fail in any other case.

We should skip the test if we're not testing in GCE or Windows in GCE.
2022-11-28 13:54:14 +00:00
ZhangYu
357d0a8603 staging/src/k8s.io/legacy-cloud-providers/azure: remove unnecessary fmt.Sprintf 2022-11-28 16:56:01 +08:00
maao
a796707396 Validate labelSelector in topologySpreadConstraints
Signed-off-by: maao <maao420691301@gmail.com>
2022-11-28 09:46:46 +08:00
Riaan Kleinhans
0545a0a988
update ineligible endpoints yaml 2022-11-28 08:57:21 +13:00
Kubernetes Prow Robot
7061704297
Merge pull request #114146 from justaugustus/sig-release-leads-update
OWNERS(sig-release): Promote Verónica (Tech Lead) and Jeremy (Chair)
2022-11-25 13:44:04 -08:00
Stephen Augustus
d0bc8e83df
OWNERS(sig-release): Promote Verónica (Tech Lead) and Jeremy (Chair)
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-11-25 15:37:55 -05:00
Kubernetes Prow Robot
6bdda2da16
Merge pull request #114122 from aojea/fix_endpoint_reconciler_11_2022
Fix endpoint reconciler failing to delete masterlease
2022-11-25 02:28:05 -08:00
Antonio Ojea
b89f42be26 remove flaky tag for GCE NEG tests
Fixed by

https://github.com/kubernetes/kubernetes/pull/113858
https://github.com/kubernetes/kubernetes/pull/113562
2022-11-25 08:52:35 +00:00
Wojciech Tyczyński
4ffca653ff Fix endpoint reconciler failing to delete masterlease
add regression test for endpoint reconciler leases
2022-11-25 08:13:20 +00:00
Jan Safranek
ebc5b208ae Fix OwnerReferencesPermissionEnforcement complaints when autodeleting PVCs
When StatefulSetAutoDeletePVC feature gate is enabled, StatefulSet
controller updates ownerReferences on managed PVCs. To be able to pass
OwnerReferencesPermissionEnforcement admission, it must have permissions to
delete PVCs.
2022-11-24 14:46:45 +01:00
Dave Chen
2121ce17da kubeadm: fix invalid testcase for enforceRequirements
These testcases are too vague, they are not test against the scenario
they want, but instead all of them are failed due to client cannot
be created.

`kubeconfig` file is created and mocked the function of `loadConfig` in
order to make those testcases valid.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-11-24 16:52:44 +08:00
Kubernetes Prow Robot
8f2371bcce
Merge pull request #114096 from pacoxu/vul-version-wrong
changelog: CVE-2022-3294 and CVE-2022-3162 were fixed in v1.23.14
2022-11-24 00:30:04 -08:00
Paco Xu
efb3f79328 changelog: CVE-2022-3294 and CVE-2022-3162 were fixed in v1.23.14 2022-11-24 13:03:44 +08:00
SataQiu
21cd660a1f kubeadm: respect user provided kubeconfig during discovery process 2022-11-24 12:29:10 +08:00
Kubernetes Prow Robot
45279654db
Merge pull request #114093 from pacoxu/etcd-3.5.6
use etcd 3.5.6-0 after etcd image is promoted
2022-11-23 19:02:04 -08:00
Paco Xu
75f89875f8 use etcd 3.5.6-0 after promotion 2022-11-24 09:45:56 +08:00
Kubernetes Prow Robot
7530baa9a1
Merge pull request #114044 from andrewsykim/fix-node-proxy-tests
test/e2e_node: set apiserver kubelet preferred addresses
2022-11-23 14:16:03 -08:00
Kubernetes Prow Robot
9884746f0f
Merge pull request #114084 from dims/bump-golang-version-for-building-etcd
Bump GOLANG_VERSION to build etcd `migrate` utility
2022-11-23 08:06:16 -08:00
ialidzhikov
aede3fbf40 pkg/controller: Replace deprecated func usage from the k8s.io/utils/pointer pkg 2022-11-23 17:40:23 +02:00
Sascha Grunert
c032d7993a
Bump gcb-docker-gcloud to v20221007-69e0da97ef
Update the container images used in cloudbuild to their latest version.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-11-23 16:03:28 +01:00
Davanum Srinivas
efd8723ece
Bump GOLANG_VERSION to build etcd (from 1.16.x to 1.17.x)
Also fix REVISION back to `0` this was missed in the previous PR

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-11-23 10:02:03 -05:00
Kubernetes Prow Robot
deba5619ab
Merge pull request #114064 from pacoxu/etcd-356
etcd: Build image 3.5.6-0
2022-11-23 05:26:14 -08:00
Kubernetes Prow Robot
21916415cb
Merge pull request #114077 from dims/add-missing-tags-for-kms-and-dynamic-resource-allocation-for-publishing
Add missing tags for kms and dynamic-resource-allocation for publishing
2022-11-22 20:24:14 -08:00
aimuz
059acc2f5a
kubernetes components using leader election to leases
Signed-off-by: aimuz <mr.imuz@gmail.com>
2022-11-23 10:59:08 +08:00
Davanum Srinivas
130bd8cba5
Add missing tags for kms and dynamic-resource-allocation for publishing
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-11-22 21:04:19 -05:00
Akhil Velagapudi
70d31ea917 Remove unused numExistingEndpoints variable 2022-11-23 00:54:50 +00:00
Kubernetes Prow Robot
5fd9a519a9
Merge pull request #113946 from Huang-Wei/fix-podschedulingreadiness-metric
Fix an accuracy issue of `scheduler_pending_pods` metric
2022-11-22 16:42:13 -08:00
Talor Itzhak
56c5a95849 e2e: cpumanager: proper test clean-up
One of the cpumanager tests doesn't remove the pod
that got created during the test.

This causes pollution of other tests and failures
from time to time (depends on the test execution order).

In order to defalke the tests, we should delete the pod
and wait for it to be completely remove.

Signed-off-by: Talor Itzhak <titzhak@redhat.com>
2022-11-22 17:25:52 +02:00
Paco Xu
a8b22ff28c upgrade etcd 3.5.6 for image build 2022-11-22 17:08:12 +08:00
Wei Huang
a731a44596
Fix an accuracy issue of scheduler_pending_pods metric 2022-11-21 21:33:16 -08:00
ZhangYu
d61849e800 pkg/controller/deployment/util/deployment_util.go:Improving test coverage 2022-11-22 10:12:58 +08:00
Andrew Sy Kim
6c8eacb157 test/e2e_node: set apiserver kubelet preferred addresses
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-21 15:09:04 -05:00
TommyStarK
43726e8403 pkg/api/persistentvolume: Improving test coverage.
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2022-11-21 17:18:24 +01:00
ztzxt
70415b9562 Fix API refs for batch v1 and v1beta1
Add generatod docs for batch v1

Start types with uppercase letters

Fix batch API docs under pgs/apis

Create generated files for batch v1

Fix batch v1beta1 docs

Generate new files after merge conflict
2022-11-19 12:42:25 +03:00
xin.li
8b4b3d82ab Add test for staging/src/k8s.io/apimachinery/pkg/version/staging/helpers.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-11-19 10:46:55 +08:00
Kubernetes Prow Robot
57eb5d631c
Merge pull request #113976 from swatisehgal/dra-fix-claim-parameter-name
dra: test examples: ensure that the claim parameter name is consistent
2022-11-18 05:16:30 -08:00
Kubernetes Prow Robot
77022402c5
Merge pull request #113960 from moshe010/doc
[DRA] Add RUNTIME_CONFIG="resource.k8s.io/v1alpha1"
2022-11-18 04:12:30 -08:00
Yibo Zhuang
380c7f248e scheduler volumebinding: leverage PreFilterResult
This change will leverage the new PreFilterResult
to reduce down the list of eligible nodes for pod
using Bound Local PVs during PreFilter stage so
that only the node(s) which local PV node affinity
matches will be cosnidered in subsequent scheduling
stages.

Today, the NodeAffinity check is done during Filter
which means all nodes will be considered even though
there may be a large number of nodes that are not
eligible due to not matching the pod's bound local
PV(s)' node affinity requirement. Here we can
reduce down the node list in PreFilter to ensure that
during Filter we are only considering the reduced
list and thus can provide a more clear message to
users when node(s) are not available for scheduling
since the list only contains relevant nodes.

If error is encountered (e.g. PV cache read error) or
if node list reduction cannot be done (e.g. pod uses
no local PVs), then we will still proceed to consider
all nodes for the rest of scheduling stages.

Signed-off-by: Yibo Zhuang <yibzhuang@gmail.com>
2022-11-17 21:37:24 -08:00