Commit Graph

108039 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
e514c5d79c
Merge pull request #109755 from p0lyn0mial/harden-test-service-account
hardens integration serviceaccount tests
2022-05-05 01:43:14 -07:00
Kubernetes Prow Robot
f1ad477c88
Merge pull request #109751 from SataQiu/clean-kubeadm-20220502
kubeadm: replace *clientset.Clientset with clientset.Interface for join phase
2022-05-05 01:43:06 -07:00
Kubernetes Prow Robot
43575888fd
Merge pull request #109750 from aojea/spdy_tls
spdyroundtripper: don't need to verify server hostname twice
2022-05-05 01:42:59 -07:00
Kubernetes Prow Robot
794d3ab686
Merge pull request #109740 from AllenZMC/fix_test_iptables
Optimize test cases for iptables
2022-05-05 01:42:51 -07:00
Kubernetes Prow Robot
b5d494cdee
Merge pull request #109738 from AllenZMC/fix
Optimize test cases for ipvs
2022-05-05 01:42:43 -07:00
Tim Allclair
07c34eb400
[E2E] Refactor pod polling functions (WaitForX) (#109704)
* Clean up WaitFor Pod functions

* Handle retryable errors when polling

* Log more context on timeout

* #squash Address PR feedback
2022-05-05 01:42:32 -07:00
Kubernetes Prow Robot
a685faa798
Merge pull request #109607 from liggitt/drop-unused-third-party
Drop unused golang/template package and funcs
2022-05-05 01:42:20 -07:00
Maciej Borsz
56769e794b Improve Create/Update/Patch traces. 2022-05-05 07:44:37 +00:00
Patrick Ohly
8e56b1e18d features: remove GA features
This removes all feature definitions that were marked for removal in 1.25, with
some exceptions:
- some features were marked for removal in 1.25 although they only graduated
  to GA in 1.24 - that seems too soon, so the comment was updated instead
- CSIVolumeFSGroupPolicy and PodDisruptionBudget are still used in the code, so
  removing them will be more work and was deferred
2022-05-05 09:38:19 +02:00
Patrick Ohly
85513e4bca features: reduce risk of merge conflicts
Merge conflicts become less likely when:
- features are sorted alphabetically because
  then changes are more likely to be done in
  different parts of the files
- blank lines separate the hash entries because
  gofmt then doesn't change the formating of
  other entries when adding or removing one

Merge conflicts where pretty common shortly before a code freeze when everyone
added new features at the end of the files.
2022-05-05 08:22:16 +02:00
Kubernetes Prow Robot
9ac6b3af5f
Merge pull request #109697 from BenTheElder/fix-coverage-go118
fix e2e coverage package for go 1.18
2022-05-04 21:18:19 -07:00
cici37
a3587c12da Update go-control-plane, cncf/xds/go, cncf/udpa/go and remove unused versions 2022-05-04 18:45:22 -07:00
cici37
334d8fb7a2 Update GRPC 2022-05-04 18:41:20 -07:00
cici37
e8f6184d86 Update genproto and antlr. 2022-05-04 18:37:30 -07:00
cici37
a86dd29157 Bump cel-go to v0.11.2 2022-05-04 18:32:06 -07:00
Kubernetes Prow Robot
cb7beb5912
Merge pull request #109440 from liggitt/gomod-1.18
update go.mod files to go 1.18
2022-05-04 18:16:19 -07:00
Kubernetes Prow Robot
6445efb341
Merge pull request #109344 from stbenjam/host-port-fixes
Replace use of Sprintf with net.JoinHostPort
2022-05-04 15:28:19 -07:00
Jordan Liggitt
94035cff0e Remove v1.22.0 API fixture data 2022-05-04 17:32:48 -04:00
Jordan Liggitt
b127b2735b Add v1.24.0 fixture data 2022-05-04 17:32:29 -04:00
Han Kang
a569829f59 refactor watch cache metrics so that they are in a single place
Change-Id: I7874e90d4ec111e82450273f27f8e50556cb096a
2022-05-04 14:30:59 -07:00
Kubernetes Prow Robot
6b988c516e
Merge pull request #109268 from liggitt/pruning-metadata
ServerSideFieldValidation: Fix bug treating metadata fields as unknown fields
2022-05-04 14:14:19 -07:00
Kubernetes Prow Robot
4dacd5113d
Merge pull request #109231 from pbeschetnov/rc-logs
Only log requests for configured consumptions in ResourceConsumer
2022-05-04 13:02:19 -07:00
Jordan Liggitt
fba69f7eb9 Change test/cmd to test deprecations using a CRD 2022-05-04 16:00:57 -04:00
Jordan Liggitt
a44192b955 Remove PodSecurityPolicy cluster config 2022-05-04 16:00:56 -04:00
Jordan Liggitt
410ac59c0d Remove PodSecurityPolicy admission plugin 2022-05-04 16:00:56 -04:00
Kubernetes Prow Robot
889e60ab33
Merge pull request #109124 from daschott/daschott/winkernel-perf-fix
winkernel proxier cache HNS data to improve syncProxyRules performance
2022-05-04 11:47:14 -07:00
Phong Tran
2501b356b7 Fix broken links 2022-05-04 10:45:18 -07:00
Kubernetes Prow Robot
7477e1c91a
Merge pull request #109735 from my-git9/kubernetesurl
update k8s url
2022-05-04 09:49:50 -07:00
Dan Winship
84ad54f0e5 Don't increment "no local endpoints" metric when there are no remote endpoints
A service having no _local_ endpoints when it does have remote
endpoints is different from a service having no endpoints at all.
2022-05-04 12:38:17 -04:00
xin.li
ba654e0dad modify link
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-05-05 00:19:02 +08:00
Francesco Romani
19ae360af9 e2e: node: inline getSampleDevicePluginPod
Starting golangci-lint >= 1.45, the tool is complaining
about the function being unused:
```bash
test/e2e_node/device_plugin_test.go:82:6: func `getSampleDevicePluginPod` is unused (unused)
func getSampleDevicePluginPod() *v1.Pod {
     ^

Please review the above warnings. You can test via "./hack/verify-golangci-lint.sh"
If the above warnings do not make sense, you can exempt this warning with a comment
 (if your reviewer is okay with it).
In general please prefer to fix the error, we have already disabled specific lints
 that the project chooses to ignore.
See: https://golangci-lint.run/usage/false-positives/}
```

thing is the code is not changed lately, and manual inspection trivially
confirms it is used.
Older versions of golangci-lint (tested with
```
golangci-lint has version 1.41.1 built from a2074809 on 2021-06-19T16:01:50Z
```)
indeed do NOT complain about the function, so this seems a golangci-lint
bug.

To move forward, we can disable the warning, but this leaves a sour
taste.
Instead, since the function is pretty trivias, was used just once and the caller
was undoing some of the work done by the function, we just inline it,
which solves the linter warning and makes the code a bit better.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-04 17:05:00 +02:00
Kubernetes Prow Robot
1234d061c0
Merge pull request #109727 from Huang-Wei/cleanup-sched-heap
sched: remove unused code in heap.go
2022-05-04 08:01:51 -07:00
Jordan Liggitt
9e1064a26b Regenerate vendor 2022-05-04 10:27:41 -04:00
Jordan Liggitt
1176b7ca28 Update go.mod files to go1.18, update license vendor script 2022-05-04 10:22:27 -04:00
Kubernetes Prow Robot
39021f66ef
Merge pull request #109715 from yibozhuang/volumerestrictions-refactor
Remove parallel node processing in PreFilter stage in volumerestrictions scheduler plugin
2022-05-04 06:49:51 -07:00
Kubernetes Prow Robot
2fd498f620
Merge pull request #109430 from soltysh/export_kustomize_version
Export function returning kustomize version
2022-05-04 04:57:51 -07:00
Kubernetes Prow Robot
094a33ad80
Merge pull request #109342 from bertinatto/custom-timeout-storage-e2e-cleanup
test/e2e/storage: replace hardcoded value with custom timeout in cleanup routine
2022-05-04 03:45:52 -07:00
Stephen Benjamin
b351745c1c Replace use of Sprintf with net.JoinHostPort
On IPv6 clusters, one of the most frequent problems I encounter is
assumptions that one can build a URL with a host and port simply by
using Sprintf, like this:

```go
fmt.Sprintf("http://%s:%d/foo", host, port)
```

When `host` is an IPv6 address, this produces an invalid URL as it must
be bracketed, like this:

```
http://[2001:4860:4860::8888]:9443
```

This change fixes the occurences of joining a host and port with the
purpose built `net.JoinHostPort` function.

I encounter this problem often enough that I started to [write a linter
for it](https://github.com/stbenjam/go-sprintf-host-port).  I don't
think the linter is quite ready for wide use yet, but I did run it
against the Kube codebase and found these.  While the host portion in
some of these changes may always be an FQDN or IPv4 IP today, it's an
easy thing that can break later on.
2022-05-04 06:37:50 -04:00
Humble Chirammal
49833aaae3 csi: modularize validation of secretRef object fields for PV
considering many PV sources exist today with secretRef fields
this introduce a secretRef validation function which could be
used based on the pv spec source type. There are different field
restrictions exist today for these PV types like some of them
dont need namespace reference..etc. The PV spec validation has
to be adjusted for different PVs, but this commit try to make
use of this newly introduced secretRef validation function for
CSI volume source.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-05-04 16:05:05 +05:30
Kubernetes Prow Robot
3bef1692ef
Merge pull request #109696 from Huang-Wei/rm-sched-perf-legacy
Cleanup legacy scheduler perf tests
2022-05-04 02:35:43 -07:00
Kubernetes Prow Robot
b593ed3118
Merge pull request #109659 from heqg/structuredLog01
Log StructuredLog: spelling formatting
2022-05-04 02:35:34 -07:00
Kubernetes Prow Robot
82ccfb4d2e
Merge pull request #109657 from claudiubelu/gce-containerd-update
GCE Windows: Copy the CNI binaries from the right folder
2022-05-04 02:35:26 -07:00
Kubernetes Prow Robot
c1ad54dfe3
Merge pull request #109649 from pohly/e2e-feature-gates
e2e: move feature gate support from test/e2e to test/e2e_node
2022-05-04 02:35:18 -07:00
Kubernetes Prow Robot
1ad0940732
Merge pull request #109623 from stevekuznetsov/skuznets/clarify-list-flow
storage/etcd3: clarify the pagingation flow in LIST
2022-05-04 02:35:10 -07:00
Kubernetes Prow Robot
ebd5c8c446
Merge pull request #109618 from stevekuznetsov/skuznets/common-storage-test-setup
storage/etcd3: continue unifying test setup
2022-05-04 02:35:02 -07:00
Kubernetes Prow Robot
7adb7c1d06
Merge pull request #109612 from pandaamanda/remove_DeprecatedControllerOptions
refactor: remove deprecated `deleting-pods-qps` `deleting-pods-burst` `register-retry-count`  flags
2022-05-04 02:34:54 -07:00
Kubernetes Prow Robot
366dcaa81c
Merge pull request #109606 from endocrimes/dani/cleanup-make-test-e2e-node
hack: make test-e2e-node: remove old project refs
2022-05-04 02:34:45 -07:00
Kubernetes Prow Robot
d11eec71ce
Merge pull request #109587 from slaskawi/106142-warn-on-white-characters-at-the-beginning-of-a-token-2
Warn on receiving a space before the token
2022-05-04 02:34:37 -07:00
Kubernetes Prow Robot
3739175e1f
Merge pull request #109580 from dobsonj/offline-expansion-test-flag
e2e: add storage capability for offline volume expansion
2022-05-04 02:34:29 -07:00
Kubernetes Prow Robot
8dd45ba46c
Merge pull request #109579 from logicalhan/watch-cache-metric
remove stutter from alpha metric
2022-05-04 02:34:21 -07:00