Commit Graph

74640 Commits (d8f014613865955b7e4ce6fefbf38a3c8fe97971)

Author SHA1 Message Date
Dr. Stefan Schimanski 749d98c2a8 kube-aggregator: split openapi spec aggregator from controller code 2019-02-12 12:48:11 +01:00
Dr. Stefan Schimanski 57d0f9d972 restmapper: add GetAPIGroupResources tests 2019-02-12 12:32:57 +01:00
Anago GCB 3c2a4f0362 Update CHANGELOG-1.14.md for v1.14.0-alpha.3. 2019-02-12 10:56:09 +00:00
SataQiu ab9709ff70 kubeadm cleanup: master -> control-plane 2019-02-12 17:31:35 +08:00
Rostislav M. Georgiev 0dfc1d6ded kubeadm: Don't dump backtrace on reset
The current code logs an error and full blown backtrace if we fail to remove
the containers upon reset. This creates unneeded, huge and rather scary log
message. Fix that by leaving just the error message.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-02-12 11:24:11 +02:00
Patrick Ohly ecc0c4e4b4 e2e/storage: enable concurrent writes for gcepd
The driver should support multiple pods using the same volume on the
same node.
2019-02-12 09:21:50 +01:00
Patrick Ohly 03d352f7aa e2e/storage: test usage of volume in multiple pods at once
This is a special case that both kubelet and the volume driver should
support, because users might expect it. One Kubernetes mechanism to
deploy pods like this is via pod affinity.

