Commit Graph

4882 Commits (e1af0c5fb150ecabc82acf08fe3af85d89af4344)

Author SHA1 Message Date
k8s-ci-robot 43ce5fbf41
Merge pull request #69125 from caesarxuchao/fix-dynamic-empty-scheme
Populates the fake dynamic client scheme
2018-10-01 20:02:15 -07:00
k8s-ci-robot 577e06e0b8
Merge pull request #69222 from SataQiu/fix-2018092805
fix typo
2018-10-01 04:40:34 -07:00
k8s-ci-robot 2a3c8d580c
Merge pull request #68678 from deads2k/agg-01-availability
tighten maximum retry loop for aggregate api availability
2018-10-01 02:45:31 -07:00
Davanum Srinivas d222c310aa
Add missing step to in-cluster-client-configuration example
If the permissions are not setup correctly the example fails.

Change-Id: I167ef68be66f8b56740236ae475c3b7fdcc0dfb5
2018-09-30 18:04:30 -04:00
k8s-ci-robot c526f09700
Merge pull request #69018 from gorilla001/f3
remove extraneous local variable usage in newETCD3Client
2018-09-30 00:44:24 -07:00
William Zhang c8f97231f8 Fix test name: s/overriden/overridden
Signed-off-by: William Zhang <zhang.wanmin@zte.com.cn>
2018-09-30 08:54:43 +08:00
k8s-ci-robot 6e52a05f44
Merge pull request #63498 from zioproto/patch-1
fix typo
2018-09-29 16:31:52 -07:00
SataQiu 94a653f100 fix typo 2018-09-28 23:41:24 +08:00
k8s-ci-robot 2e357e39c8
Merge pull request #69035 from dmathieu/fake-eviction
Set api version and action name in fake evictions
2018-09-28 01:56:38 -07:00
k8s-ci-robot 6b49423a8e
Merge pull request #68585 from immutableT/blocking-kms-plugin-connect
kube-apiserver should wait/block for kms-plugin to start.
2018-09-27 22:31:28 -07:00
immutablet 07cbf2545f Lazily dial kms-plugin. 2018-09-27 09:12:31 -07:00
k8s-ci-robot b25bf81573
Merge pull request #69044 from enj/enj/i/gv_remove_pointers
Remove pointer receivers from schema structs
2018-09-27 07:18:40 -07:00
k8s-ci-robot 0064c6f542
Merge pull request #68983 from dims/fix-man-pages-to-build-reproducibly
Fix for man pages do not build reproducibly
2018-09-27 04:48:39 -07:00
k8s-ci-robot 8a209b78e2
Merge pull request #68943 from nikhita/new-staging-repo-guidelines
Add guidelines for creating new staging repos
2018-09-27 01:18:56 -07:00
k8s-ci-robot 3fe21e5433
Merge pull request #68922 from BenTheElder/version-staging
move pkg/util/version to staging
2018-09-26 22:59:42 -07:00
k8s-ci-robot 66b956e93b
Merge pull request #68866 from tanshanshan/error_fix_its
fix syntax error:'its'
2018-09-26 20:37:19 -07:00
Chao Xu db20e16b87 Populates the fake dynamic client scheme 2018-09-26 18:32:49 -07:00
k8s-ci-robot 3611c5c498
Merge pull request #68850 from mikedanese/oidc
oidc: respect the legacy goog issuer
2018-09-26 18:11:14 -07:00
tanshanshan 3de8767dc6 fix some golint in staging/src/k8s.io/apiserver/pkg/admission/plugin/ 2018-09-27 08:49:06 +08:00
k8s-ci-robot 23baf579c8
Merge pull request #68748 from p0lyn0mial/dynamic_lister_informer
adds dynamic lister
2018-09-26 15:53:28 -07:00
k8s-ci-robot 109b67c291
Merge pull request #66516 from tallclair/redirect
Add verification to apiserver redirect following
2018-09-26 15:53:09 -07:00
James Sturtevant 93d8a53c12 Fix code generation by adding missing parameter
The code generation for fake types was missing the subresource path
parameter in the template which caused a compile error for the
sample projects using the scale subresource.  Also re-ran the code
generation after applying the fix.
2018-09-26 10:59:16 -07:00
James Sturtevant 798bd34090 Re-enable smoke tests in verify-codegen script
The smoke tests were not being run for the example projects.  Re-enabled
the smoke tests by building each of the sample projects.
2018-09-26 10:59:16 -07:00
James Sturtevant 5d7bd65ae1 Add MixedCase example project 2018-09-26 10:59:16 -07:00
James Sturtevant 4fd1ad69ab Remove lowercasing for project imports
This commit provides a fix for the scenario where a project has an
uppercase letter in the project import path. Prior to this fix
the generated files would end up in different directories with some
of the imports being lower-cased during generation. An example of this would
be a project such as 'github.com/MixedCase/project' would result in
some of the imports with 'github.com/mixedcase/project' causing a broken
build.
2018-09-26 10:59:16 -07:00
Monis Khan ad87465e2f
Remove pointer receivers from schema structs
This change makes the schema structs consistently use non-pointer
receivers.  This makes it easier to call these methods since these
structs are used as values instead of pointers.

