Commit Graph

108175 Commits

Author SHA1 Message Date
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
Claudiu Belu
8d98e53b78 tests: Include the Windows node name in the exception
There are a few tests that fail because the hostnames apparently do not
match. Logging the name would help finding the problem.
2022-05-04 12:50:57 -07: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
Wojciech Tyczyński
61d681387f Close events recording sink in integration tests 2022-05-04 13:59:47 +02: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
Kubernetes Prow Robot
2a0d2331a8
Merge pull request #109574 from endocrimes/dani/e2e_node-approver
sig-node: endocrimes as e2e_node approver
2022-05-04 02:34:11 -07:00
Kubernetes Prow Robot
1347e560ec
Merge pull request #109572 from endocrimes/dani/remote-docker
e2e_node: remote runner: Require containerd/crio
2022-05-04 02:34:03 -07:00
Kubernetes Prow Robot
a637604399
Merge pull request #109571 from endocrimes/dani/cleanup-e2e-node
e2e_node: Cleanup old unused jenkins scripts/config
2022-05-04 02:33:56 -07:00
Kubernetes Prow Robot
78faab2c7b
Merge pull request #109478 from shintard/added-status-functions
Implementation of a function that returns the wait state of the scheduler
2022-05-04 02:33:44 -07:00
Kubernetes Prow Robot
b1e130fe83
Merge pull request #109563 from ardaguclu/describe-topologyspreadconstraints
Show topologySpreadConstraints in Describe command
2022-05-04 01:29:37 -07:00
Kubernetes Prow Robot
fa69786fa6
Merge pull request #109551 from SergeyKanzhelev/fixTensorflow
fix the image for node performance tests - model expected tensorflow…
2022-05-04 01:29:30 -07:00
Kubernetes Prow Robot
629706e0fe
Merge pull request #109546 from sanposhiho/replace-metrics
Replace scheduler_e2e_scheduling_duration_seconds with scheduler_scheduling_attempt_duration_seconds in scheduler_perf
2022-05-04 01:29:22 -07:00
Kubernetes Prow Robot
aca3b6a0ce
Merge pull request #109536 from yuanchen8911/master
Add PodWrapper functions for scheduler testing
2022-05-04 01:29:12 -07:00
Kubernetes Prow Robot
74ec2dd197
Merge pull request #109527 from navist2020/kubeadm/preflightError
Return preflightError if an error occurs when running the preflight
2022-05-04 01:29:04 -07:00
Kubernetes Prow Robot
78dbcb4233
Merge pull request #109520 from cncal/lcn_cleanup_duplicate_code_snippet
Remove the duplicate code snippet in client-go delaying_queue tests
2022-05-04 01:28:56 -07:00
Kubernetes Prow Robot
7e8a35e7da
Merge pull request #109514 from aryan9600/clear-guaranteed-update
Update `storage.GuaranteedUpdate` to be clearer
2022-05-04 01:28:48 -07:00
Kubernetes Prow Robot
a3c0729c4d
Merge pull request #109509 from leiyiz/imagevsc
fixed incorrect tag on volume cloning test case
2022-05-04 01:28:40 -07:00
Kubernetes Prow Robot
76d6473136
Merge pull request #109506 from wangrzneu/fix-comment
fix comment of IngressClassParametersReferenceScopeCluster
2022-05-04 01:28:33 -07:00
Kubernetes Prow Robot
1480fc3945
Merge pull request #109504 from soltysh/clean_builder
Move path error to const and squash tests
2022-05-04 01:28:25 -07:00
Kubernetes Prow Robot
63a618a815
Merge pull request #109486 from alculquicondor/job-backofflimit
Fix job tracking leaving pods with finalizers
2022-05-04 01:28:14 -07:00
Kubernetes Prow Robot
9566ce488a
Merge pull request #109468 from pjh/owners-pjh
Remove pjh from cluster/gce/ OWNERS files
2022-05-04 01:28:07 -07:00
Kubernetes Prow Robot
e8ef77514b
Merge pull request #109443 from kevindelgado/dynamic-apply
Add Apply and ApplyStatus methods to dynamic ResourceInterface
2022-05-04 01:27:53 -07:00
Kubernetes Prow Robot
d9fa563550
Merge pull request #109441 from Miciah/kubelet-parseResolvConf-handle-search-dot
kubelet: parseResolvConf: Handle "search ."
2022-05-04 01:27:42 -07:00
Kubernetes Prow Robot
35de9f5027
Merge pull request #109410 from dims/set-default-flake-attempt-to-one
Set default flake attempt to 1 (not 2)
2022-05-04 01:27:30 -07:00
sanposhiho
1c2c20e6bd Change test cases for Preemption to create fewer Pods 2022-05-04 07:47:46 +00:00
cyclinder
3fa4705aea kube-proxy: fix healthz return unexpect code 200 2022-05-04 14:05:24 +08:00