Commit Graph

91007 Commits

Author SHA1 Message Date
Tim Hockin
7cbef7b26f Fix truncated logfile in verify-vendor
Writing to /dev/stderr causes a new FD to be opened.  If this is a
literal file, that file can get truncated.  `>&2` does not suffer the
same problem.
2020-05-07 21:49:06 -07:00
Tim Hockin
04c2b1fbdc Purge almost all memories of godep 2020-05-07 21:49:00 -07:00
Tim Hockin
fad9e0650a Generate new LICENSES tree with revised scripts 2020-05-07 21:49:00 -07:00
Tim Hockin
325ea6e3c2 Restructure licenses again (revert cd4474a)
This moves licenses of vendored code from one monolith file into a tree
of individual files for easier reviews.  This fixes both the bash and
bazel paths.
2020-05-07 21:48:59 -07:00
Xianglin Gao
a169305207 kubeadm: add pull images check in upgrade apply and upgrade node
Signed-off-by: Xianglin Gao <xianglin.gxl@alibaba-inc.com>
2020-05-08 12:42:54 +08:00
Tim Hockin
9213616a23 Add better debug when GCE cluster turnups fail 2020-05-07 19:43:32 -07:00
Kubernetes Prow Robot
87e5d4e4de
Merge pull request #90630 from nilo19/cleanup/add-import-restrictions-to-ccm
Add .import-restrictions file to cmd/cloud-controller-manager
2020-05-07 17:19:42 -07:00
cici37
399b6b50f0 Remove //pkg/api/legacyscheme from CCM 2020-05-07 16:36:14 -07:00
Wei Huang
fc11871c61
test: Use dedicated informerFactory for node lifecycle controller 2020-05-07 15:01:55 -07:00
mattjmcnaughton
49fc82f7ab
Ensure we only run the cadvisor/docker init in !dockerless
We do not want to run the `cadvisor/docker` init when we are using the
dockerless build tags. We can ensure this by isolating into a separate
file with the proper build tag constraints.
2020-05-07 17:18:51 -04:00
mattjmcnaughton
29fa1f4566
Fix the verify job
Small changes to fix the verify job. Add the proper headers, fix lint
errors, etc...
2020-05-07 17:18:50 -04:00
mattjmcnaughton
4a8da5e7b4
Add typecheck-dockerless
Ensure that k8s still passes the typecheck when the `dockerless` tag is
enabled. We perform a similar verify step for `providerless`.
2020-05-07 17:18:50 -04:00
mattjmcnaughton
b36f637f0d
Add dockerless tags to all files in dockershim
As the final step, add the `dockerless` tags to all files in the
dockershim. Using `-tags=dockerless` in `go build`, we can compile
kubelet without the dockershim.

Once cadvisor no longer depends on `docker/docker`, compiling with
`-tags=dockerless` should be sufficient to compile the Kubelet w/o a
dependency on `docker/docker`.
2020-05-07 17:18:50 -04:00
mattjmcnaughton
7fb6c51822
Move DockerLegacyService interface out of pkg/kubelet/dockershim
DockerLegacyService interface is used throughout `pkg/kubelet`.
It used to live in the `pkg/kubelet/dockershim` package. While we
would eventually like to remove it entirely, we need to give users some form
of warning.

By including the interface in
`pkg/kubelet/legacy/logs.go`, we ensure the interface is
available to `pkg/kubelet`, even when we are building with the `dockerless`
tag (i.e. not compiling the dockershim).
While the interface always exists, there will be no implementations of the
interface when building with the `dockerless` tag. The lack of
implementations should not be an issue, as we only expect `pkg/kubelet` code
to need an implementation of the `DockerLegacyService` when we are using
docker. If we are using docker, but building with the `dockerless` tag, than
this will be just one of many things that breaks.

