Commit Graph

105814 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
c7d57a01b7
Merge pull request #107295 from neolit123/1.24-kubeadm-add-scheme-to-cri-sockets
kubeadm: ensure CRI endpoints are managed with URL schemes
2022-01-03 23:02:59 -08:00
Kubernetes Prow Robot
42c391da29
Merge pull request #107235 from Nordix/deprecate-loadbalancerip
Deprecate Service.Spec.LoadBalancerIP
2022-01-03 18:39:00 -08:00
Lubomir I. Ivanov
39330c4278 kubeadm: ensure CRI URL scheme is present in the kubelet env file
During "upgrade node" and "upgrade apply" read the
kubelet env file from /var/lib/kubelet/kubeadm-flags.env
patch the --container-runtime-endpoint flag value to
have the appropriate URL scheme prefix (e.g. unix:// on Linux)
and write the file back to disk.

This is a temporary workaround that should be kept only for 1 release
cycle - i.e. remove this in 1.25.
2022-01-03 23:13:31 +02:00
Lubomir I. Ivanov
207556e057 kubeadm: make "upgrade node" include URL scheme in socket paths
The CRI socket that kubeadm writes as an annotation
on a particular Node object can include an endpoint that
does not have an URL scheme. This is undesired as long term
the kubelet can stop allowing endpoints without URL scheme.

For control plane nodes "kubeadm upgrade apply" takes
the locally defaulted / populated NodeRegistration and refreshes
the CRI socket in PerformPostUpgradeTasks. But for secondary
nodes "kubeadm upgrade node" does not.

Adapt "upgrade node" to fetch the NodeRegistration for this node
and fix the CRI socket missing URL scheme if needed in the Node
annotation.
2022-01-03 23:13:31 +02:00
Kubernetes Prow Robot
3bce0502aa
Merge pull request #107217 from Monokaix/used-arg-in-kubeadm/WaitForHealthyKubelet
Remove unused arg of kubeadm/WaitForKubeletAndFunc
2022-01-03 12:33:02 -08:00
pacoxu
7594f0ef90 kubeadm: detect runtime socket as URL format
- Update defaults for v1beta2 and 3 to have URL scheme
- Raname DefaultUrlScheme to DefaultContainerRuntimeURLScheme
- Prepend a missing URL scheme to user sockets and warn them
that this might not be supported in the future
- Update socket validation to exclude IsAbs() testing
(This is broken on Windows). Assume the path is not empty and has
URL scheme at this point (validation happens after defaulting).
- Use net.Dial to open Unix sockets
- Update all related unit tests

Signed-off-by: pacoxu <paco.xu@daocloud.io>
Signed-off-by: Lubomir I. Ivanov <lubomirivanov@vmware.com>
2022-01-03 21:15:03 +02:00
Kubernetes Prow Robot
2cd8ceb269
Merge pull request #106875 from warmchang/flag-cleanup
cleanup(apiserver): Correct the error message to not use the "--max-resource-write-bytes" & "--json-patch-max-copy-bytes" string.
2022-01-03 08:37:00 -08:00
Jan Safranek
0f9832d095 Fix PV name in unit test
Test 5-5 should use PV with "5-5"i in the name. It makes log analysys
much easier.
2022-01-03 15:20:12 +01:00
Kubernetes Prow Robot
7c013c3f64
Merge pull request #106200 from NikhilSharmaWe/betterOutputAutoscaling
Changed code to improve output for files under test/e2e/autoscaling
2021-12-29 16:30:49 -08:00
Luigi Tagliamonte
08448911ae add tests for new metric 2021-12-28 20:38:36 -08:00
Kubernetes Prow Robot
f5be5052e3
Merge pull request #106280 from nckturner/max-results
[AWS] Set max results if its not set
2021-12-28 10:47:56 -08:00
Lars Ekman
b5c1f3164b Update generated files 2021-12-27 17:35:28 +01:00
Lars Ekman
2dd8ae8fb0 Deprecate service.spec.LoadBalancerIP 2021-12-27 16:42:23 +01:00
Ricardo Katz
50015c2da6 fix nil pointer in create secret commands 2021-12-25 21:47:45 -03:00
Monokaix
eab74f15a5 Remove unused arg of kubeadm/WaitForKubeletAndFunc 2021-12-25 09:12:00 +08:00
Kubernetes Prow Robot
1df88a8a42
Merge pull request #107137 from crisboarna/feat/101172_windows-sync-cleanup
chore(kubectl_utils): remove windows specifc command addition for sync
2021-12-24 04:30:15 -08:00
Kubernetes Prow Robot
65ac7f09ec
Merge pull request #107209 from cjcullen/elastic2
Bump elasticsearch image to 7.16.2
2021-12-23 19:06:14 -08:00
Kubernetes Prow Robot
0fc6edeb1d
Merge pull request #106847 from cyclinder/log_the_payload
kube-proxy should log the payload when iptables-restore fails
2021-12-23 17:24:14 -08:00
CJ Cullen
282d178f7c Bump elasticsearch image to 7.16.2. 2021-12-24 01:05:40 +00:00
Chao Xu
5d7f209748 Refers to the GC doc in the blockOwnerDeletion API doc 2021-12-23 14:15:00 -08:00
Kubernetes Prow Robot
1d52f442ee
Merge pull request #106643 from cyclinder/addresses_in_endpointslice
fix: documenting that kube-proxy only use the first address in each endpoint
2021-12-23 10:42:29 -08:00
Paco Xu
fd099ffaf2 flake fix: remove the error handler for cronjob integration test 2021-12-23 16:50:12 +08:00
Kubernetes Prow Robot
f0dbc32ed9
Merge pull request #106853 from gnufied/disable-exp-backoff-volume-not-inuse
When volume is not marked in-use, do not backoff
2021-12-22 19:46:37 -08:00
cyclinder
97bd6e977d kube-proxy should log the payload when iptables-restore fails
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
2021-12-23 09:50:56 +08:00
Kubernetes Prow Robot
a6299aa2ab
Merge pull request #107173 from mauriciopoppe/fix-snapshot-refactor
Fix order of commands in the snapshot tests for persistent volumes
2021-12-22 15:54:36 -08:00
Jing Xu
34c14949fc Change default runtime to containerd for Windows cluster
change default runtime to containerd for windows

Change-Id: I61949ae3687cddb7bfd00715a455ee5eed4da0db
2021-12-22 14:14:52 -08:00
ialidzhikov
3f35536e5b Fix doc for leader-elect-resource-lock flag
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2021-12-22 17:49:01 +02:00
cyclinder
8808366e09 fix: documenting that kube-proxy only use the first address in each endpoint
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
2021-12-22 20:11:19 +08:00
Ciprian Hacman
a0abe5aa33 Clean up dockershim in tests
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2021-12-22 13:05:34 +02:00
Kubernetes Prow Robot
c75d254beb
Merge pull request #107095 from songlh/fixing-4
fixing three goroutine leaks in bounded_frequency_runner_test.go
2021-12-21 19:53:35 -08:00
Iceber Gu
e2bf6ca204 if the ok returned by RequestInfoFrom is false, the requestInfo is nil 2021-12-22 11:27:09 +08:00
Mauricio Poppe
028de6a8cb Fix order of commands in the snapshot tests for persistent volumes 2021-12-22 00:14:45 +00:00
Kubernetes Prow Robot
ba8410ea5f
Merge pull request #106821 from justinsb/use_non_deprecated_zone_selector
e2e: Stop using deprecated zone nodeSelector
2021-12-21 15:59:47 -08:00
Kubernetes Prow Robot
95b4e46db0
Merge pull request #106593 from claudiubelu/windows/etcd-image2
Adds Windows support for etcd image
2021-12-21 15:59:35 -08:00
Luigi Tagliamonte
6542f4bb99 add failopen metric 2021-12-21 14:11:12 -08:00
Derek Pryor
70e0f8197a
Fix the leak of vSphere client sessions
Implement the test cleanup callback method to close any open vSphere
client connections. Without this clean up sessions were leaking during
testing.
2021-12-21 14:07:53 -08:00
Kubernetes Prow Robot
38ec822b46
Merge pull request #107103 from pohly/log-klog-update
dependencies: update klog to v2.40.1
2021-12-21 13:58:02 -08:00
Kubernetes Prow Robot
d0d23ea052
Merge pull request #107157 from chendave/proxy-config
kube-proxy: note that cli args is ignored if config file is specified
2021-12-21 12:44:25 -08:00
Kubernetes Prow Robot
d76c1c56c7
Merge pull request #106831 from gxglls/master
docs: fix error link path in storage e2e test doc
2021-12-21 12:44:12 -08:00
Kubernetes Prow Robot
d56558ecaf
Merge pull request #106822 from justinsb/log_volume_when_creating_volume
e2e tests: log zone when creating volume
2021-12-21 12:44:01 -08:00
Kubernetes Prow Robot
813671d1a0
Merge pull request #107138 from crisboarna/feat/102334_netpol-arg-improvement
feat(netpol tests):  netpol probeConnectivity refactor
2021-12-21 07:44:46 -08:00
Jan Safranek
045ca75c03 Deflake PV metrics unit test
Test 5-7 tries to delete a PVC at the very same time when it detects that
the PV controller started processing the PVC. The controller then sometimes
can't update the PVC and generate an event for it that the test expects.

From PV controller logs (not shown in CI):
> I1221 14:36:34.548160  104481 pv_controller.go:815] updating PersistentVolumeClaim[default/claim5-7] status: set phase Lost failed: cannot update claim claim5-7: claim not found