Signed-off-by: Monis Khan <mkhan@redhat.com>
2018-09-26 09:51:29 -04:00
k8s-ci-robot a641e1cba8
Merge pull request #68729 from TinySong/fix-client-go-typos
remove duplicated words in heap.go and interfaces.go
2018-09-25 22:58:03 -07:00
k8s-ci-robot 1b2298cb75
Merge pull request #68709 from krzyzacy/fix-sample-test
fix patch compare in sample-controller test
2018-09-25 22:57:53 -07:00
Tim Allclair 4ee9f007cb
Only allow apiserver to follow redriects to the same host 2018-09-25 17:18:55 -07:00
k8s-ci-robot fbf2d6d73b
Merge pull request #68548 from soltysh/remove_unused
Remove unused fields from YAMLPrinter struct
2018-09-25 12:16:11 -07:00
k8s-ci-robot 48e93c7329
Merge pull request #68346 from CaoShuFeng/400_500
return 400 status when invalid json patch passed to apiserver
2018-09-25 11:03:53 -07:00
Damien Mathieu 4e8a188dad set api version and action name in fake evictions 2018-09-25 15:16:36 +02:00
k8s-ci-robot 9720a734fe
Merge pull request #68262 from TinySong/fix-staging-kube-agggregator-version
update comments of doc.go in stagging/src/k8s.io/kube-aggregator
2018-09-25 06:13:43 -07:00
k8s-ci-robot a67689dfca
Merge pull request #68245 from jingyih/remove_tagName_in_goDoc
*: Remove comment tags in GoDoc
2018-09-25 06:13:23 -07:00
k8s-ci-robot a94ea824eb
Merge pull request #68238 from justinsb/update_reflect2_to_101
Update reflect2 to 1.0.1 (memory utilization fix)
2018-09-25 05:02:43 -07:00
k8s-ci-robot fe4ca268d7
Merge pull request #68215 from tanshanshan/fixtypo
fix error info
2018-09-25 05:02:34 -07:00
k8s-ci-robot 5b864ac971
Merge pull request #68113 from fengzixu/master
Fixes #68026: revise some errors about golint in some packages
2018-09-25 05:02:14 -07:00
k8s-ci-robot 4a627e9008
Merge pull request #67513 from novas0x2a/expose-port
export a method to expose which ports were forwarded
2018-09-25 00:18:20 -07:00
gorilla1024 07fc593dcd minor fix 2018-09-25 10:56:37 +08:00
Benjamin Elder 088cf3c37b find & replace version import 2018-09-24 12:03:24 -07:00
Benjamin Elder e01cb6fe80 hack/update-bazel.sh 2018-09-24 12:00:00 -07:00
Benjamin Elder b22d036cf8 move pkg/util/version into staging 2018-09-24 12:00:00 -07:00
k8s-ci-robot 170dcc2ea0
Merge pull request #68754 from bradhoekstra/optional-service-env-variables
kubelet: Make service environment variables optional
2018-09-24 10:59:32 -07:00
Davanum Srinivas f777715262
Fix for man pages do not build reproducibly
In different distros or environments, we may end up with a different
order of the strings printed during help and man page generation,
So we should sort so the strings in the man pages is the same everytime.