However, strictly speaking the CSI spec does not allow this usage
mode (see https://github.com/container-storage-interface/spec/pull/150) and
there is an on-going debate to enable it (see
https://github.com/container-storage-interface/spec/issues/178). Therefore
this test gets skipped unless explicitly enabled for a driver.

CSI drivers which create a block device for a remote volume in
NodePublishVolume fail this test. They have to make the volume
available in NodeStageVolume and then in NodePublishVolume merely do a
bind mount (as for example in
https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/blob/master/pkg/gce-pd-csi-driver/node.go#L150).
2019-02-12 09:21:50 +01:00
Patrick Ohly ca42cf4993 e2e/storage: test provisioned volume on multiple nodes
Whether the read test after writing was done on the same node was
random for drivers that weren't locked onto a single node. Now it is
deterministic: it always happens on the same node.

The case with reading on another node is covered separately for test
configurations that support it (not locked onto a single node, more
than one node in the test cluster).

As before, the TestConfig.ClientNodeSelector is ignored by the
provisioning testsuite.
2019-02-12 09:21:50 +01:00
Kubernetes Prow Robot a1539747db
Merge pull request #73926 from alculquicondor/fix/kubelet-app-lint
Fix cmd/kubelet/app lint issues
2019-02-12 00:19:06 -08:00
Kubernetes Prow Robot cdd235b4fb
Merge pull request #73526 from AdamDang/patch-22
Update postprocessing_test.go
2019-02-12 00:18:51 -08:00
Matt Matejczyk 7141ece4bf Start exporting the in-cluster network programming latency metric. 2019-02-12 08:09:59 +01:00
pontiyaraja 6d7a707320 Test case for shared volumes between the containers in pod 2019-02-12 12:26:43 +05:30
Kubernetes Prow Robot 0480214903
Merge pull request #73804 from Random-Liu/remove-unused-functions
Remove unused function from the legacy runtime interface.
2019-02-11 22:56:00 -08:00
Kubernetes Prow Robot aa00afe231
Merge pull request #73649 from ojmhetar/coredns-priorityclass
Add priority class to CoreDNS pods
2019-02-11 22:55:45 -08:00
xichengliudui 5dd26ecab5 Fix function comment to consistent with its name
update pull request

update pull request
2019-02-12 01:37:20 -05:00
Kubernetes Prow Robot f50734399b
Merge pull request #68047 from niuzhenguo/remove-switch-break
Clean up unneeded break in switch
2019-02-11 21:43:09 -08:00
Kubernetes Prow Robot e69c735b9e
Merge pull request #73935 from yujuhong/fix-node-platform
Fix setting NODE_ARCH and NODE_PLATFORM
2019-02-11 19:58:39 -08:00
Kubernetes Prow Robot 34e523f188
Merge pull request #73860 from msau42/owners
add msau42 to approvers for volume e2es
2019-02-11 19:58:29 -08:00
Kubernetes Prow Robot c2d88db834
Merge pull request #73582 from AdamDang/patch-24
Improve the ipvs/README.md
2019-02-11 19:58:19 -08:00
Kubernetes Prow Robot c9964aa519
Merge pull request #73342 from szuecs/fix/period-not-reset-if-gate-not-set
cpuPeriod was not reset
2019-02-11 19:58:07 -08:00
Kubernetes Prow Robot 73dc138cae
Merge pull request #73256 from deitch/doc-kubelet-nodename
Update kubelet overview help doc
2019-02-11 19:57:56 -08:00
Lubomir I. Ivanov 76ed5568c3 update the dependency pmezard/go-difflib
A fmt.Sprintf() bug was fixed upstream.
Use the latest SHA from upstream.
2019-02-12 04:08:31 +02:00
Yecheng Fu 00a7fc3208 Wait for first pod to termiante in local pv test
local plugin will skip setting fsGroup if volume is mounted by other pods
2019-02-12 09:55:49 +08:00
Kubernetes Prow Robot 0ae81c986a
Merge pull request #67678 from caesarxuchao/remove-storage-versions-flag
Remove storage versions flag
2019-02-11 17:40:27 -08:00
Jingfang Liu 8d6ab20753 add kustomize as a subcommand in kubectl 2019-02-11 16:43:57 -08:00
Jingfang Liu 0433a30fb8 add function to run kustomize build 2019-02-11 16:43:36 -08:00
Jingfang Liu 74a64a9f3d copy kustomize/k8sdeps into cli-runtime 2019-02-11 16:42:41 -08:00
Bobby (Babak) Salamat ec0739bd03 Fix races in scheduling queue tests 2019-02-11 16:38:26 -08:00
Kubernetes Prow Robot ee734d0543
Merge pull request #73932 from dims/cleanup-unnecessary-packages-from-import-restrictions
Remove unnecessary prefixes from various .import-restrictions files
2019-02-11 16:24:17 -08:00
Kubernetes Prow Robot 126bb3b8ec
Merge pull request #67630 from houjun41544/20180820
Check for pvcVolume with IsOperationPending() before markPVCResizeInProgress()
2019-02-11 16:24:06 -08:00
Chao Xu 4ea07084dd Simplify the resource_encoding_config.go, since we don't need per group override at all 2019-02-11 15:09:16 -08:00
Elijah Oyekunle 805a9e7036 Fixes Golint Errors: staging/src/k8s.io/kube-aggregator (#73369)
* fixed golint errors in staging/src/k8s.io/kube-aggregator

* update openapi

* unexported autoRegisterController
2019-02-11 14:16:05 -08:00
Jingfang Liu 23a9b0c239 vendor kustomize 2019-02-11 14:15:24 -08:00
Kevin Wiesmüller 9082cac482 strip selected fields from managedFields
refactor fieldstrip and update tests

add checks and remove empty fields

shorten test and check for nil manager

fix gofmt

panic on nil manager
2019-02-11 23:10:57 +01:00
Yu-Ju Hong 1bba009689 Fix setting NODE_ARCH and NODE_PLATFORM 2019-02-11 13:55:44 -08:00
Davanum Srinivas 1d430a4a73
Remove unnecessary prefixes from various .import-restrictions files
Found using script:
https://gist.github.com/dims/384dea60754042f61d79233603034038

Just run using:
`find . -name .import-restrictions | xargs python ~/junk/sanitize-import-boss.py`

The removed entries are either packages that got moved/renamed/deleted
but are still not cleaned up from .import-restrictions files.

Change-Id: I92c400f74e6f012cc75539311ed4de280e25e918
2019-02-11 16:47:28 -05:00
Chao Xu 27166e48b8 Loosing the request body size limit to 100MB to account for the size
ratio between json and protobuf.
2019-02-11 11:32:11 -08:00
Kubernetes Prow Robot f7c4389b79
Merge pull request #73877 from droslean/nits
apis:core:validation: remove unused, changes to idiomatic go
2019-02-11 10:31:06 -08:00
Kubernetes Prow Robot 6912bbb153
Merge pull request #71223 from sttts/sttts-openapi-aggreation-without-clone
openapi-aggregation: speed up merging from 1 sec to 50-100 ms
2019-02-11 10:30:56 -08:00
Aldo Culquicondor 17a635448a Fix cmd/kubelet/app lint issues 2019-02-11 13:18:25 -05:00
Kubernetes Prow Robot 986399b890
Merge pull request #73899 from dims/update-import-restrictions-cloud-provider
cleanup .import-restrictions for cloud provider
2019-02-11 08:49:20 -08:00
Kubernetes Prow Robot 1e6afac07c
Merge pull request #73701 from rosti/refactor-initcfg-apis
kubeadm: Refactor InitConfiguration init APIs
2019-02-11 08:49:05 -08:00
Kubernetes Prow Robot 836db5c90e
Merge pull request #73893 from neolit123/placeholder-docs
generated_files: remove line about /docs/.generated_docs (fix PR size plugin)
2019-02-11 06:41:12 -08:00
Kubernetes Prow Robot 6671d2556f
Merge pull request #73912 from JoeWrightss/patch-3
Fix fmt.Sprintf error message
2019-02-11 05:15:11 -08:00
Rostislav M. Georgiev 51197e4393 kubeadm: Refactor InitConfiguration init APIs
Currently ConfigFileAndDefaultsToInternalConfig and
FetchConfigFromFileOrCluster are used to default and load InitConfiguration
from file or cluster. These two APIs do a couple of completely separate things
depending on how they were invoked. In the case of

ConfigFileAndDefaultsToInternalConfig, an InitConfiguration could be either
defaulted with external override parameters, or loaded from file.
With FetchConfigFromFileOrCluster an InitConfiguration is either loaded from
file or from the config map in the cluster.

The two share both some functionality, but not enough code. They are also quite
difficult to use and sometimes even error prone.

To solve the issues, the following steps were taken:

- Introduce DefaultedInitConfiguration which returns defaulted version agnostic
  InitConfiguration. The function takes InitConfiguration for overriding the
  defaults.

- Introduce LoadInitConfigurationFromFile, which loads, converts, validates and
  defaults an InitConfiguration from file.

- Introduce FetchInitConfigurationFromCluster that fetches InitConfiguration
  from the config map.

- Reduce, when possible, the usage of ConfigFileAndDefaultsToInternalConfig by
  replacing it with DefaultedInitConfiguration or LoadInitConfigurationFromFile
  invocations.

- Replace all usages of FetchConfigFromFileOrCluster with calls to
  LoadInitConfigurationFromFile or FetchInitConfigurationFromCluster.

- Delete FetchConfigFromFileOrCluster as it's no longer used.

- Rename ConfigFileAndDefaultsToInternalConfig to
  LoadOrDefaultInitConfiguration in order to better describe what the function
  is actually doing.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-02-11 14:45:34 +02:00
Dr. Stefan Schimanski 233178eec6 Update staging godeps 2019-02-11 13:16:37 +01:00
Dr. Stefan Schimanski f488ed4b82 openapi: add spec roundtrip test 2019-02-11 13:16:37 +01:00
Dr. Stefan Schimanski 8da9b50ebf apiextensions: use canonical empty OpenAPI type 2019-02-11 13:16:37 +01:00
Dr. Stefan Schimanski e67d5f2d8d apiserver: fix openapi extension types to be JSON 2019-02-11 13:16:37 +01:00
Dr. Stefan Schimanski 01bc4eff0e openapi-aggregation: merge without clones 2019-02-11 13:16:37 +01:00