Commit Graph

112613 Commits

Author SHA1 Message Date
Antonio Ojea
bafeacd14d use kube-proxy defaults values for CI
Change-Id: I8b9bcd62a0df8c1f90623a53ad3ba7fb31b2a4f3
2022-12-01 10:32:12 +00:00
Sascha Grunert
8a96ed0d20
Link kubectl-convert binary statically
The kubectl-convert binary itself only depends on the following runtime
libraries when linking dynamically:

```
> ldd _output/bin/kubectl-convert
        linux-vdso.so.1 (0x00007ffef0786000)
        libpthread.so.0 => /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libpthread.so.0 (0x00007f5f4ac25000)
        libdl.so.2 => /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libdl.so.2 (0x00007f5f4ac20000)
        libc.so.6 => /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libc.so.6 (0x00007f5f4aa00000)
        /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/ld-linux-x86-64.so.2 => /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib64/ld-linux-x86-64.so.2 (0x00007f5f4ac2c000)
```

We now move kubectl-convert to become a static binary as well to achieve
maximum portability.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-12-01 11:23:26 +01:00
Iceber Gu
6b7755f8eb fix the alpha phase version of LegacyServiceAccountTokenTracking
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2022-12-01 11:16:06 +08:00
Antoine Pelisse
56cac64655 fieldmanager: Make all tests external 2022-11-30 13:54:24 -08:00
Antoine Pelisse
9c447177e8 fieldmanager: Move private setLastApplied to internal.SetLastApplied
Since this is used both in real-code and in test-code, let's put it
somewhere it can be re-used.
2022-11-30 13:54:21 -08:00
Antoine Pelisse
530d25026e fieldmanager: remove dependencies on dummy version conversion for tests 2022-11-30 13:54:21 -08:00
Antoine Pelisse
7217e0308d fieldmanager: Remove unnecessary method for creating TestFieldManager 2022-11-30 13:54:16 -08:00
Aldo Culquicondor
4e1c3a5855
Dedup serialization of status
Change-Id: Iaba63ea31e948933e162b3148cda2588af0fdaa3
2022-11-30 13:05:07 -05:00
Aldo Culquicondor
b62541fe84
Avoid serialization of maps when log level < 10
Change-Id: If264c26ae599602d5b4919301f011c2095d706ee
2022-11-30 12:53:52 -05:00
Kubernetes Release Robot
79cba170b5 CHANGELOG: Update directory for v1.26.0-rc.1 release 2022-11-30 17:07:55 +00:00
Msk
1444f089fc Fix go routine leaks
Close the channel instead of write to it to avoid hanging goroutine.
2022-12-01 00:29:59 +08:00
Paco Xu
a782bd62bd add github.com/mindprince/gonvml to unwanted dependencies for license reason 2022-11-30 15:12:04 +08:00
Paco Xu
7e9dfad2b6 sort unwanted dependencies in order 2022-11-30 14:37:53 +08:00
Brian Pursley
c0dea5e31a i18n: Fix bug where package-level variables are not translated.
Change i18n.T() to load translations if they have not yet been loaded.

Added new integration tests to test help output translation.
2022-11-29 23:09:57 -05:00
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
Claudiu Belu
4dc7a260ec unittests: Fixes unit tests for Windows (part 4)
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- paths not properly joined (filepath.Join should be used).
- files not closed, which means that they cannot be removed / renamed.
- time.Now() is not as precise on Windows, which means that 2
  consecutive calls may return the same timestamp.
2022-11-29 16:32:26 +00: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
songxiao-wang87
c3f520aabf Making a run test.
Signed-off-by: songxiao-wang87 <wang.xiaosong23@zte.com.cn>
2022-11-24 05:46:14 +00: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