Commit Graph

85584 Commits

Author SHA1 Message Date
Lubomir I. Ivanov
cc0320d41a kubeadm: fix skipped etcd upgrade on secondary cp nodes 2019-11-09 03:59:59 +02:00
Kubernetes Prow Robot
3387d6cfc7
Merge pull request #83840 from liggitt/json-iter
bump json-iterator dependency
2019-11-08 17:32:34 -08:00
Yu Liao
dac667a66e added nodeSelector: beta.kubernetes.io/os: linux 2019-11-08 16:06:28 -08:00
Pavithra Ramesh
85e0457d63 Support specifying a custom subnet for ILB ip
unit test for verifying custom subnet config.

simplified ip address logic.

Modified init code to always initialize eventRecorder.

removed extra import from automerge with master.
2019-11-08 15:39:16 -08:00
Rob Scott
6b8b2ff975
Adding new label to indicate what is managing an EndpointSlice
This adds a new Label to EndpointSlices that will ensure that multiple
controllers or entities can manage subsets of EndpointSlices. This
label provides a way to indicate the controller or entity responsible
for managing an EndpointSlice.

To provide a seamless upgrade from the alpha release of EndpointSlices
that did not support this label, a temporary annotation has been added
on Services to indicate that this label has been initially set on
EndpointSlices. That annotation will be set automatically by the
EndpointSlice controller with this commit once appropriate Labels have
been added on the corresponding EndpointSlices.
2019-11-08 15:34:44 -08:00
Barni S
b14612e346 Move stackdriver startup block after HNS stabilizes. Stackdriver is not functional if metadata-server doesnt respond. At this stage of the init script, metadata server is available 2019-11-08 17:28:12 -05:00
Kubernetes Prow Robot
6569bc736f
Merge pull request #85002 from oomichi/cleanup-util
Remove unused function from e2e framework util.go
2019-11-08 13:49:12 -08:00
Kubernetes Prow Robot
48ee150444
Merge pull request #84612 from soltysh/set_typesetter
Set TypeSetter in get print flags, like we do everywhere else
2019-11-08 13:49:01 -08:00
Kubernetes Prow Robot
3c7706bf9c
Merge pull request #84591 from TheLastProject/feature/print-join-as-admin-command
Let token create help with joining a master
2019-11-08 13:48:43 -08:00
Kubernetes Prow Robot
e4fdb82c01
Merge pull request #84302 from serathius/restrict-prometheus-import
Restrict visibility of prometheus packages
2019-11-08 13:48:26 -08:00
Kubernetes Prow Robot
ec273abf0b
Merge pull request #83385 from daxmc99/docstring-change
Fix typo in docstring of DeepEqual
2019-11-08 13:48:11 -08:00
Kubernetes Prow Robot
9cf309ed59
Merge pull request #82049 from andrewsykim/ga-node-instance-type-label
Promote Node Instance Type Label to GA
2019-11-08 13:47:58 -08:00
Louis Jackman
62e314a556
Remove potential Goroutine leak in kubeadm wait.go
There are two writes yet only one read on a non-buffered channel that is
created locally and not passed anywhere else.

Therefore, it could leak one of its two spawned Goroutines if either:
* The provided `f` takes longer than an erroneous result from
  `waiter.WaitForHealthyKubelet`, or;
* The provided `f` completes before an erroneous result from
  `waiter.WaitForHealthyKubelet`.

The fix is to add a one-element buffer so that the channel write happens
for the second Goroutine in these cases, allowing it to finish and freeing
references to the now-buffered channel, letting it to be GC'd.
2019-11-08 21:05:19 +00:00
Wei Huang
b6b92b6075
Update test logic to simulate NodeReady/False and NodeReady/Unknown events correctly
- optimize code to use one loop to spin up goroutines
- add `defer cleanupTest()` to avoid goroutine leaks
- use only one heartbeat channel
2019-11-08 12:41:47 -08:00
Kubernetes Prow Robot
8b123b1f4f
Merge pull request #81423 from codenrhoden/mount-testing-pkg
Refactor mount fakes
2019-11-08 12:24:52 -08:00
Kenichi Omichi
94211f1839 Move functions from e2e framework util.go
The following functions are called at some specific places only,
so this moves these functions to the places and makes them local.

- WaitForPersistentVolumeClaimDeleted: Moved to e2e storage
- PrintSummaries: Moved to e2e framework.go
- GetHostExternalAddress: Moved to e2e node
- WaitForMasters: Moved to e2e cloud gcp
- WaitForApiserverUp: Moved to e2e network
- WaitForKubeletUp: Moved to e2e storage vsphere
2019-11-08 19:25:16 +00:00
Kenichi Omichi
1b165fc440 Enable verify-import-aliases check in CI
To block violation of import-aliases rule, this enables
verify-import-aliases in CI system.
2019-11-08 19:17:39 +00:00
Kubernetes Prow Robot
bef8d426f2
Merge pull request #84989 from wojtek-t/autogenerate_v2beta2_conversion
Autogenerate autoscaling/v2beta2 conversions
2019-11-08 10:13:01 -08:00
Kubernetes Prow Robot
15f586a6c1
Merge pull request #84963 from liggitt/feature-json-codes
Fix json patch limit check
2019-11-08 10:12:51 -08:00
David Eads
675c2fb924 add featuregate inspection as admission plugin initializer 2019-11-08 13:07:40 -05:00
Tim Allclair
dca464d80a Add error detail 2019-11-08 09:59:04 -08:00
Kenichi Omichi
5381f74641 Remove unused function from e2e framework util.go
The util.go file is so huge, it is better to make it small and simple
as possible for the maintenance.
This removes the following unused function:

- WaitForNodeHasTaintOrNot: Unused since 7e1794dcb1
2019-11-08 17:47:28 +00:00
John Howard
d00794ca60 Add appProtocol to EndpointSlice.Port 2019-11-08 09:22:50 -08:00
Kubernetes Prow Robot
ed3cc6afea
Merge pull request #84988 from ahg-g/ahg-stablecluster
Revert changes to WaitForStableCluster in scheduler e2e test
2019-11-08 09:01:07 -08:00
Kubernetes Prow Robot
ff4718ea15
Merge pull request #84983 from krzysied/docker_fake_client_fix3
Fixing docker fake client - InspectExec
2019-11-08 09:00:50 -08:00
Kubernetes Prow Robot
f0184f0921
Merge pull request #84933 from krzysied/node_controller_v_level
Bumping up log level for not updated node
2019-11-08 09:00:40 -08:00
Kubernetes Prow Robot
ab1b374dd9
Merge pull request #84523 from rajansandeep/skipmigration
Retain CoreDNS corefile when migration fails in kubeadm
2019-11-08 09:00:29 -08:00
Kubernetes Prow Robot
ae15368355
Merge pull request #84351 from wojtek-t/promote_node_lease_to_GA
Promote node lease to GA
2019-11-08 09:00:15 -08:00
Aldo Culquicondor
efe9392d0b Remove leftover factory directory
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-11-08 11:45:36 -05:00
Andrew Sy Kim
560b8efb79 noderestriction: update node restriction unit tests to use stable instance-type label
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 11:17:58 -05:00
Maciej Szulik
626b9081fb
Set TypeSetter in get print flags, like we do everywhere else 2019-11-08 17:02:41 +01:00
Andrew Sy Kim
094b614934 scheduler: max attachable volume predicate should also check stable instance-type label
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:52:12 -05:00
Andrew Sy Kim
55e40b8dc1 cloud node controller: apply stable instance-type label with backfill to existing nodes
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:50:52 -05:00
Andrew Sy Kim
17d8928dc9 kubelet: add unit tests for backfilling stable os/arch/zone/region/instance-type labels
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:43:50 -05:00
Andrew Sy Kim
7ddedf5034 kubelet: apply both beta and stable instance-type label
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:29:45 -05:00
Andrew Sy Kim
d42130fdcd api/core/v1: add stable node instance-type label
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:14:36 -05:00
Travis Rhoden
1fd8921546
Move mount/fake.go to mount/fake_mount.go
This patch moves fake.go to mount_fake.go, and follows to principle of
always returning a discrete type rather than an Interface. All callers
of "FakeMounter" are changed to instead use "NewFakeMounter()". The
FakeMounter "Log" struct member is changed to not be exported, and
instead only access through a new "GetLog()" method.
2019-11-08 08:07:41 -07:00
Travis Rhoden
47dc1d6af1
move exec files back 2019-11-08 08:04:33 -07:00
Travis Rhoden
1f651f5072
copy exec file to preserve history 2019-11-08 08:04:32 -07:00
Ted Yu
e304975ecc Move password retrieval to openstack_test.go 2019-11-08 07:01:41 -08:00
Kubernetes Prow Robot
5cc945ad0d
Merge pull request #84006 from yutedz/k-ctrl-del-msg
Traverse resources before giving no name error
2019-11-08 06:12:27 -08:00
Kubernetes Prow Robot
81953bb4b4
Merge pull request #78676 from i02sopop/kubectl_optimizations
Do some Kubectl optimizations suggested by the golangci linter
2019-11-08 06:12:14 -08:00
Jordan Liggitt
470dfbfc48 Remove json-iterator depth patch 2019-11-08 09:09:48 -05:00
Jordan Liggitt
e323279ab9 bump github.com/json-iterator/go v1.1.8 2019-11-08 09:09:48 -05:00
wojtekt
90c9bad944 Autogenerated 2019-11-08 14:44:05 +01:00
wojtekt
8def73aac8 Correctly autogenerate conversions for autoscaling v2beta2 2019-11-08 14:42:16 +01:00
Kubernetes Prow Robot
51f4b5300f
Merge pull request #84773 from mm4tt/kubemark_cost_savings
Add envs for configuring hollow-node resource usage.
2019-11-08 05:00:13 -08:00
Abdullah Gharaibeh
f4e4fb1fc8 Revert changes to WaitForStableCluster in scheduler e2e test 2019-11-08 07:56:10 -05:00
RainbowMango
159f56bf9b Deal with auto-generated files.
Update bazel by hack/update-bazel.sh
2019-11-08 20:21:48 +08:00
RainbowMango
2e8dcf7809 Migrate custom collector and mark metrics with ALPHA. 2019-11-08 20:19:37 +08:00