Change-Id: Id8fcbd89336aad8d709ba3adac4b29c808d97ebe
2018-09-22 21:29:50 -04:00
Nikhita Raghunath 4d909ac3be Add guidelines for creating new staging repos 2018-09-22 00:28:38 +05:30
k8s-ci-robot fb50b3cb32
Merge pull request #67793 from fisherxu/use_ctx
Refactor grpc dial with dialcontext
2018-09-20 20:35:36 -07:00
p0lyn0mial 8b43a0005a adds dynamic lister 2018-09-20 23:54:12 +02:00
Mike Danese 1873ad48d0 oidc: respect the legacy goog issuer 2018-09-20 11:01:08 -07:00
tanshanshan 7dfe0dae64 fix syntax error:'its' 2018-09-20 09:45:46 +08:00
k8s-ci-robot cdadc117e1
Merge pull request #68795 from damemi/custom-metrics-conversion-fix
Update custom metrics conversion functions
2018-09-19 11:35:02 -07:00
k8s-ci-robot 259a59d936
Merge pull request #68790 from nikhita/client-go-install.md
Move INSTALL.md from k8s.io/client-go to staging
2018-09-19 06:22:14 -07:00
k8s-ci-robot 9228bec334
Merge pull request #68579 from verult/adc-crd-access
Updating CSI e2e test to create CSI CRDs
2018-09-19 02:00:30 -07:00
Cheng Xing 4ff1e32974 Updating CSI e2e test to create CSI CRDs; storing CRD spec in a common location 2018-09-18 14:25:00 -07:00
Mike Dame 429fe2ab73 Update custom metrics conversion functions 2018-09-18 11:36:26 -04:00
Nikhita Raghunath 331ae66491 Move INSTALL.md from k8s.io/client-go to staging 2018-09-18 20:56:53 +05:30
k8s-ci-robot f4c4ae1837
Merge pull request #68268 from stantonxu/stagingreadme
master/staging/README.md update
2018-09-17 18:03:55 -07:00
Brad Hoekstra ac8799a80d kubelet: Make service environment variables optional 2018-09-17 16:27:36 -04:00
k8s-ci-robot 817d420d68
Merge pull request #68530 from wenjiaswe/68115
Rewrite finalURLTemplate used only for metrics because of dynamic client change
2018-09-17 11:38:56 -07:00
song dd4a8f9cab remove duplicated words in heap.go and interfaces.go 2018-09-17 18:00:19 +08:00
Sen Lu 6e40cd846c fix patch compare in test 2018-09-14 22:48:49 -07:00
Mike Spreitzer a5a888510d Fixed registration of the BanFlunder AdmissionController 2018-09-14 23:11:54 -04:00
Wenjia Zhang 99248b8fe1 Rewrite finalURLTemplate used only for metrics because of dynamic client change 2018-09-14 11:31:21 -07:00
David Eads ed6b5a77df tighten maximum retry loop for aggregate api availability 2018-09-14 11:24:12 -04:00
David Eads 5d46ff41d8 allow audit policy to be loaded from any byte source 2018-09-14 09:03:16 -04:00
k8s-ci-robot c04fe8c27c
Merge pull request #66314 from jlowdermilk/cmdtokensource-reset
gcp client auth plugin: persist default cache on unauthorized
2018-09-14 00:49:21 -07:00
Jingyi Hu 61117761cd *: Remove comment tags in GoDoc
Adding blank line between comment tag and package name in doc.go. So
that the comment tags such as '+k8s:deepcopy-gen=package' do not show up
in GoDoc.
2018-09-13 20:27:32 -07:00
k8s-ci-robot fe72bd20b5
Merge pull request #68584 from jennybuckley/dry-run-errors
Fix typo in dry-run feature disabled error
2018-09-13 13:45:05 -07:00
Xing Yang 897e3c8d11 Add generated files 2018-09-12 17:34:51 -07:00
Xing Yang 6ec1ebd6ce Make APIGroup optional and modify validation 2018-09-12 17:05:29 -07:00
k8s-ci-robot 9cf822183f
Merge pull request #68442 from CaoShuFeng/json-patch
vendor: bump github.com/evanphx/json-patch
2018-09-12 15:05:03 -07:00
jennybuckley 5253c7f414 fix typo in dry run disabled error 2018-09-12 14:43:18 -07:00
Maciej Szulik 9fa7f46673
Remove unused fields from YAMLPrinter struct 2018-09-12 10:29:18 +02:00
Cao Shufeng 1248f56991 return 400 status when invalid json patch passed to apiserver 2018-09-12 10:07:14 +08:00
Stanton Xu 18b9ce2875 Add links to the newly created repos.
`cli-runtime`
`kube-controller-manager`
`kube-proxy`
`kube-scheduler`
`kubelet`
`sample-cli-plugin`
2018-09-11 11:13:51 -07:00
k8s-ci-robot 99f319567a
Merge pull request #68015 from damemi/hpa-metrics-specificity
Support backwards compatibility for v1beta1 custom metrics client
2018-09-10 16:12:23 -07:00
Jeff Lowdermilk 73e5e43711 gcp client auth plugin: persist default cache on unauthorized
The default cache for a cachedTokenSource is not always empty. In the
case of commandTokenSource, it contains calling details for the
external command that is used to generate refresh tokens. Persisting
a completely empty cache will thus break ability for the plugin to
obtain refresh tokens. This changes the roundtripper to persist
the default cache instead of assuming an empty map.
2018-09-10 13:01:47 -07:00
Cao Shufeng 2e974f30ab vendor: bump github.com/evanphx/json-patch
Grab important bug fix that can cause a `panic()` from this package on
certain inputs. See https://github.com/evanphx/json-patch/pull/64
2018-09-10 11:33:02 +08:00
fisherxu 89f3fa3d62 use dailcontext 2018-09-08 16:07:38 +08:00
Kubernetes Submit Queue f26556cc14
Merge pull request #67684 from verult/top-csi-driver-registration
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