`pkg/kubelet/legacy` might not be the best name for the package... I'm
very open to finding a different package name or even an already
existing package.
2020-05-07 17:18:49 -04:00
mattjmcnaughton
34c8f51dcb
Remove all uses of dockershim from cmd/kubelet
We can remove all uses of `dockershim` from `cmd/kubelet`, by just
passing the docker options to the kubelet in their pure form, instead of
using them to create a `dockerClientConfig` (which is defined in
dockershim). We can then construct the `dockerClientConfig` only when we
actually need it.
2020-05-07 17:18:49 -04:00
mattjmcnaughton
e0e6d54cdf
Extract running Dockershim into own file
Extract a `runDockershim` function into a file outside of `kubelet.go`.
We can use build tags to compile two separate functions... one which
actually runs dockershim and one that is a no-op.
2020-05-07 17:18:48 -04:00
mattjmcnaughton
53adde65ce
Remove ExperimentalDockershim from kubelet
Remove one of two uses of Dockershim in `cmd/kubelet`. The other is for
creating a docker client which we pass to the Kubelet... we will handle
that refactor in a separate diff.

I'm fairly confident, though need to double check, that no one is
actually using this experimental dockershim behavior. If they are, I
think we will want to find a new way to support it (that doesn't require
using the Kubelet only to launch Dockershim).
2020-05-07 17:18:48 -04:00
Kubernetes Prow Robot
eec809aa93
Merge pull request #90779 from thockin/umask-for-builds
Set umask 0022 when building
2020-05-07 14:01:57 -07:00
Kubernetes Prow Robot
b24eba019d
Merge pull request #90563 from cici37/traint
Copy RemoveTaintOffNode logic to k8s.io/cloud-provider
2020-05-07 14:01:42 -07:00
Davanum Srinivas
8fa567264e
Update build/go-runner/Makefile
Co-authored-by: Stephen Augustus <justaugustus@users.noreply.github.com>
2020-05-07 13:54:47 -04:00
Davanum Srinivas
a7b1cec617
Bump version for go-runner
Ran into trouble with image promotion. trying it again

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-07 13:47:20 -04:00
Mike Danese
652a48d2e7 wire up proxier in spdy transport
and delete useless function
2020-05-07 09:13:58 -07:00
Mike Danese
f3f666d5f1 rest.Config: support configuring an explict proxy URL
With support of http, https, and socks5 proxy support. We already
support configuring this via environmnet variables, but this approach
becomes inconvenient dealing with multiple clusters on different
networks, that require different proxies to connect to. Most solutions
require wrapping clients (like kubectl) in bash scripts.

Part of: https://github.com/kubernetes/client-go/issues/351
2020-05-07 09:12:26 -07:00
Kubernetes Prow Robot
af67408c17
Merge pull request #90818 from wojtek-t/fix_retry_watcher
Request for bookmarks in RetryWatcher
2020-05-07 07:35:29 -07:00
Kubernetes Prow Robot
c5be566b14
Merge pull request #90707 from jherrera123/fix-issue-88132
Make flexvolume e2e tests runnable again.
2020-05-07 07:35:15 -07:00
Maciej Szulik
25507e8c3a
Provide more verbose empty config error for all config load actions 2020-05-07 15:57:00 +02:00
Clayton Coleman
3c9959a5d4
netexec: Allow graceful shutdown testing from netexec
The current /exit method is not sufficient to test graceful shutdown
behaviors within Kube that allow services to remain available during
rolling restarts. Add support for `wait=DURATION` and
`timeout=DURATION` to the exit handler and wire that to the Go http
server's graceful termination.

