Commit Graph

101985 Commits

Author SHA1 Message Date
Marc Khouzam
c0b3a698fa Add Go tests for custom completions
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2021-06-05 21:32:41 -04:00
Marc Khouzam
879cdc5fa9 Move all completion bash code to Go code
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2021-06-05 21:32:38 -04:00
knight42
663b13e814 refactor: implement custom completions for some flags using Go
Only --context, --cluster, --user and --namespace are included.

Signed-off-by: knight42 <anonymousknight96@gmail.com>
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2021-06-05 21:30:09 -04:00
tiloso
c5d70e9db1 Fix staticcheck in cluster & k8s.io/{apimachinery,apiserver} 2021-06-05 22:15:15 +02:00
Marek Siarkowicz
aa9321f534 Add example showing impact on log output 2021-06-05 22:06:05 +02:00
Kubernetes Prow Robot
f27340ce90
Merge pull request #102617 from serathius/json-benchmark
Cleanup json logging benchmarks
2021-06-05 11:46:50 -07:00
Kubernetes Prow Robot
aaceb26ea3
Merge pull request #99080 from vinayakankugoyal/dockerfile3
Use docker buildx for the build-image.
2021-06-05 11:46:38 -07:00
Wei Huang
8e85a2b0c2
sched: fix a bug that a preemptor pod exists as a phantom
- SafePodNominator to resolve racing issue when dealing with nominated pod
2021-06-05 11:07:29 -07:00
Kubernetes Prow Robot
1b71cc567f
Merge pull request #102625 from serathius/klog-integration
Add klog integration tests
2021-06-05 10:41:21 -07:00
Kubernetes Prow Robot
0685959592
Merge pull request #102610 from liggitt/audit-non-root
Fix audit unit test file location
2021-06-05 10:41:13 -07:00
Kubernetes Prow Robot
a52571144f
Merge pull request #102597 from mengjiao-liu/rename-masterConfig
test/integration: Rename masterConfig to controlPlaneConfig
2021-06-05 10:41:05 -07:00
Kubernetes Prow Robot
1f363d7961
Merge pull request #102513 from freehan/net-tier-fix
only delete forwardingrule and address when net tier annotation is specified
2021-06-05 10:40:57 -07:00
Kubernetes Prow Robot
74af3b712d
Merge pull request #102297 from deads2k/ssh-tunnels
remove --ssh- options, deprecated 13 releases, that only work on GCE
2021-06-05 10:40:50 -07:00
Kubernetes Prow Robot
29a8105cec
Merge pull request #101272 from Jiawei0227/deprecateflag
Remove CSIMigrationvSphereComplete flag
2021-06-05 10:40:38 -07:00
Patrick Ohly
c15fd76ee9 e2e storage: enable health-check controller in hostpath deployment
It was disabled together with the agent to avoid test failures in
gce-master-scale-correctness (https://github.com/kubernetes/kubernetes/issues/102452). That
solved the problem, but we still need to check whether the controller
alone works.
2021-06-05 18:16:19 +02:00
Kubernetes Prow Robot
e6a8bc9fbe
Merge pull request #90368 from serathius/remove-legacy-metrics
Remove legacy metrics client from podautoscaler
2021-06-05 08:44:38 -07:00
Marek Siarkowicz
88174fc3f2 Add klog integration tests 2021-06-05 16:48:46 +02:00
zhiming
c9414c2bba fix bug where string slice flag is not assigned 2021-06-05 20:33:17 +08:00
Marek Siarkowicz
2e167a1399 Disable zap sampling and cleanup config 2021-06-05 14:02:10 +02:00
Marek Siarkowicz
a9a2346e19 Cleanup json logging benchmarks
* Write logs to sink instead of stderr
* Remove json marshall tests
2021-06-05 13:16:38 +02:00
刁浩 10284789
d8e91ab727 Fix test order in /pkg/probe/http/http_test.go 2021-06-05 07:27:34 +00:00
Andrew Sy Kim
1010e6a9d9 proxier/ipvs: fix test cases where ready endpoints were not used
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 20:14:00 -04:00
Elana Hashman
cc2e9394be
kubelet: Fix test order in verifyContainerStatuses
Per https://pkg.go.dev/github.com/stretchr/testify/assert#Equal
expected goes before actual.
2021-06-04 16:04:10 -07:00
Jordan Liggitt
91e5d98b57 Fix audit unit test file location 2021-06-04 17:23:34 -04:00
Marek Siarkowicz
4ebc0c94a4 Remove legacy metrics client from podautoscaler 2021-06-04 23:06:32 +02:00
Kubernetes Prow Robot
8eff96dd12
Merge pull request #102608 from gnufied/remove-test-on-unknown-block-devices
Remove block device metrics unit test
2021-06-04 13:56:38 -07:00
Marek Siarkowicz
3175dbd855
Update owners for structured logging library 2021-06-04 22:21:25 +02:00
Hemant Kumar
f5739a15d1 The test was not very useful and required elevated access 2021-06-04 15:48:35 -04:00
Andrew Sy Kim
8eb7e81bc9 proxy/ipvs: add unit test Test_HealthCheckNodePortWhenTerminating for ensuring health check node port fails when all local endpoints are terminating
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
ed4fe07375 proxy/iptables: add unit test Test_HealthCheckNodePortWhenTerminating for ensuring health check node port fails when all local endpoints are terminating
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
14cc201b58 proxy: add test case in TestGetLocalEndpointIPs for when all endpoints are terminating
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
3e459997c8 proxy/ipvs: add a unit tests for when the ProxyTerminatingEndpoint feature gate is disabled
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
68ebd16a2c proxier/iptables: refactor terminating endpoints unit tests with test table and test for feature gate
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
f92265f654 proxier/ipvs: check feature gate ProxyTerminatingEndpoints
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
8c514cb232 proxier/iptables: check feature gate ProxyTerminatingEndpoints
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
25e2c92733 add feature gate ProxyTerminatingEndpoints
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
cf9ccf5a8e proxier/ipvs: unit tests should specify Service ports
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
d82d851d89 proxier/iptables: include Service port in unit tests
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
4c8b190372 proxier/iptables: reuse the same variable for endpointchains for better memory consumption
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
55881093d8 proxier/ipvs: add ipvs unit tests for falling back to terminating
endpoints

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:17:43 -04:00
Andrew Sy Kim
9d4e24aa32 proxier/ipvs: fall back to ready terminating if no ready endpoint exists
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:15:40 -04:00
Andrew Sy Kim
b54c0568d8 proxier/iptables: add unit tests for falling back to terminating endpoints
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:15:40 -04:00
Andrew Sy Kim
732635fd4b proxier/iptables: fallback to terminating endpoints if there are no ready endpoints
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:15:40 -04:00
Andrew Sy Kim
be92fc83e2 proxier: simplify toplogy FilterLocalEndpoint function
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-06-04 15:15:40 -04:00
Abu Kashem
e797a5a198
client-go: fix flake in test TestRequestWatchWithRetry 2021-06-04 15:12:48 -04:00
Kubernetes Prow Robot
7ed2ed1b45
Merge pull request #102412 from andrewsykim/kill-service-topology
Remove deprecated alpha Service topologyKeys field
2021-06-04 10:48:38 -07:00
Abu Kashem
892d4fabb8
Revert "Merge pull request #102581 from liggitt/revert-watch-retry"
This reverts commit 5a59a43957, reversing
changes made to 81b9789eaa.
2021-06-04 13:45:26 -04:00
Minhan Xia
fbf2d2df26 only delete forwardingrule and address when net tier annotation is specified 2021-06-04 10:04:42 -07:00
Kubernetes Prow Robot
3b71dac6ac
Merge pull request #102593 from CaoDonghui123/fix7
remove redundant code
2021-06-04 09:44:38 -07:00
Kubernetes Prow Robot
ed1a2b411d
Merge pull request #102463 from neolit123/1.22-add-usergroup-utils
kubeadm: add utilities to manage users and groups
2021-06-04 08:35:26 -07:00