CSI Node info registration in kubelet

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #67683

**Special notes for your reviewer**:
Feature issue: https://github.com/kubernetes/features/issues/557
Design doc: https://github.com/kubernetes/community/pull/2034

Missing pieces:
* CSI client retry and exponential backoff logic.
* CSINodeInfo object validation
* e2e test with all the CSI machinery.

An RBAC rule is also added to support external-provisioner topology updates.

**Release note**:

```release-note
Registers volume topology information reported by a node-level Container Storage Interface (CSI) driver. This enables Kubernetes support of CSI topology mechanisms.
```
2018-09-08 00:16:52 -07:00
Brandon Philips 2fbd47da56 vendor: bump github.com/evanphx/json-patch
Grab important bug fix that can cause a `panic()` from this package on
certain inputs. See 73af7f547e

Signed-off-by: Brandon Philips <brandon@ifup.org>
2018-09-07 17:09:13 -07:00
Kubernetes Submit Queue a6eb49f0dc
Merge pull request #68195 from luxas/consolidate_componentconfig_code_standards
Automatic merge from submit-queue (batch tested with PRs 67950, 68195). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Consolidate componentconfig code standards

**What this PR does / why we need it**:

This PR fixes a bunch of very small misalignments in ComponentConfig packages:
 - Add sane comments to all functions/variables in componentconfig `register.go` files
 - Make the `register.go` files of componentconfig pkgs follow the same pattern and not differ from each other like they do today.
 - Register the `openapi-gen` tag in all `doc.go` files where the pkg contains _external_ types.
 - Add the `groupName` tag where missing
 - Fix cases where `addKnownTypes` was registered twice in the `SchemeBuilder`
 - Add `Readme` and `OWNERS` files to `Godeps` directories if missing.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:


**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

/assign @sttts @thockin
2018-09-07 11:19:40 -07:00
Cheng Xing becc6a9c19 Implemented logic in kubelet for registering node info, including wiring to CSINodeInfo; added unit tests for node updates; updated RBAC, NodeAuthorizer, NodeRestriction. 2018-09-06 19:16:51 -07:00
Solly Ross 76bd48b140 Fix up potentially empty fields in HPA v2beta2
There were a few cases where fields that should have been marked optional
were not.  This was causing weird validation issues, but is now fixed.
2018-09-06 15:20:09 -04:00
Mike Dame 364afe4042 Support multiple versions in custom metrics client
This changes the custom metrics client logic over to support multiple versions
of the custom metrics API by checking discovery to find the appropriate versions.

Fixes #68011

Co-authored-by: Solly Ross <sross@redhat.com>
2018-09-06 15:20:00 -04:00
Timothy St. Clair ad2ed0e7df Update default etcd server to 3.2.24 for kubernetes 1.12
Signed-off-by: Timothy St. Clair <timothysc@gmail.com>
2018-09-06 10:24:57 -05:00
Lucas Käldström b9ff23352c
Add missing files to staging repos Godeps folders 2018-09-06 13:42:30 +03:00
Lucas Käldström 83d53ea1c2
Standardize componentconfig code/comment patterns 2018-09-06 13:42:02 +03:00
Kubernetes Submit Queue 2811228dcf
Merge pull request #68147 from timothysc/etcd-3.2-latest
Automatic merge from submit-queue (batch tested with PRs 67691, 68147). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Update etcd client to 3.2.24 for latest release

**What this PR does / why we need it**:
Updates etcd client to 3.2.24 which is the latest in the 3.2 series.  See https://github.com/etcd-io/etcd/blob/master/CHANGELOG-3.2.md for details. 

**Special notes for your reviewer**:
This is only the client, in order to update the server components it requires a googler to push the 3.2.24 image.  

**Release note**:

```
Update etcd client interface to 3.2.24
```