Typical error in CI:
> FAIL: TestControllerSync (83.22s)
> framework_test.go:202: Event "Warning ClaimLost" not emitted

Therefore wait for the PVC to be fully processed before deleting the PVC to
avoid races.
2021-12-21 15:36:44 +01:00
Jan Safranek
e323306ce0 Add new watchers to PV controller tests
Add fake Pod and Node watchers to the tests. It only reduces test noise:

Failed to watch *v1.Pod: unhandled watch: testing.WatchActionImpl{ActionImpl:testing.ActionImpl{Namespace:"", Verb:"watch", Resource:schema.GroupVersionResource{Group:"", Version:"v1", Resource:"pods"}, Subresource:""}, WatchRestrictions:testing.WatchRestrictions{Labels:labels.internalSelector(nil), Fields:fields.andTerm{}, ResourceVersion:""}}
2021-12-21 15:36:34 +01:00
Kubernetes Prow Robot
a8cb4e22bf
Merge pull request #106909 from adisky/remove-docker-from-hack-local-up
Remove docker as container runtime for local-up-cluster.sh
2021-12-21 06:04:46 -08:00
Mengjiao Liu
7319114cdd Improve test coverage: pkg/api/persistentvolume 2021-12-21 19:01:58 +08:00
Cristian Boarna
bcb7b938a6 feat(netpol tests): added netpol probeConnectivity args improvement 2021-12-21 12:32:09 +02:00
Kubernetes Prow Robot
13e97453f9
Merge pull request #107091 from robscott/endpointslice-metrics-perf
Improving performance of EndpointSlice controller metrics cache
2021-12-21 01:08:45 -08:00
Dave Chen
e5eb158877 kube-proxy: note that cli args is ignored if config file is specified
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-12-21 17:04:47 +08:00
Kubernetes Prow Robot
4cd6db046f
Merge pull request #107061 from alexzielenski/oav3-bug-incorrect-definitions-version
Fix openapi v3 bug which causes incorrect schema version to be looked up
2021-12-20 23:26:45 -08:00
Mengjiao Liu
e805e646e3 Remove feature gate ImmutableEphemeralVolumes 2021-12-21 14:55:33 +08:00