With these methods netexec can be used in a pod to simulate graceful
shutdown by adding a preStop handler that hits the exit endpoint with
a timeout and wait period.
2020-05-07 09:18:27 -04:00
Rostislav M. Georgiev
b46259b7af kubeadm: Move IPv6DualStack feature gate to component config
kubeadm is setting the IPv6DualStack feature gate in the command line of the kubelet.
However, the kubelet is gradually moving away from command line flags towards component config use.
Hence, we should set the IPv6DualStack feature gate in the component config instead.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2020-05-07 14:28:07 +03:00
Kubernetes Prow Robot
9f76518c40
Merge pull request #90804 from dims/new-go-runner-image-for-distroless
New go-runner image for distroless scenarios
2020-05-07 03:03:08 -07:00
t-qini
991aadab42 Fix the flaky test for azure vmss. 2020-05-07 17:28:08 +08:00
wojtekt
7a65760f6e Request for bookmarks in RetryWatcher 2020-05-07 10:26:28 +02:00
Kubernetes Prow Robot
be02fe5785
Merge pull request #90782 from justaugustus/base-images
base-images: Use new debian-iptables:v12.1.0
2020-05-06 22:23:22 -07:00
Kubernetes Prow Robot
7f78048594
Merge pull request #90781 from msau42/increase-timeout
Increase timeout waiting for driver to start on nodes
2020-05-06 22:23:08 -07:00
Gaurav Singh
37458b350e Fix date race in storage 2020-05-06 22:57:08 -04:00
Gaurav Singh
254a21b66e Apimachinery test: Fix date race 2020-05-06 22:50:00 -04:00
Davanum Srinivas
393e0952e9
New go-runner image for distroless scenarios
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-06 21:29:46 -04:00
Kubernetes Prow Robot
b144eec878
Merge pull request #90778 from msau42/update-mock
Update sidecars for csi mock driver
2020-05-06 17:57:08 -07:00
Walter Fender
339918d206 Add admin account on master for kube-up
Creates a master local admin account.
If you are on the master you can now run kubectl.
For issue 87481.
2020-05-06 17:19:58 -07:00
Aldo Culquicondor
2935480cc8 Move Plugin Args defaults to versioned packages
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-06 18:00:23 -04:00
Anago GCB
8c4e3faed3 CHANGELOG: Update directory for v1.15.12 release 2020-05-06 20:40:38 +00:00
Kubernetes Prow Robot
3416442e4b
Merge pull request #90644 from tanjunchen/remove-controller-dependency
test/e2e/framework:remove the direct dependency for k8s.io/kubernetes/pkg
2020-05-06 11:47:12 -07:00
Stephen Augustus
8e8a1a4038 build: Update guidance for updating base image tags and digests
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-05-06 13:38:19 -04:00
Aldo Culquicondor
883e4860d3 Clarify usage of MaxSkew and WheUnsatisfiable
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-06 13:15:51 -04:00
Kubernetes Prow Robot
0a6c826d3e
Merge pull request #90715 from jsafrane/gluster-ignore-notfound
Ignore NotFound error when cleaning up Gluster tests
2020-05-06 05:25:09 -07:00
Danil-Grigorev
9770574aa6 Ensure the server FQIN is stored and searched in lowercase (vsphere) 2020-05-06 12:09:03 +02:00
Kubernetes Prow Robot
c30da3839c
Merge pull request #90148 from deads2k/force-beta-to-have-tags
enforce prerelease-lifecycle generation for beta APIs
2020-05-06 01:19:08 -07:00
Xianglin Gao
6c6a702a99 kubeadm: delete prepull ds
Signed-off-by: Xianglin Gao <xianglin.gxl@alibaba-inc.com>
2020-05-06 15:52:19 +08:00
Kubernetes Prow Robot
4d813c1360
Merge pull request #90749 from andyzhangx/dangling-error
fix: azure disk dangling attach issue on VMSS which would cause API throttling
2020-05-05 23:43:09 -07:00
Stephen Augustus
aa79da2696 deps: Update dependents to use debian-iptables:v12.1.0
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-05-06 01:14:01 -04:00
Kubernetes Prow Robot
fecc66aa1f
Merge pull request #90755 from Huang-Wei/refine-schedQueue-test
Refine schedulerQueue test to avoid unneeded locks
2020-05-05 20:03:22 -07:00