/assign @jpbetz @wojtek-t 
/cc @liggitt @kubernetes/sig-cluster-lifecycle @kubernetes/sig-scalability-pr-reviews
2018-09-05 09:49:34 -07:00
Dr. Stefan Schimanski 04e793e65a apiserver: make InClusterConfig errs for delegated authn/z non-fatal 2018-09-05 09:18:52 +02:00
Dr. Stefan Schimanski 059fce63b7 apiserver: fix misleading delegated authn/z warnings 2018-09-05 09:18:52 +02:00
Kubernetes Submit Queue 2fdd328d05
Merge pull request #67556 from msau42/fix-assume
Automatic merge from submit-queue (batch tested with PRs 67709, 67556). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Fix volume scheduling issue with pod affinity and anti-affinity

**What this PR does / why we need it**:
The previous design of the volume scheduler had volume assume + bind done before pod assume + bind.  This causes issues when trying to evaluate future pods with pod affinity/anti-affinity because the pod has not been assumed while the volumes have been decided.

This PR changes the design so that volume and pod are assumed first, followed by volume and pod binding.  Volume binding waits (asynchronously) for the operations to complete or error. This eliminates the subsequent passes through the scheduler to wait for volume binding to complete (although pod events or resyncs may still cause the pod to run through scheduling while binding is still in progress).   This design also aligns better with the scheduler framework design, so will make it easier to migrate in the future.

Many changes had to be made in the volume scheduler to handle this new design, mostly around:
* How we cache pending binding operations.  Now, any delayed binding PVC that is not fully bound must have a cached binding operation.  This also means bind API updates may be repeated.
* Waiting for the bind operation to fully complete, and detecting failure conditions to abort the bind and retry scheduling.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #65131

**Special notes for your reviewer**:

**Release note**:

```release-note
Fixes issue where pod scheduling may fail when using local PVs and pod affinity and anti-affinity without the default StatefulSet OrderedReady pod management policy
```
2018-09-04 23:19:37 -07:00
Stanton Xu 1ecaa68e00 master/staging/README.md update
Update the staging repo list in README.md file to align with the 
directories under kubernetes/staging/src/k8s.io

Addressing issue https://github.com/kubernetes/kubernetes/issues/68235

Signed-off-by: Stanton Xu <xjiefeng@gmail.com>
2018-09-04 21:43:15 -07:00
Kubernetes Submit Queue 416f63c050
Merge pull request #68159 from saad-ali/csiClusterRegFix
Automatic merge from submit-queue (batch tested with PRs 66840, 68159). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

CSI Cluster Registry and Node Info CRDs Improvements

**What this PR does / why we need it**:
https://github.com/kubernetes/kubernetes/pull/67803 merged before I could address @lavalamp's feedback. This PR addresses his feedback

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Follow up on PR https://github.com/kubernetes/kubernetes/pull/67803

**Special notes for your reviewer**:

**Release note**:

```release-note

```

/assign @lavalamp 
/assign @thockin 

CC @jsafrane @vladimirvivien @verult @gnufied @childsb
2018-09-04 20:49:39 -07:00
Kubernetes Submit Queue c50a347124
Merge pull request #66840 from janetkuo/job-ttl
Automatic merge from submit-queue (batch tested with PRs 66840, 68159). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

TTL for cleaning up Jobs after they finish

**What this PR does / why we need it**: https://github.com/kubernetes/features/issues/592

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #64470 
For https://github.com/kubernetes/features/issues/592

**Special notes for your reviewer**: @kubernetes/sig-apps-pr-reviews 

**Release note**:

```release-note
Add a TTL machenism to clean up Jobs after they finish.
```
2018-09-04 20:49:35 -07:00
Timothy St. Clair 0bb21f647f Update etcd client to 3.2.24 for latest release
Signed-off-by: Timothy St. Clair <timothysc@gmail.com>
2018-09-04 21:39:43 -05:00
song f5d8cde401 update comments of doc.go in stagging/src/k8s.io/kube-aggregator 2018-09-05 10:29:29 +08:00
Justin Santa Barbara 970e4da4c6 Update reflect2 to 1.0.1 (memory utilization fix)
Picking up https://github.com/modern-go/reflect2/pull/2 which lazy
initializes a map of all types which we don't use in k8s, saving
memory & initialization time.
2018-09-04 22:24:37 -04:00
Michelle Au e124159990 Add scheduler option for bind timeout 2018-09-04 17:25:23 -07:00
Michelle Au ce2dfac296 generated files 2018-09-04 16:47:43 -07:00
Janet Kuo 13b76d5fb4 Autogen
make clean && make generated_files
2018-09-04 14:21:14 -07:00