Commit Graph

894 Commits

Author SHA1 Message Date
Kubernetes Publisher c688f42695 Merge pull request #72864 from pbarker/audit-lock-fix
shutdown audit sink concurrently

Kubernetes-commit: 54dc9db17b1ce17be884c35de3a60144199fe4c0
2019-01-17 05:59:48 +00:00
Kubernetes Publisher 60029d612f Merge pull request #70361 from qingsenLi/git181027
fix typo "amd"

Kubernetes-commit: 37f8ce087b99b6f1bac54fdf07c25b39517484ea
2019-01-17 05:58:52 +00:00
Jordan Liggitt 123cf8011f Remove alpha InitializerConfiguration types, Initializers admission plugin
Kubernetes-commit: dc1fa870bff65c20f48a83ea3af54adb3f526e28
2019-01-16 10:19:44 -05:00
Kubernetes Publisher a39732bdd9 Merge pull request #72924 from liggitt/remove-swagger
Remove swagger 1.2, swagger-ui

Kubernetes-commit: 7a8ac587564e5e7e42d664322b64328e7e948788
2019-01-16 05:33:55 +00:00
Jordan Liggitt 60331ab245 Update generated files
Kubernetes-commit: ef4983fb523b4e277313716ff702cb09e995316d
2019-01-15 10:45:21 -05:00
Kubernetes Publisher d55c9aeff1 Merge pull request #72856 from liggitt/nil-panic-propagation
Fix nil panic propagation

Kubernetes-commit: d1e5311922b18c3d0723b0d90a33cad97ed507a2
2019-01-12 18:43:17 +00:00
Jordan Liggitt 8a453581d7 Fix nil panic propagation
Kubernetes-commit: b8c64e30d18d3ea41de703d369e2a97063bce08f
2019-01-12 11:11:47 -05:00
Prasad Ghangal 084540e556 Update golang.org/x/net/... dependencies to release-branch.go1.11
- latest grpc-ecosystem/go-grpc-middleware

Change-Id: Ida7d01e4606f6e0313e1355db6e85be0c0ef1dd1

Kubernetes-commit: 317ecf58cc706c8851834f3b669d80a8628148c6
2019-01-07 18:29:55 +05:30
Lucas Käldström e8928c4a1c Move k8s.io/{apiserver,apimachinery}/pkg/apis/config to k8s.io/component-base/config. Co-authored-by @Klaven
Kubernetes-commit: 2e52d5c3311d3dcfd042e81570ef138645de529a
2019-01-06 13:57:47 +02:00
Kubernetes Publisher 0d5657d571 Merge pull request #72620 from dims/log-health-check-failure-at-level-4
Log Health Check failure at Verbosity Level - 4

Kubernetes-commit: 2fcdb50f0f813a90977039b8493769726fc0e14c
2019-01-07 19:42:18 +00:00
Kubernetes Publisher 40c1ce31b9 Merge pull request #72577 from dims/strengthen-error-to-api-status-against-bad-input
Strengthen ErrorToAPIStatus against bad input

Kubernetes-commit: d82cf3732213bd38ecd477b6c53fb0236d1662f9
2019-01-07 19:41:24 +00:00
Kubernetes Publisher 3b195c4701 Merge pull request #72581 from liggitt/runtime-config-warning
preserve prior behavior of ignoring invalid --runtime-config keys

Kubernetes-commit: 988c9d619eb535b31a8d1054449aaace729e6ec9
2019-01-05 07:46:21 +00:00
Kubernetes Publisher bd0d1c892a Merge pull request #72573 from deads2k/server-08-typo
fix typo in warning advice for permissions

Kubernetes-commit: edd0129f76baea72ed309f0ad91f71dfcf62ab9c
2019-01-05 07:45:29 +00:00
Kubernetes Publisher abe788eb29 Merge pull request #72575 from liggitt/flush-streamer-headers
Flush headers before streaming logs

Kubernetes-commit: 080d2a43ebd667685756d6ee013cef064bd4bf3b
2019-01-04 23:39:09 +00:00
Kubernetes Publisher 84dc8f2ac2 Merge pull request #72498 from dims/generate-stack-traces-for-bad-http-response
Generate Stack Traces for bad http responses

Kubernetes-commit: e89a3a78022a153215a0873e3e10df7c96ec7467
2019-01-04 07:45:27 +00:00
Kubernetes Publisher 7fdc8d79e8 Merge pull request #68557 from sttts/sttts-storage-compaction-once
apiserver: start only one compactor per unique storagebackend transport config

Kubernetes-commit: 73bca32cf00826fab1c2406d73cc94e0c0e57020
2019-01-03 23:44:09 +00:00
Kubernetes Publisher 64d9dbc236 Merge pull request #72451 from hossainemruz/hossainemruz-patch-1
Fix a typo

Kubernetes-commit: 483d25785c6a5ad9f32b1e4c98b826ffc1379a7c
2019-01-02 11:39:49 +00:00
Kubernetes Publisher 459e5d098d Merge pull request #72382 from liggitt/volumescheduling-ga
Stop checking VolumeScheduling feature gate

Kubernetes-commit: 66bf481114ddef34d48ce11eabe4be14e294e62c
2018-12-28 03:36:55 +00:00
Kubernetes Publisher e5d129eb7a Merge pull request #72239 from wojtek-t/v1_lease_api
Promote Lease API to v1

Kubernetes-commit: 5354f8bdfeeb14e52abb8bac4c24993f1addbfb1
2018-12-21 19:39:17 +00:00
wojtekt d0a44b9826 Autogenerated code
Kubernetes-commit: 9664779bdd99b84ff13b6dcd9d2dc72fd3831d7b
2018-12-20 11:56:54 +01:00
Kubernetes Publisher ce7b605bea Merge pull request #71176 from idealhack/fix-unreachable-code-and-golint-warnings
Fix go vet and golint warnings

Kubernetes-commit: 6902f3112d98eb6bd0894886ff9cd3fbd03a7f79
2018-12-20 07:09:14 +00:00
Kubernetes Publisher 0de616beac Merge pull request #70370 from liggitt/to_apps_v1
Switch client and test usage to apps/v1

Kubernetes-commit: 1bd7c7126cd6fdf49599ae3148c211e1c81d66c1
2018-12-19 23:05:53 +00:00
Chao Xu 8ece810562 generated
Kubernetes-commit: 1f2e2e61cf088cb0070fea4b88d9cefb7f8f2e3e
2018-12-19 13:52:12 -08:00
Kubernetes Publisher f3820dc89a Merge pull request #65632 from cofyc/vendor
Vendor github.com/prometheus/client_golang/prometheus/testutil package

Kubernetes-commit: 5554a446a9ee2e8bf94d7bf42706bc63577f4a61
2018-12-19 07:10:59 +00:00
Davanum Srinivas a6f07cccd1 Switch location for goautoneg vendored code
Move to github.com/munnerz/goautoneg as bitbucket is flaky!

Change-Id: Iaa6e964ef0d6f308eea59bcc6f365ecd7dbf0784

Kubernetes-commit: 16fd72d6c91ba466a0e955a1d59a6c8d9e8791bc
2018-12-17 20:39:56 -05:00
Kubernetes Publisher bbe3b7124d Merge pull request #71542 from smarterclayton/endpoints_cleanup
Ensure all response object modification happens in one place

Kubernetes-commit: 3ed107ff0e23c0ca434865b1a3608be21b11601f
2018-12-11 03:10:17 +00:00
Andrew Lytvynov 3604e0cbb0 Extract new keyutil package from client-go/util/cert
This package contains public/private key utilities copied directly from
client-go/util/cert. All imports were updated.

Future PRs will actually refactor the libraries.

Updates #71004

Kubernetes-commit: 18458392ca24c85c688e655aace1afd04f864cbd
2018-12-09 16:24:38 -08:00
Kubernetes Publisher 458311e40a Merge pull request #71601 from liggitt/surface-insecure-port-help
Surface help for insecure ports to explain how to disable

Kubernetes-commit: 611c3510d82941bb56c1d3c13d99521c70846260
2018-12-07 19:10:40 +00:00
Kubernetes Publisher 3f030212ae Merge pull request #71713 from liggitt/tokenfile-reload
Plumb token and token file through rest.Config

Kubernetes-commit: 2bd14ea60e934f0d7a499a1a830a05262238605a
2018-12-04 23:09:03 +00:00
Kubernetes Publisher e4a767af15 Merge pull request #71636 from tao12345666333/rm-duplicate-word
remove duplicate word

Kubernetes-commit: 300b1bab8b8e602d04242d4e21feae2c124a00c8
2018-12-04 15:14:23 +00:00
Kubernetes Publisher 19cf388d0a Merge pull request #71318 from sttts/sttts-etcd-v
apiserver: set klog as etcdclient logger

Kubernetes-commit: 3e1c0d47c21a8afed1b93980c5aaea095c90e16a
2018-11-30 07:17:55 +00:00
Kubernetes Publisher db2f9b05a5 Merge pull request #71302 from liggitt/verify-unit-test-feature-gates
Split mutable and read-only access to feature gates, limit tests to readonly access

Kubernetes-commit: 79e5cb2cb7ebc9093fa72f3e8a61085701cb1bd6
2018-11-30 07:17:06 +00:00
Kubernetes Publisher a355775af0 Merge pull request #70959 from MikeSpreitzer/group-still-not-optional
Clarified syntax doc on --watch-cache-sizes

Kubernetes-commit: a08d89c0f56e566228c50382e9e5bea1ad524e1d
2018-11-30 03:17:35 +00:00
Kubernetes Publisher 5a30297d65 Merge pull request #71047 from pivotal-k8s/bump-k8s-utils
Bump k8s.io/uitls to 8e7ff06

Kubernetes-commit: 409bfc4337f34ed119e66cb6cdd8f95e5deea5a1
2018-11-29 23:18:08 +00:00
Kubernetes Publisher 4df62ec377 Merge pull request #70440 from nikhita/add-license-headers
Add license header to non-generated proto files

Kubernetes-commit: d0ac92299696b1ae7f2c52262e8700fd1e0b0e09
2018-11-29 11:17:41 +00:00
Clayton Coleman 8d7b330c4c Support Table and PartialObjectMetadata on watch
Clean up the code paths that lead to objects being transformed and output with negotiation.
Remove some duplicate code that was not consistent. Now, watch will respond correctly to
Table and PartialObjectMetadata requests. Add unit and integration tests.

When transforming responses to Tables, only the first watch event for a given type will
include the columns. Columns will not change unless the watch is restarted.

Add a volume attachment printer and tighten up table validation error cases.

Disable protobuf from table conversion because Tables don't have protobuf because they
use `interface{}`

Kubernetes-commit: 3230a0b4fd14a6166f8362d4732e199e8779c426
2018-11-28 23:50:12 -05:00
Kubernetes Publisher 8d90f74522 Merge pull request #71296 from cblecker/json-iterator-bump
Update github.com/json-iterator/go to 1.1.4

Kubernetes-commit: 18619f0849b18944300cb22c224afe071d4317bd
2018-11-21 07:17:50 +00:00
Christoph Blecker 8a84fb6e8c Update github.com/json-iterator/go to 1.1.4
Kubernetes-commit: c7d39519279937693e654149eb6b67af46836135
2018-11-20 18:13:01 -08:00
Kubernetes Publisher 509339a012 Merge pull request #65763 from x13n/audit-logging
Add option to k8s apiserver to reject incoming requests upon audit failure

Kubernetes-commit: 46ebebcc4f5c22ef518c32874a1be8883ce06819
2018-11-17 15:17:57 +00:00
Kubernetes Publisher 3e2f22f253 Merge pull request #62692 from mikedanese/trev2
authn: extend authenticator.Token to support audience validation

Kubernetes-commit: f38cc9550574171055567288aca8b2cc64a67ed1
2018-11-17 11:21:13 +00:00
Kubernetes Publisher c574ba2672 Merge pull request #71158 from liggitt/revert-openapi-publish
Revert openapi publish

Kubernetes-commit: 39c8219999876047632fe0e9dd952d0510ecca92
2018-11-17 03:17:25 +00:00
Kubernetes Publisher 181d27f0aa Merge pull request #67383 from stlaz/enc_config_promotion
Introduce apiserver.config.k8s.io/v1 and use standard method for parsing encryption config file

Kubernetes-commit: 1e22f080ec6fd4440d1650b80d9cd48a877a63d4
2018-11-17 03:16:34 +00:00
Kubernetes Publisher 9236e3e2ea Merge pull request #71120 from WanLinghao/audit_log_fix
fix a description error in DynamicAuditing feature

Kubernetes-commit: c418e2a04f1cf52e58749224a27a3ce19d07c5c3
2018-11-16 23:17:15 +00:00
Kubernetes Publisher 28bc4f3147 Merge pull request #71076 from liggitt/preserve-stack
Propagate panics up handler chain

Kubernetes-commit: f1e4ec8e4843b5a5088bad6b97de69d6bc8e53d3
2018-11-16 15:17:21 +00:00
Kubernetes Publisher 6d415cfade Merge pull request #71067 from sttts/sttts-handler-panic
apiserver: preserve stack trace in handler panic beyond timeout handler

Kubernetes-commit: 9e2820e4c9541a7718e9d5b7a0ee62429552023a
2018-11-16 15:16:31 +00:00
Kubernetes Publisher a501de0afe Merge pull request #71020 from saad-ali/updateCSI10
Bump CSI Spec to 1.0.0 and gRPC to 1.13.0

Kubernetes-commit: 6fc60428a7534193b9c4a4f61f4060f769ade557
2018-11-16 11:16:49 +00:00
Kubernetes Publisher 6d2d9fc96f Merge pull request #67257 from pbarker/audit
dynamic audit configuration

Kubernetes-commit: b1a52a38e9e3651680655416cc7afbec5e119854
2018-11-15 11:17:03 +00:00
Kubernetes Publisher 1073fba42b Merge pull request #70676 from logicalhan/exclude-checks
add ability to disable health checks on kube-apiserver for healthz using query-params

Kubernetes-commit: ca338b91f533ecadb5ca481f3ef551785fcb2aa3
2018-11-14 23:16:45 +00:00
Hannes Hörl 3b3fa3810b Bump k8s.io/uitls to 8e7ff06
The reason for the bump is the new functionality of the
k8s.io/utils/exec package which allows
- to get a hold of the process' std{out,err} as `io.Reader`s
- to `Start` a process and `Wait` for it

This should help on addressing #70890 by allowing to wrap std{out,err}
of the process to be wrapped with a `io.limitedReader`.

It also updates
- k8s.io/kubernetes/pkg/probe/exec.FakeCmd
- k8s.io/kubernetes/pkg/kubelet/prober.execInContainer
- k8s.io/kubernetes/cmd/kubeadm/app/phases/kubelet.fakeCmd
to implement the changed interface.

The dependency on 'k8s.io/utils/pointer' to the new version has also
been bumped in some staging repos:
- apiserver
- kube-controller-manager
- kube-scheduler

Kubernetes-commit: 0d4b5c98f81a3e04b18610f983eb1b68e5fa11bf
2018-11-14 23:10:07 +00:00
saad-ali e3e8e9df6d Bump grpc from 1.7.5 to 1.13.0
Kubernetes-commit: 9d4810f25a787ef5cd78b9885033aecbfe59e701
2018-11-13 17:37:19 -08:00
Kubernetes Publisher cf5eff4f5e Merge pull request #70735 from wojtek-t/use_watch-cache_when_rv=0
Use watch cache when rv=0 even when limit is set

Kubernetes-commit: 1777be5fbee3c2adc390b0c41ef725b291c6fe3d
2018-11-13 23:16:42 +00:00
Kubernetes Publisher b8915a5609 Merge pull request #70889 from dims/update-cadvisor-and-other-repos-for-klog-take-2
Update cadvisor and other repos for klog

Kubernetes-commit: a3ccea9d8743f2ff82e41b6c2af6dc2c41dc7b10
2018-11-10 19:17:21 +00:00
Kubernetes Publisher 81499b5be2 Merge pull request #70021 from pbarker/audit-plugins
dynamic audit plugins

Kubernetes-commit: 413ccb15c669d0b4301633c6877db872e4f5d282
2018-11-10 03:16:09 +00:00
Davanum Srinivas 202f96eed8 Update all the staging Godeps.json
Change-Id: I64b30c68a606b4f5c095a66496a1e48c4d62ea88

Kubernetes-commit: 68ce375d0039738df5a2a837122215f3224f1fde
2018-11-09 16:41:26 -05:00
Davanum Srinivas 2710b17b80 Move from glog to klog
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
  * github.com/kubernetes/repo-infra
  * k8s.io/gengo/
  * k8s.io/kube-openapi/
  * github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods

Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135

Kubernetes-commit: 954996e231074dc7429f7be1256a579bedd8344c
2018-11-09 13:49:10 -05:00
Kubernetes Publisher 166471a918 Merge pull request #70598 from dims/switch-from-sigs.k8s.io/yaml-to-ghodss/yaml
Switch to sigs.k8s.io/yaml from ghodss/yaml

Kubernetes-commit: f212b9db236344d3121879e609d53b79f9f106f9
2018-11-08 19:44:24 +00:00
Kubernetes Publisher 92634e4423 Merge pull request #70718 from cblecker/godep-round-a-million
Fork godep to fix inconsistent abbreviation size

Kubernetes-commit: e998d6c2bc83385d98186a87e95a0f947e121ec1
2018-11-08 05:19:23 +00:00
Kubernetes Publisher 6c4dbd3004 Merge pull request #70670 from deads2k/default-healthz
Add `With` method for allowed paths on delegated authorization

Kubernetes-commit: 66989e8bf35cbde4b499337cffa8cfd9fce9d677
2018-11-08 05:18:35 +00:00
Kubernetes Publisher f1dab8c342 Merge pull request #70663 from wenjiaswe/gonet110
Upgrade golang.org/x/net image to release-branch.go1.10

Kubernetes-commit: 471aff6673ebe4ac9c9219a7579d23831e1146be
2018-11-07 21:27:33 +00:00
Stavros Foteinopoulos 3f814322d1 Update vendor package github.com/hashicorp/golang-lru
Kubernetes-commit: df3fbf9295cb8d650d2e951ae46099d07e2130d2
2018-11-07 15:19:34 +02:00
Kubernetes Publisher da1d732cee Merge pull request #70600 from liggitt/sig-auth-subprojects
Add owners/approvers aliases for sig-auth subprojects

Kubernetes-commit: 0aba5577412ea9b2fd89a0c0843e9b0c94e8848d
2018-11-07 05:04:05 +00:00
Christoph Blecker bc4cfac253 Update godeps
Kubernetes-commit: d15da2c586ba27df895c22486b1b527852c6363d
2018-11-06 16:23:59 -08:00
Wenjia Zhang ee6702dcda update staging godeps for golang.org/x/net/... to release-branch.go1.10
Kubernetes-commit: adf155ee9f9dfa023069282ec195f9eb8d1ce0fe
2018-11-06 15:49:50 -08:00
Kubernetes Publisher 89d4c53a3b Merge pull request #70671 from deads2k/delegated-system-master
allow delegated authorization to have privileged groups

Kubernetes-commit: 08deddfdbca9304dbe23414e3d7cd0f4a986ce45
2018-11-06 17:14:13 +00:00
Yecheng Fu cb9cff66c9 vendor github.com/prometheus/client_golang/prometheus/testutil package
updating staging godeps

Kubernetes-commit: 9632e4349eac7133ec7fa713b14601e9c580356a
2018-11-06 15:40:43 +08:00
Kubernetes Publisher be4a516a12 Merge pull request #70449 from mikedanese/simplcache
remove webhook cache implementation and replace with token cache

Kubernetes-commit: c8604653f02c4dd6458274776088ebb4abf5b9a1
2018-11-06 01:08:32 +00:00
Kubernetes Publisher cabd57eab1 Merge pull request #70476 from charrywanganthony/backendGroupVersionV1
Use `audit.k8s.io/v1` as default value of option --audit-webhook-vers…

Kubernetes-commit: 714711e52dfe4667af921a90e4bd02c07f3ab588
2018-11-06 01:07:39 +00:00
Kubernetes Publisher 419e8112fc Merge pull request #70553 from pbarker/webhook-refactor
refactors kubeapiserver webhook utility to be generic

Kubernetes-commit: d7f90253e9cabb422c4f4bbd820862a00e1a69d0
2018-11-03 04:25:52 +00:00
Davanum Srinivas 032ec9d79b Switch to sigs.k8s.io/yaml from ghodss/yaml
Change-Id: Ic72b5131bf441d159012d67a6a3d87088d0e6d31

Kubernetes-commit: 43f523d405b012fa8d90dd95b667f520e036f6bc
2018-11-02 16:41:57 -04:00
Kubernetes Publisher 5009f7fe49 Merge pull request #69976 from atlassian/update-few-dependencies
Update a few dependencies

Kubernetes-commit: a831ea20a4a6a7e43d7f264657f6af57a4150574
2018-11-02 09:17:08 +00:00
Kubernetes Publisher d7fa5b393b Merge pull request #69916 from mikedanese/trev9
create audience unaware authenticator wrappers

Kubernetes-commit: 1165d661f03724a933794584f48b577cefaa7654
2018-11-01 21:27:29 +00:00
Kubernetes Publisher f2e7e4864e Merge pull request #70260 from lavalamp/schema-fix
bump kube-openapi dep

Kubernetes-commit: 6f897af2daffd8cd3539f1ef279b9f9bc280d98f
2018-11-01 09:23:03 +00:00
Kubernetes Publisher 46ea977b30 Merge pull request #67795 from mbohlool/crd_conversion_api_changes
CRD Conversion API Changes

Kubernetes-commit: 11706d3803150bcedc51bf5b00ed443d90384571
2018-11-01 09:22:12 +00:00
Kubernetes Publisher 6bbe65a989 Merge pull request #70453 from liggitt/api-owners
Update API-related owners files

Kubernetes-commit: c81a4a09cf07083265591a9f48c53e80c13d3ebd
2018-11-01 01:16:03 +00:00
Daniel Smith 8d64bed783 update generated deps
Kubernetes-commit: dcb10d81d18f4e8a58496ef61b62247ae93bbaef
2018-10-31 17:11:23 -07:00
Kubernetes Publisher 768725318f Merge pull request #70168 from wgliang/update-vendor/coreos-etcd
Update vendor package github.com/coreos/...

Kubernetes-commit: 9e31e6567f03cf5cf0b6ff44222409c510393e93
2018-10-31 05:17:14 +00:00
Kubernetes Publisher 62e94fcc19 Merge pull request #70032 from iamneha/delete_namespaced_job_spec
Fix(bug): make body an optional parameter in [DELETE] /apis/batch/v1/…

Kubernetes-commit: 93d1567c6f5037a3844125d2a5f61b2d1a0e6927
2018-10-30 21:31:37 +00:00
Kubernetes Publisher bcc4ccc10c Merge pull request #69884 from liggitt/self-sign-in-memory
Allow components to generate certificates in-memory

Kubernetes-commit: d196d63c01719b78c96571775fc8c0c2b6eb30a0
2018-10-30 21:30:48 +00:00
Kubernetes Publisher ee4fe25ec2 Merge pull request #70314 from samdamana/auth-revert
Revert "limit forbidden error to details of what was forbidden"

Kubernetes-commit: 361f8c31bd1851a37953e8001d31c20b91a5a24a
2018-10-30 01:28:59 +00:00
Kubernetes Publisher 6b272fc5ca Merge pull request #70310 from mikedanese/trev10
echo audiences in anonymous and insecure authenticators

Kubernetes-commit: 952e7b07c6bbcd27474adde57d4df6a1b15f1db2
2018-10-30 01:27:41 +00:00
Kubernetes Publisher 7ba8fae5dc Merge pull request #69756 from cheftako/trace
Added tracing for long running requests.

Kubernetes-commit: 833dcc2be383cd11933fd0abf74574eb213df59e
2018-10-29 09:35:45 +00:00
Kubernetes Publisher e3d7726491 Merge pull request #69389 from smarterclayton/wait_error
kubectl wait must handle errors returned by watch

Kubernetes-commit: b6fd5d93b2048ae19cbcf21bafdd5cd7249d1f33
2018-10-26 15:07:21 +00:00
Kubernetes Publisher 721817c2cf Merge pull request #70087 from liggitt/fix-crd-internal-types
Fix custom resource handler in-memory version

Kubernetes-commit: ed39bd45f531d17d26869aae29f069173cb0ce55
2018-10-26 15:06:18 +00:00
Kubernetes Publisher 62c5b3b954 Merge pull request #69013 from ibrasho-forks/switch-to-http.Error
Update usages of http.ResponseWriter.WriteHeader to use http.Error

Kubernetes-commit: dad07683b101dfa71444d0c580579035fe5cd5a0
2018-10-26 15:06:17 +00:00
Kubernetes Publisher decf83a196 Merge pull request #69895 from jpbetz/webhook-metrics-cardinality-fix
Reduce cardinality of admission webhook metrics

Kubernetes-commit: 04d394904846a298af1d37e7a9c15c00f574b09a
2018-10-26 15:06:14 +00:00
Patrick Barker e78fc074c8 adds dynamic audit plugins generated
Kubernetes-commit: 54fd930d0e74635fc2a8318cc79d1b055d252d44
2018-10-25 02:43:55 +00:00
Guoliang Wang 8e309ce8e0 Update vendor package github.com/coreos/...
Kubernetes-commit: d462e1e8d7e45894bf2abb7dc5d939f1bd3cae68
2018-10-24 05:43:42 +00:00
Mikhail Mazurskiy 3ee5383cc2 Update a few dependencies
github.com/go-openapi/*
github.com/asaskevich/govalidator

Kubernetes-commit: 8763223ab947fa8bae7b3459f70b7094bdc25e1a
2018-10-18 23:33:10 +11:00
Kubernetes Publisher 7f6c545c2e Merge pull request #67547 from pbarker/audit-api
dynamic audit configuration api

Kubernetes-commit: 0652e098d03197aa4cc0a53440f62e425bf992c5
2018-10-18 01:45:35 +00:00
Kubernetes Publisher 0deca6c827 Merge pull request #69914 from mikedanese/trev8
add some helpers to Audiences to find intersecting audiences

Kubernetes-commit: 399cade80648fb6cf62a65cf92a61adc92f796ec
2018-10-17 09:45:42 +00:00
Kubernetes Publisher 0221fe2249 Merge pull request #69607 from mikedanese/audctx
tokenreview: add APIAudiences config to generic API server and augment context

Kubernetes-commit: cf3a930938560227a44ce131b111c2dfed128118
2018-10-16 05:44:50 +00:00
Patrick Barker 336a7193b2 adds dynamic audit api generated
Kubernetes-commit: b8e1250487f51bd27bd75f4bfb45c8635d6344ed
2018-10-16 00:20:30 +00:00
Kubernetes Publisher 616a943945 Merge pull request #69644 from apelisse/dry-run-beta
dry-run: Promote from Alpha to Beta

Kubernetes-commit: 46f0f2a2c9aba5d27d0d68f64df046ad121e53df
2018-10-13 05:49:31 +00:00
Kubernetes Publisher 8615592431 Merge pull request #69714 from ericchiang/owners
Remove ericchiang from OWNERS files

Kubernetes-commit: 53e85280f4ed9127b440d13e2a67337a9a9869e8
2018-10-13 01:15:56 +00:00
Kubernetes Publisher a75f4835f7 Merge pull request #69627 from dims/updating-ghodss-yaml-to-latest-version-2
Updating ghodss/yaml and gopkg.in/yaml.v2 to latest version 2

Kubernetes-commit: 3348f9ae23d6502218c6600bcee8d05e00ce5ee3
2018-10-13 01:15:07 +00:00
Kubernetes Publisher d44a702c23 Merge pull request #69002 from HotelsDotCom/do-not-verify-x509-with-no-wrapped-auth
Remove excessive warnings with x509 certificate auth

Kubernetes-commit: 38a9fc6aa240c99b17a93764fb5473bf6342ff9d
2018-10-12 21:15:50 +00:00
Kubernetes Publisher c30426fbcf Merge pull request #68632 from deads2k/server-06-audit
allow audit policy to be loaded from any byte source

Kubernetes-commit: 89c3fd52e8a621ef582629cd17646a4b7764d6a3
2018-10-12 02:53:54 +00:00
Kubernetes Publisher a24d90ceff Merge pull request #69322 from jpbetz/etcd-client-3.3.9
Update etcd client to 3.3 for 1.13

Kubernetes-commit: a8c7a3fd5e707243af68b10a8a581c2c59248222
2018-10-11 07:00:33 +00:00
Davanum Srinivas a273a73dae Updating ghodss/yaml and gopkg.in/yaml.v2 to latest version
Change-Id: I1f1a10b68a2d3e796724c6ac26f0ed3260153588

Kubernetes-commit: 6364af128b0ca50e66501519f333e696a26801d9
2018-10-10 10:14:20 -04:00
Kubernetes Publisher f2a92f83c3 Merge pull request #69527 from liggitt/remove-quorum
Remove deprecated --etcd-quorum-read flag

Kubernetes-commit: f9acfd8e384488d2216b18196152dcb7b3cc92d8
2018-10-09 08:53:01 +00:00
Kubernetes Publisher 1f59ae3a4c Merge pull request #69470 from immutableT/envelope-flake-test-fix
Increase time-out of kms gRPC service concurrency tests.

Kubernetes-commit: 844d686591e93fe7f2056fc79c629b3d0d66019e
2018-10-06 04:37:26 +00:00
Kubernetes Publisher d8dbc75a72 Merge pull request #69386 from cblecker/go-1.11
Update to go1.11.1

Kubernetes-commit: 0f17e9ade6e089eadb7c09052a4a030f155a0eb0
2018-10-06 04:36:34 +00:00
Kubernetes Publisher 9fb560178f Merge pull request #69080 from tanshanshan/little926
fix  golint in staging/src/k8s.io/apiserver/pkg/admission/plugin/ include namespace/lifecycle,webhook/mutating,webhook/validating

Kubernetes-commit: 6764bc495e2ff2e80d2bbac7fe2c3c4ede27801d
2018-10-05 12:43:44 +00:00
Kubernetes Publisher d416d37f77 Merge pull request #69430 from DirectXMan12/bug/use-client-auth
Populate ClientCA in delegating auth setup

Kubernetes-commit: 0373b8d1698796477fed234d974bad675fc3cb2b
2018-10-05 12:42:47 +00:00
Clayton Coleman 4e305103fd Dynamic client watchers should be able to handle ERROR gracefully
Watch can return type "ERROR" and a metav1.Status object. We need to
handle that during wait, and make it easy to handle the status object.

Kubernetes-commit: 5a8afa073f6b8cbb8b09f997f6db747c39dffb6e
2018-10-03 14:16:44 -04:00
Kubernetes Publisher a00bf8e764 Merge pull request #69249 from mikedanese/cpenvelope
refactor envelope to use cryptobytes

Kubernetes-commit: 643cad518714442c2ed839f4e1d764387c6573c5
2018-10-03 12:11:32 +00:00
Joe Betz 5c1ed41d69 Update etcd client to 3.3.9
Kubernetes-commit: 4263c752115c3796ee5715c7de4cbc2e237809d3
2018-10-01 16:53:57 -07:00
Kubernetes Publisher 10d9756549 Merge pull request #69018 from gorilla001/f3
remove extraneous local variable usage in newETCD3Client

Kubernetes-commit: c526f097005387831b143dc6fb006967bdc0a1c2
2018-09-30 11:46:51 +00:00
Mike Danese 93a015d36a refactor envelope to use cryptobytes
Kubernetes-commit: 36ab52b428f6b87df5bdd85f253758967bf0a240
2018-09-28 23:02:42 -07:00
Kubernetes Publisher ec2b99f302 Merge pull request #68585 from immutableT/blocking-kms-plugin-connect
kube-apiserver should wait/block for kms-plugin to start.

Kubernetes-commit: 6b49423a8e99bb08904ac6e110e31c6a4394c024
2018-09-28 07:42:03 +00:00
Kubernetes Publisher adf6303733 Merge pull request #68850 from mikedanese/oidc
oidc: respect the legacy goog issuer

Kubernetes-commit: 3611c5c4982438632c3906ddced6d12e470d963f
2018-09-27 03:41:59 +00:00
Kubernetes Publisher 7010da59f6 Merge pull request #66516 from tallclair/redirect
Add verification to apiserver redirect following

Kubernetes-commit: 109b67c291de3b9bda35c35e471b9064de6ff859
2018-09-26 23:38:34 +00:00
Kubernetes Publisher ae73be09a6 Merge pull request #68245 from jingyih/remove_tagName_in_goDoc
*: Remove comment tags in GoDoc

Kubernetes-commit: a67689dfcab0ed547e1d060c414eae7c81629cc9
2018-09-25 15:38:28 +00:00
Kubernetes Publisher 4152071037 Merge pull request #68238 from justinsb/update_reflect2_to_101
Update reflect2 to 1.0.1 (memory utilization fix)

Kubernetes-commit: a94ea824eb59e92188f166c302d7995ba9002667
2018-09-25 15:36:36 +00:00
Kubernetes Publisher ed2586ad01 Merge pull request #68113 from fengzixu/master
Fixes #68026: revise some errors about golint in some packages

Kubernetes-commit: 5b864ac9716efcd0ca49366dd943d6a3eb383ff6
2018-09-25 15:35:10 +00:00
Kubernetes Publisher f3682c1ab7 Merge pull request #67793 from fisherxu/use_ctx
Refactor grpc dial with dialcontext

Kubernetes-commit: fb50b3cb32dccce5d242f40db1d020da07fd7078
2018-09-24 07:46:44 +00:00
Kubernetes Publisher 67c8928411 Merge pull request #68584 from jennybuckley/dry-run-errors
Fix typo in dry-run feature disabled error

Kubernetes-commit: fe72bd20b5b9ccc1f5b2ca5a951b78715164122c
2018-09-14 00:15:16 +00:00
Kubernetes Publisher 3bfd32753e Merge pull request #68442 from CaoShuFeng/json-patch
vendor: bump github.com/evanphx/json-patch

Kubernetes-commit: 9cf822183f9522028fbb23561b8d51496b8a98fe
2018-09-12 23:50:08 +00:00
Cao Shufeng 0a5b0f2cd2 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

Kubernetes-commit: 2e974f30ab728f2f105af30d4de9db01d02e9514
2018-09-09 13:06:39 +08:00
Kubernetes Publisher e73ba2ce12 Merge pull request #68428 from philips/bump-json-patch
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.

vendor: bump github.com/evanphx/json-patch

Grab important bug fix that can cause a `panic()` from this package on
certain inputs. See 73af7f547e

```release-note
NONE
```

Kubernetes-commit: 5af5f1e66353a50a848a4017c1fba6a39f12584c
2018-09-08 14:20:22 +00:00
Kubernetes Publisher 75a03c2d43 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

Kubernetes-commit: a6eb49f0dc9a6d9fecf7ff4a8edeaa382b55ac50
2018-09-08 14:18:23 +00:00
Brandon Philips f9f24f0fac 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>

Kubernetes-commit: 2fbd47da561cb80e7f01f38da6a556b63b2579bd
2018-09-07 15:14:50 -07:00
Kubernetes Publisher f271f15f0c 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

Kubernetes-commit: 2811228dcf9934dc6bf4fb3f2e8397eedec29840
2018-09-06 18:26:57 +00:00
Kubernetes Publisher 57ba49758a Merge pull request #68273 from sttts/sttts-non-fatal-in-cluster-config
Automatic merge from submit-queue (batch tested with PRs 68265, 68273). 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.

apiserver: make InClusterConfig errs for delegated authn/z non-fatal

Fixes https://github.com/kubernetes/kubernetes/issues/68246:

Background:

In gci e2e tests the kube-controller-manager is started as static pod. When it first starts, there is no kubernetes service and the KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT env vars are not set inside the container.

When the kube-controller-manager is restarted, the KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT env vars are set, but the static pod has no service account, i.e. /var/run/secrets/kubernetes.io/serviceaccount/token does not exist. We made the later fatal in rest.InClusterConfig and its use to setup delegated authn/z.

Kubernetes-commit: 2c933695fa61d57d1c6fa5defb89caed7d49f773
2018-09-05 11:23:16 +00:00
Justin Santa Barbara 889ceee5a6 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.

Kubernetes-commit: 970e4da4c6636b835175dc79a7492d22dc11ba33
2018-09-04 13:13:00 -04:00
Kubernetes Publisher e9312c1529 Merge pull request #66799 from noqcks/master
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.

Add validation for kube-scheduler configuration options

**What this PR does / why we need it**: This adds validation to the kube-scheduler so that we're not accepting bogus values to the kube-scheduler. As requested by @bsalamat in issue https://github.com/kubernetes/kubernetes/issues/66743

**Which issue(s) this PR fixes**:
Fixes #66743

**Special notes for your reviewer**:
- Not sure if this validation is too heavy handed. Would love some feedback.
- I started working on this before I realized @islinwb was also working on this same problem... https://github.com/kubernetes/kubernetes/pull/66787 I put this PR up anyways since I'm sure good code exists in both. I wasn't aware of the /assign command so didn't assign myself before starting work.
- I didn't have time to work on adding validation to deprecated cli options. If the rest of this looks ok, I can finish that up.
- I hope the location of IsValidSocketAddr is correct. Lmk if it isn't.

**Release note**:
```release-note
Adding validation to kube-scheduler at the API level
```

Kubernetes-commit: f3b98a08b05257fbc3c19b52ced70ea67c546b1e
2018-09-04 04:04:00 +00:00
Kubernetes Publisher bb6d7df73e Merge pull request #67284 from caesarxuchao/token-with-410
Automatic merge from submit-queue (batch tested with PRs 67571, 67284, 66835, 68096, 68152). 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.

apiserver returns continue together with the 410 error

Implements https://github.com/kubernetes/kubernetes/issues/66981#issuecomment-410845134.

Closes #66981.

/sig api-machinery
/assign @lavalamp @liggitt @smarterclayton

```release-note
Upon receiving a LIST request with expired continue token, the apiserver now returns a continue token together with the 410 "the from parameter is too old " error. If the client does not care about getting a list from a consistent snapshot, the client can use this token to continue listing from the next key, but the returned chunk will be from the latest snapshot.
```

Kubernetes-commit: 5b916f8b02f6cb7255bffa497000684f9ecd2dd5
2018-09-01 07:52:47 +00:00
Kubernetes Publisher b080aefffc Merge pull request #64283 from jessfraz/ProcMountType
Automatic merge from submit-queue (batch tested with PRs 64283, 67910, 67803, 68100). 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.

Add a ProcMount option to the SecurityContext & AllowedProcMountTypes to PodSecurityPolicy

So there is a bit of a chicken and egg problem here in that the CRI runtimes will need to implement this for there to be any sort of e2e testing.

**What this PR does / why we need it**: This PR implements design proposal https://github.com/kubernetes/community/pull/1934. This adds a ProcMount option to the SecurityContext and AllowedProcMountTypes to PodSecurityPolicy

Relies on https://github.com/google/cadvisor/pull/1967

**Release note**:

```release-note
ProcMount added to SecurityContext and AllowedProcMounts added to PodSecurityPolicy to allow paths in the container's /proc to not be masked.
```

cc @Random-Liu @mrunalp

Kubernetes-commit: 39004e852bb523d0497343705ee2bf42b4e9c3e3
2018-09-01 04:06:40 +00:00
Kubernetes Publisher 0e7eb02c02 Merge pull request #68065 from wojtek-t/fix_unnecessary_too_old_rv_errors
Automatic merge from submit-queue (batch tested with PRs 68051, 68130, 67211, 68065, 68117). 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 unnecessary too-old-errors from watch cache

When initializing watch cache via LIST, we set its resource version to the RV of the list request.
However, before this PR, the first incoming watch event (updating the watch cache) was moving the "smallest oldest known version" to RV of that watch event. So watch requests passing rv equal to the RV returned from the initial list were failing with "too old resource version".
That is not needed, because we know that in the meantime there weren't any other watch events.

This PR is addressing that issue.

/assign @liggitt

Kubernetes-commit: 3966b8bbcc072cb48508d151c284241a26c45ede
2018-09-01 04:04:33 +00:00
Timothy St. Clair 87450f3335 Update etcd client to 3.2.24 for latest release
Signed-off-by: Timothy St. Clair <timothysc@gmail.com>

Kubernetes-commit: 0bb21f647f44de496525ed7dac217128fe6d2d5b
2018-08-31 13:57:37 -05:00
Kubernetes Publisher 36e49471e7 Merge pull request #67798 from mbohlool/crd_refactoring
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.

Refactor admission webhook client code to a apiserver/pkg/util package

As part of #67006 This refactoring enable us to share code between admission webhooks and CRD conversion webhooks.

@deads2k @lavalamp @sttts @kubernetes/sig-api-machinery-misc

Kubernetes-commit: 14eb029fba5717e2dfe3434a682f9aec4752c44d
2018-08-31 15:52:16 +00:00
Jess Frazelle a7cb7d146a make update
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

Kubernetes-commit: 1a4cf7a36e1d28c43b2fbb0efe1dbcd60e09b0d6
2018-08-30 12:02:08 -04:00
Kubernetes Publisher 80207e8df8 Merge pull request #68001 from sttts/sttts-timeout-panic-forward
Automatic merge from submit-queue (batch tested with PRs 66577, 67948, 68001, 67982). 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.

apiserver: forward panic in WithTimeout filter

```release-note
Return apiserver panics as 500 errors instead terminating the apiserver process.
```

Without this PR a panic in a HTTP handler will not be caught in the Go routine started by the timeout filter. Uncaught panics terminate the process.

This is a strong condidate to be backported to 1.11, 1.10 and 1.9.

Kubernetes-commit: ca8f267cc86c183a23668e24a59a0eaa973daf93
2018-08-30 03:53:00 +00:00
Kubernetes Publisher 9934dd8ef2 Merge pull request #67545 from sttts/sttts-auth-optional-kubeconfig
Automatic merge from submit-queue (batch tested with PRs 66960, 67545). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

delegated authn/z: optionally opt-out of mandatory authn/authz kubeconfig

This adds `RemoteKubeConfigFileOptional` field to the delegated authn/z option structs. If set to true, the authn/z kubeconfig file flags are optional. If no kubeconfig is given, all token requests are considered to be anonymous and no client CA is looked up in the cluster.

Prerequisite for https://github.com/kubernetes/kubernetes/pull/64149 and https://github.com/kubernetes/kubernetes/pull/67069.

Kubernetes-commit: 1b3a2dd0830ca0e02d5b95d2ecc0161d0c93a0c7
2018-08-28 23:51:34 +00:00
Kubernetes Publisher 3af33a3b5f Merge pull request #67902 from liggitt/http2-buffers
Automatic merge from submit-queue (batch tested with PRs 67694, 64973, 67902). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Size http2 buffers to allow concurrent streams

http/2 requests from a given client multiplex over a single connection via streams, chopped up into frames.

The amount of data the client is allowed to send for a given stream and for the overall connection before acknowledgement is determined by the server's MaxUploadBufferPerStream and MaxUploadBufferPerConnection settings respectively, both defaulting to 1MB.

The number of concurrent streams a client is allowed to send over a single connection is determined by the server's MaxConcurrentStreams setting, defaulting to 250.

We observed a starvation issue with the kube aggregator's proxy client if handling of a POST through the aggregator to a backend server exceeded the 1MB buffer size AND the backend server required a second POST request through the aggregator to be handled before it could drain the first request's body.

Logically, if concurrent streams are allowed in a single connection, the connection buffer should be MaxUploadBufferPerStream*MaxConcurrentStreams to allow individual streams to make progress even when one stream is blocked.

This PR shrinks the `MaxUploadBufferPerStream` size to 256kb (which is still large enough to allow all the resources we saw in our test clusters to be sent in a single frame), and grows the MaxUploadBufferPerConnection to accomodate concurrent streams.

I'm also opening a golang issue, [reproducer](https://gist.github.com/liggitt/00239c99b4c148ac1b23e57f86b3af93), and fix for the defaults for this

```release-note
adjusted http/2 buffer sizes for apiservers to prevent starvation issues between concurrent streams
```

Kubernetes-commit: 9edf196c017c12ade054f6b5ecdc7ffcb66ee94d
2018-08-28 15:58:33 +00:00
Kubernetes Publisher 0244972979 Merge pull request #64097 from damemi/hpa-metrics-specificity
Automatic merge from submit-queue (batch tested with PRs 67894, 64097). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

HPA metrics specificity improvements

**What this PR does / why we need it**:
Improves available specificity for HPA metrics by adding metric selector fields for metrics of Pods and Objects.

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

**Special notes for your reviewer**:
Need to add/update tests?

**Release note**:

```release-note
Introduces autoscaling/v2beta2 and custom_metrics/v1beta2, which implement metric selectors for Object and Pods metrics, as well as allowing AverageValue targets on Objects, similar to External metrics.
```

/assign @DirectXMan12

Kubernetes-commit: fdb5707194d56cbbd0da11c5be3a2a5653e714c9
2018-08-27 23:44:07 +00:00
Kubernetes Publisher 8d760805d3 Merge pull request #67768 from sttts/sttts-unify-unspecified-authnz-apiserver-options
Automatic merge from submit-queue (batch tested with PRs 54935, 67768, 67896, 67787). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

apiserver: unify handling of unspecified options in authn/z options

Use nil pointer for unspecified, not some kind of half zero-valued structs.

Kubernetes-commit: 5afa23f2c4d1c4501ed722e43dab4b1f64b0fddd
2018-08-27 19:42:49 +00:00
Kubernetes Publisher 631829ec6a Merge pull request #67362 from stewart-yu/stewart-controller-manager-codeclean#02
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

*-controller-manager: output flags in logical sections

![image](https://user-images.githubusercontent.com/30410021/44071436-8e619e72-9fbb-11e8-84c5-72c1ff9767b6.png)

```
Print *-controller-manager --help flag help in sections.
```

Kubernetes-commit: b315ecfe6732898cc8f8d0f9131f47cbf7a60dde
2018-08-27 19:41:44 +00:00
Kubernetes Publisher 838b98e1f1 Merge pull request #67543 from sttts/sttts-auth-skip-paths
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz)

Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain.

Prerequisite for https://github.com/kubernetes/kubernetes/pull/64149 and https://github.com/kubernetes/kubernetes/pull/67069.

```release-note
Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization.
```

Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
2018-08-24 19:50:15 +00:00
Kubernetes Publisher 9f5543045c Merge pull request #62420 from mikedanese/jose-bump
Automatic merge from submit-queue (batch tested with PRs 67707, 62420). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

svcacct: support jose.OpaqueSigner and push errors to token generator creation

```release-note
NONE
```

Kubernetes-commit: 166a1356e83b1c271c0d58aa4d3fb69bab713072
2018-08-23 23:50:20 +00:00
Kubernetes Publisher c106140daf Merge pull request #66971 from tnozicka/informer-watcher
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

#50102 Task 2: Add UntilWithSync

**What this PR does / why we need it**:
This is a split off from https://github.com/kubernetes/kubernetes/pull/50102 to go in smaller pieces.

Introduces UntilWithSync based on informer.

**Needs https://github.com/kubernetes/kubernetes/pull/66906 first**
/hold

**Release note**:
```release-note
NONE
```

/priority important-soon
/kind bug
(bug after the main PR which is this split from)

Kubernetes-commit: c4f355a2ad9692f5459541d4e4d94fcbc5f7d946
2018-08-23 15:50:59 +00:00
Kubernetes Publisher f2ccbd6668 Merge pull request #66936 from jennybuckley/dry-run-webhooks
Automatic merge from submit-queue (batch tested with PRs 67576, 66936). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Support dry run in admission webhooks

**What this PR does / why we need it**:
Follow up to https://github.com/kubernetes/kubernetes/pull/66391
- [x] add DryRun to ```admission.k8s.io/v1beta1.AdmissionReview```
- [x] add DryRunnable to ```admissionregistration.k8s.io/v1beta1.(Valid|Mut)atingWebhookConfiguration```
- [x] add dry run support to (Valid|Mut)atingAdmissionWebhook

Includes all the api-changes outlined by https://github.com/kubernetes/community/pull/2387

/sig api-machinery

**Release note**:
```release-note
To address the possibility dry-run requests overwhelming admission webhooks that rely on side effects and a reconciliation mechanism, a new field is being added to admissionregistration.k8s.io/v1beta1.ValidatingWebhookConfiguration and admissionregistration.k8s.io/v1beta1.MutatingWebhookConfiguration so that webhooks can explicitly register as having dry-run support. If a dry-run request is made on a resource that triggers a non dry-run supporting webhook, the request will be completely rejected, with "400: Bad Request". Additionally, a new field is being added to the admission.k8s.io/v1beta1.AdmissionReview API object, exposing to webhooks whether or not the request being reviewed is a dry-run.
```

Kubernetes-commit: 5a16163c87fe2a90916a51b52771a668bcaf2a0d
2018-08-23 03:49:14 +00:00
Kubernetes Publisher 5673c9ff57 Merge pull request #58679 from CaoShuFeng/admission_webhook
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

support annotations for admission webhook

Depends on: https://github.com/kubernetes/kubernetes/pull/58143
**Release note**:
```release-note
Support annotations for remote admission webhooks.
```

Kubernetes-commit: 4e76bb487e50996468bea6638f8ade45911953de
2018-08-22 23:51:22 +00:00
Kubernetes Publisher b75a0686c5 Merge pull request #67635 from nikhita/customresource-subresource-patch-04
Automatic merge from submit-queue (batch tested with PRs 67298, 67518, 67635, 67673). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix unstructured metadata accessors to respect omitempty semantics

Fixes #67541
Fixes #48211
Fixes #49075
Follow up of #67562

`ObjectMeta` has fields with `omitempty` json tags. This means that when the fields have zero values, they should not be persisted in the object.

Before this PR, some of the metadata accessors for unstructured objects did not respect these semantics i.e they would persist a field even if it had a zero value.

This PR updates the accessors so that the field is removed from the unstructured object map if it contains a zero value.

/sig api-machinery
/kind bug
/area custom-resources
/cc sttts liggitt yue9944882 roycaihw
/assign sttts liggitt

**Release note**:

```release-note
NONE
```

Kubernetes-commit: ce8a6285dfa0bcc96e6f8ef0e21ef40f958930c7
2018-08-22 03:47:48 +00:00
Kubernetes Publisher 3f04333002 Merge pull request #67298 from sylr/logging-calltrace
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Log real file's name and line

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

Have correct location of emission in the logs

**Release note**:

pkg/kubectl/util/logs & staging/src/k8s.io/apiserver/pkg/util/logs
use `glog.info(...)` but this function is not made to be wrapped because
the underlying mechanism use a fixed call trace length to determine
where the log has been emited.

This results is having `logs.go:49` in the logs which is in the body
of the wrapper function and thus useless.

Instead use `glog.infoDepth(1, ...)` which tells the underlying mechanism
to go back 1 more level in the call trace to determine where the log
has been emitted.

Kubernetes-commit: 70bc7f687707c7df4d182a14f2089b6e87992db1
2018-08-22 03:45:58 +00:00
Dr. Stefan Schimanski cfb1e16b55 apiserver: unify handling of unspecified options in authn+z
Kubernetes-commit: 0ede948e47d33474a4e30c845d7896c58a319e39
2018-08-21 16:42:13 +02:00
Kubernetes Publisher 1fcab2fe23 Merge pull request #67617 from liggitt/authz-details
Automatic merge from submit-queue (batch tested with PRs 67493, 67617, 67582, 67337). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

limit forbidden error to details of what was forbidden

cleans up output from https://github.com/kubernetes/kubernetes/pull/65906#discussion_r210048853

/assign @smarterclayton

```release-note
NONE
```

Kubernetes-commit: b8c1e34df1e215dbe9f36632f3c6a0757af79fb0
2018-08-21 07:45:39 +00:00
Kubernetes Publisher be087c88a4 Merge pull request #67596 from nikhita/add-apimachinery-label-owners
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add sig/api-machinery label to apimachinery OWNERS files

Inspired by https://github.com/kubernetes/kubernetes/pull/67548. List of OWNERS files taken from https://github.com/kubernetes/community/blob/master/sig-api-machinery/README.md#subprojects.

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 8f4ab6fe7635983443ebef7fde5b9c8861bef5bb
2018-08-20 23:47:24 +00:00
Kubernetes Publisher 475d9188e0 Merge pull request #67386 from CaoShuFeng/audit_annotation_object
Automatic merge from submit-queue (batch tested with PRs 55600, 67386). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update Annotations description about audit.Event

ref: https://github.com/kubernetes/kubernetes/pull/58679#discussion_r209375632

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

**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 #

**Special notes for your reviewer**:
/assign @liggitt

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 4c5e6156525b96b72961b86ff5bd82c44ea0cd96
2018-08-20 19:49:03 +00:00
Kubernetes Publisher 850c31c762 Merge pull request #67041 from tristanburgess/50342_error_handling_refinement_for_serialization_encode
Automatic merge from submit-queue (batch tested with PRs 67041, 66948). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

50342: Establish '406 Not Acceptable' response for protobuf serializa…

…tion 'errNotMarshalable'

     - Added metav1.Status() that enforces '406 Not Acceptable' response if
    protobuf serialization is not fully supported for the API resource type.
     - JSON and YAML serialization are supposed to be more completely baked
    in, so serialization involving those, and general errors with seralizing
    protobuf, will return '500 Internal Server Error'.
	- If serialization failure occurs and original HTTP status code is
    error, use the original status code, else use the serialization failure
    status code.
     - Write encoded API responses to intermediate buffer
     - Use apimachinery/runtime::Encode() instead of
    apimachinery/runtime/protocol::Encode() in
    apiserver/endpoints/handlers/responsewriters/writers::SerializeObject()
     - This allows for intended encoder error handling to fully work, facilitated by
    apiserver/endpoints/handlers/responsewriters/status::ErrorToAPIResponse() before officially
    writing to the http.ResponseWriter
     - The specific part that wasn't working by ErrorToAPIResponse() was the
    HTTP status code set. A direct call to
    http.ResponseWriter::WriteHeader(statusCode) was made in
    SerializeObject() with the original response status code, before
    performing the encode. Once this
    method is called, it can not again update the status code at a later
    time, with say, an erro status code due to encode failure.
     - Updated relevant apiserver unit test to reflect the new behavior
    (TestWriteJSONDecodeError())
     - Add build deps from make update for protobuf serializer

**What this PR does / why we need it**:
This PR fixes a bug that was blocking extensible error handling in the case that serializing response data fails, and implements a '406 Not Acceptable' status code response if protobuf marshal definitions are not implemented for an API resource type. See commit message for further details.

**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 #50342

**Special notes for your reviewer**:

**Release note**:

```release-note
Fixed a bug that was blocking extensible error handling when serializing API responses error out. Previously, serialization failures always resulted in the status code of the original response being returned. Now, the following behavior occurs:
   - If the serialization type is application/vnd.kubernetes.protobuf, and protobuf marshaling is not implemented for the requested API resource type, a '406 Not Acceptable is returned'.
   - If the serialization type is 'application/json':
        - If serialization fails, and the original status code was an failure (e.g. 4xx or 5xx), the original status code will be returned.
        - If serialization fails, and the original status code was not a failure (e.g. 2xx), the status code of the serialization failure will be returned. By default, this is '500 Internal Server Error', because JSON serialization is our default, and not supposed to be implemented on a type-by-type basis.

```

Kubernetes-commit: 363e34124da0ee8c23064e51ed18ef280fba64a7
2018-08-18 05:49:18 +00:00
Kubernetes Publisher 41863d9181 Merge pull request #65779 from cblecker/mergo-update
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update github.com/imdario/mergo to v0.3.5

**What this PR does / why we need it**:
Updates github.com/imdario/mergo library to v0.3.5. We were pinned because of a functionality change in the dependency, however, a new function was introduced with similar functionality to the old.

There is apparently some Debian packaging issues (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878254) because of this. I'm still not clear what those are, unless they are forcing the library to update, as opposed to using our `vendor/`.

That said, this will allow for some of those vendor conflicts to resolve for anyone else who is using client-go, so that's at least worthwhile.

**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 #27543, fixes https://github.com/kubernetes/client-go/issues/431

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```

Kubernetes-commit: 6b4135267911b6c10ed536308d29d2a7c453eef6
2018-08-18 01:54:15 +00:00
Kubernetes Publisher 226eeadaa9 Merge pull request #67169 from mbohlool/proto_fix
Automatic merge from submit-queue (batch tested with PRs 67062, 67169, 67539, 67504, 66876). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix Proto Generator to not assign types to packages they don't belong to

Before this PR, types were assign to the first package they defined or being used. This result in wrong import statements. The change also fixes what #67158 tries to fix as the package path for protos will never empty.

An step forward from #67158

/assign @sttts @smarterclayton

Kubernetes-commit: 97215fe29dbef2e42a2531caa1786b3f02555d5d
2018-08-17 21:58:21 +00:00
Kubernetes Publisher 2911404fb6 Merge pull request #67060 from sttts/sttts-unify-insecure-serving
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kube-{apiserver,ctrl-mgr}: unify into DeprecatedInsecureServingOptions

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

**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 #

**Special notes for your reviewer**:

**Release note**:
```release-note

```

Kubernetes-commit: b9544382baf4a0a366dd01e05e585f8556993754
2018-08-17 17:54:36 +00:00
Kubernetes Publisher 2f9b954f57 Merge pull request #66244 from sigma/pr/update-pb-ext
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update github.com/matttproud/golang_protobuf_extensions to 1.0.1

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

This updates github.com/matttproud/golang_protobuf_extensions to a released
version.
There's no significant change in the code itself, and the corresponding
tests (which are not vendored) behave better with vgo (see details in #65683).

**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
```

Kubernetes-commit: 99c17d89c72c58ccefcfd0d0f973bd6c62fbd1bd
2018-08-17 05:56:01 +00:00
Kubernetes Publisher 7817d8061e Merge pull request #64601 from hzxuzhonghu/cm-dynamic-loglevel-set
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Other components support set log level dynamically

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

#63777 introduced a way to set glog.logging.verbosity dynamically.
We should enable this for all other components, which is specially useful in debugging.

**Release note**:

```release-note
Expose `/debug/flags/v` to allow kubelet dynamically set glog logging level.  If want to change glog level to 3, you only have to send a PUT request like `curl -X PUT http://127.0.0.1:8080/debug/flags/v -d "3"`.
```

Kubernetes-commit: cffa2aed0e4f3a3723d1cf977e3386dbeb1aa046
2018-08-16 14:14:39 +00:00
Kubernetes Publisher 14b38d2723 Merge pull request #67099 from jennybuckley/dry-run-admission-3
Automatic merge from submit-queue (batch tested with PRs 67396, 67097, 67395, 67365, 67099). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add unit tests for webhooks with dry run

**What this PR does / why we need it**:
Fixes an issue with https://github.com/kubernetes/kubernetes/pull/67085 and adds a couple test cases that would catch it.

@lavalamp

**Release note**:

```release-note
NONE
```

Kubernetes-commit: c582a37cae02b4d1a850e6668ea8ea0a81dcd204
2018-08-16 14:12:10 +00:00
Kubernetes Publisher e8162ee320 Merge pull request #67335 from fqsghostcloud/fix-invalid-typo
Automatic merge from submit-queue (batch tested with PRs 67294, 67320, 67335, 67334, 67325). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix typo

Kubernetes-commit: 2bfe7028ac837993d104fed6b2750384e57279f4
2018-08-16 14:12:05 +00:00
Kubernetes Publisher c332bfeefa Merge pull request #66906 from tnozicka/rename-until
Automatic merge from submit-queue (batch tested with PRs 67071, 66906, 66722, 67276, 67039). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

#50102 Task 1: Move apimachinery/pkg/watch.Until into client-go/tools/watch.UntilWithoutRetry

**What this PR does / why we need it**:
This is a split off from https://github.com/kubernetes/kubernetes/pull/50102 to go in smaller pieces.

Moves `apimachinery/pkg/watch.Until` into `client-go/tools/watch.UntilWithoutRetry` and adds context so it is cancelable.

**Release note**:
```release-note
NONE
```

**Dev release note**:
```dev-release-note
`apimachinery/pkg/watch.Until` has been moved to `client-go/tools/watch.UntilWithoutRetry`.
While switching please consider using the new `client-go/tools/watch.UntilWithSync` or `client-go/tools/watch.Until`.
```

/cc @smarterclayton @kubernetes/sig-api-machinery-pr-reviews
/milestone v1.12
/priority important-soon
/kind bug
(bug after the main PR which is this split from)

Kubernetes-commit: b6f0aed056ab94fef0b6f54e1ca1d66a5fc228b3
2018-08-16 14:12:03 +00:00
Kubernetes Publisher a79ff62589 Merge pull request #67207 from luxas/remove_shared_config_defaulting
Automatic merge from submit-queue (batch tested with PRs 66602, 67178, 67207, 67125, 66332). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Remove defaulting from shared ComponentConfig types

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

As @deads2k commented in kubernetes/community#2354, we should not register defaults for the shared componentconfig types as it gets very hard for consumer to opt-out of the default defaulting funcs. Instead, the package provides a  `DefaultFoo` function the consuming API group can call if it wants to as an opt-in in `SetDefaults_Bar` (where `Bar` wraps `Foo` as a field)

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

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
/assign @sttts @liggitt @deads2k

Kubernetes-commit: 94a754c794d41287ba3d009fb96dfa24f088e175
2018-08-16 14:09:49 +00:00
Kubernetes Publisher 587698629b Merge pull request #67178 from cblecker/cfssl
Automatic merge from submit-queue (batch tested with PRs 66602, 67178, 67207, 67125, 66332). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Vendor cfssl/cfssljson utilities

**What this PR does / why we need it**:
Vendors the `cfssl` and `cfssljson` tools. Updates `kube::util::ensure-cfssl` to use them.

**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 #66995, fixes #60070

**Special notes for your reviewer**:
1. Add cfssl/cfssljson ot the required bins for saving
2. Manually cloned/checked out the new dependencies to my gopath. `godep restore` doesn't pull them down because they aren't required or already in the `Godeps.json`. Used @BenTheElder's list here: https://github.com/kubernetes/kubernetes/issues/66995#issuecomment-410594532
3. `hack/godep-save.sh` to add the packages and dependencies to godep
4. Fixed two bugs when building:
  a. `golang.org/x/crypto` needed to be updated
  b. `github.com/cloudflare/cfssl` needed to be updated to 56268a613a so we can vendor their fork of `crypto/tls`, as we discard their modified vendored stdlib.
5. Update staging godeps
6. Update the `kube::util::ensure-cfssl` to install from vendor

**Release note**:
```release-note
NONE
```

Kubernetes-commit: 818e632c1fde5fb01bc8ccf9b9ee6201f33a28b4
2018-08-16 14:07:36 +00:00
Kubernetes Publisher 4934560e50 Merge pull request #67209 from liggitt/clarify-forbidden-message
Automatic merge from submit-queue (batch tested with PRs 67058, 67083, 67220, 67222, 67209). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Make the request attributes clearer in forbidden messages

This makes the resource and API group components of a forbidden message explicit (including the "" core API group), to help people trying to match up forbidden errors to required policy changes.

```release-note
NONE
```

Kubernetes-commit: d0f278e1dca3acceeb542c9daf2a03e6a0b06398
2018-08-16 14:05:31 +00:00
Kubernetes Publisher fdc2b6d0bb Merge pull request #67159 from luxas/shared_config_types_conversion
Automatic merge from submit-queue (batch tested with PRs 67160, 67090, 67159, 66866, 62111). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Write manually-created conversion funcs for shared ComponentConfig types

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

Due to how `conversion-gen` works today, it only discovers manually-generated conversion functions when creating autogenerated content for a referencing package. So in the example of `pkg/apis/componentconfig` referencing `k8s.io/apiserver/pkg/apis/config` types, no "native" conversion functions will be called from `pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go` unless these `Convert_*` functions exist in `k8s.io/apiserver/pkg/apis/config/v1alpha1/`.

We might consider this a bug in `conversion-gen`, I don't know, but to unblock the process of moving componentconfigs out of `pkg/apis/` I'm sending this PR so https://github.com/kubernetes/kubernetes/pull/66722 eventually can merge.

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

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
/assign @liggitt @sttts

Kubernetes-commit: 35cc40e1e09b2fe7437695803af11019d191ecab
2018-08-10 01:20:34 +00:00
Christoph Blecker 2b84ef4230 Update staging godeps
Kubernetes-commit: c14a9c7c2be3f66efc62297598e4c1b98fedcb4c
2018-08-09 14:42:48 -07:00
Lucas Käldström 9747204de4 Remove defaulting from shared ComponentConfig types
Kubernetes-commit: 1b2346584f9c7eb78de96305dfa8f5298a4d9827
2018-08-09 23:33:47 +03:00
Kubernetes Publisher 8daff1f063 Merge pull request #67011 from charrywanganthony/default_admissionPlugins_doc
Automatic merge from submit-queue (batch tested with PRs 65297, 67179, 67116, 67011, 66842). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

list the default enabled admission plugins

**Which issue(s) this PR fixes** :
Fixes #66979

**Release note**:
```release-note
NONE
```

Kubernetes-commit: d04d7b4db2d6dcb9efb2b431ebc2bed0341a5042
2018-08-09 18:01:21 +00:00
Kubernetes Publisher db69d648bf Merge pull request #65891 from CaoShuFeng/audit_v1_stable
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

upgrade Audit api version to stable

Partial Fix: https://github.com/kubernetes/kubernetes/issues/65266

TODO:
    use v1 version of advanced audit policy in [kubeadm](86b9a53226/cmd/kubeadm/app/util/audit/utils.go (L29)), [gce script](86b9a53226/cluster/gce/gci/configure-helper.sh (L743)), [kubemark](86b9a53226/test/kubemark/resources/start-kubemark-master.sh (L349))

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

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
audit.k8s.io api group is upgraded from v1beta1 to v1.
Deprecated element metav1.ObjectMeta and Timestamp are removed from audit Events in v1 version.
Default value of option --audit-webhook-version and --audit-log-version will be changed from `audit.k8s.io/v1beta1` to `audit.k8s.io/v1` in release 1.13
```

Kubernetes-commit: 28b2b2128723d382ce241e9b67c7e875b9dfba78
2018-08-08 13:46:58 +00:00
Kubernetes Publisher 1b22bcf045 Merge pull request #66559 from yue9944882/chore/clean-up-legacyreststorage-test
Automatic merge from submit-queue (batch tested with PRs 67085, 66559, 67089). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

cleaning up unused LegacyRestStorage for apiserver test

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

As the title

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

Kubernetes-commit: f8b6c59494d63fa7458fe7981480f19ed8223db8
2018-08-07 21:47:37 +00:00
Kubernetes Publisher 9a8af0d13f Merge pull request #66807 from caesarxuchao/remove-connectrequest
Automatic merge from submit-queue (batch tested with PRs 66196, 67016, 66807, 67023). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Make admission webhooks conversion convert CONNECT body correctly

Fix #59759.

1. Make apiserver pass connectRequest.Options directly to the admission layer. All other information in rest.ConnectRequest is present in admission attributes.
2. Make the scope.Kind of pod/attach, pod/exec, pod/portforward, node/proxy, service/proxy to their respective options Kind, instead of the parent Kind.

I've tested it locally, the conversion is working correctly for "kubectl attach". I'll add e2e tests.

I'll keep this to myself until I add the tests, but cc @mikedanese @liggitt RE. https://github.com/kubernetes/kubernetes/pull/66633.

Kubernetes-commit: d1636b8019fa042eb1135263b00293b1c806b1d7
2018-08-07 21:46:05 +00:00
Tomas Nozicka 23cab9a1e3 Update Godeps
Kubernetes-commit: f6836df5dd104bde62d80be411582c5d08dcaa65
2018-08-07 20:15:14 +02:00
Kubernetes Publisher cb2a40d6ba Merge pull request #66083 from jennybuckley/connect-dry-run
Automatic merge from submit-queue (batch tested with PRs 66512, 66946, 66083). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Explicitly disable dry run for connect

**What this PR does / why we need it**:
It isn't clear whether or not dry run would work on connect. I think we should explicitly disable it so no one can try to dry run a connect request and accidentally open a connection.

**Release note**:
```release-note
kube-apiserver: setting a `dryRun` query parameter on a CONNECT request will now cause the request to be rejected, consistent with behavior of other mutating API requests. Examples of CONNECT APIs are the `nodes/proxy`, `services/proxy`, `pods/proxy`, `pods/exec`, and `pods/attach` subresources. Note that this prevents sending a `dryRun` parameter to backends via `{nodes,services,pods}/proxy` subresources.
```

Kubernetes-commit: e69cc51a8306f317bc63763c89f7b0d31665e63f
2018-08-07 05:47:41 +00:00
Kubernetes Publisher 40d7aee31f Merge pull request #66512 from jennybuckley/openapi-ignore-prefix
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Skip building openapi for ignored paths

alternative to #66286

/kind bug
Fixes #66285

```release-note
NONE
```

Kubernetes-commit: 235badbe5ae46a3105ba5eb6a0ad3044696b52d2
2018-08-07 05:45:36 +00:00
Kubernetes Publisher d41fc60dee Merge pull request #66391 from jennybuckley/dry-run-admission
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Support dry run in admission plugins

**What this PR does / why we need it**:
Adds support for dry run to admission controllers as outlined by https://github.com/kubernetes/community/pull/2387

- [x] add IsDryRun() to admission.Attributes interface
- [x] add dry run support to NamespaceAutoProvision
- [x] add dry run support to ResourceQuota
- [x] add dry run support to EventRateLimit

The following is being done in a follow up PR:
- [x] add DryRun to ```admission.k8s.io/v1beta1.AdmissionReview```
- [x] add DryRunnable to ```admissionregistration.k8s.io/v1beta1.(Valid|Mut)atingWebhookConfiguration```
- [x] add dry run support to (Valid|Mut)atingAdmissionWebhook

/sig api-machinery

**Release note**:
```release-note
In clusters where the DryRun feature is enabled, dry-run requests will go through the normal admission chain. Because of this, ImagePolicyWebhook authors should especially make sure that their webhooks do not rely on side effects.
```

Here is a list of the admission controllers that were considered when making this PR:
- AlwaysAdmit: No side effects
- AlwaysPullImages: No side effects
- LimitPodHardAntiAffinityTopology: No side effects
- DefaultTolerationSeconds: No side effects
- AlwaysDeny: No side effects
- EventRateLimit: Has side possible effect of affecting the rate, skipping this entire plugin in dry-run case since it won't correspond to an actual write to etcd anyway
- DenyEscalatingExec: No side effects
- DenyExecOnPrivileged: Deprecated, and has no side effects
- ExtendedResourceToleration: No side effects
- OwnerReferencesPermissionEnforcement: No side effects
- ImagePolicyWebhook: No side effects* (*this uses a webhook but it is very specialized. It only sees pod container images, for the purpose of accepting or rejecting certain image sources, so it is very unlikely that it would rely on side effects.)
- LimitRanger: No side effects
- NamespaceAutoProvision: Has possible side effect of creating a namespace, skipping the create in the dry-run case
- NamespaceExists: No side effects
- NodeRestriction: No side effects
- PodNodeSelector: No side effects
- PodPreset: No side effects
- PodTolerationRestriction: No side effects
- Priority: No side effects
- ResourceQuota: Has side possible effect of taking up quota, will only check quota but skip changing quota in the dry-run case
- PodSecurityPolicy: No side effects
- SecurityContextDeny: No side effects
- ServiceAccount: No side effects
- PersistentVolumeLabel: No side effects
- PersistentVolumeClaimResize: No side effects
- DefaultStorageClass: No side effects
- StorageObjectInUseProtection: No side effects
- Initializers: No side effects
- NamespaceLifecycle: No side effects
- MutatingAdmissionWebhook: Same as below
- ValidatingAdmissionWebhook: Has possible side effects depending on if webhook authors depend on side effects and a reconciliation mechanism. To fix this we will expose whether or not a request is dry-run to webhooks through AdmissionReview, and require that all called webhooks understand the field by checking if DryRunnable true is specified in the webhook config. This will be done in a separate PR because it requires an api-change

Kubernetes-commit: 6fe7f9f4b70fce08050e8211af6dee09517baef7
2018-08-07 01:46:14 +00:00
Kubernetes Publisher 2db6bcbcfe Merge pull request #66813 from DylanBLE/pprof
Automatic merge from submit-queue (batch tested with PRs 59030, 64666, 66251, 66485, 66813). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix apiserver pprof redirect bug

**What this PR does / why we need it**:
fix apiserver pprof redirect bug

**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 #66812

**Special notes for your reviewer**:

**Release note**:

```release-note
None
```

Kubernetes-commit: 6afd783dd94b5c8da876e85c6fd59056d9f9f4fe
2018-08-06 21:48:48 +00:00
Kubernetes Publisher 46022518c5 Merge pull request #64666 from CaoShuFeng/admissionregistration_cleanup
Automatic merge from submit-queue (batch tested with PRs 59030, 64666, 66251, 66485, 66813). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

clean up empty dir for admissionregistration

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

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 3ba90d4f0a62848a45bceb78a182c75749278ff6
2018-08-06 21:47:13 +00:00
Kubernetes Publisher fa33d43428 Merge pull request #64517 from sttts/sttts-apiserver-sectioned-flags
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kube-apiserver: output flags in logical sections

<img width="862" alt="bildschirmfoto 2018-06-07 um 16 21 17" src="https://user-images.githubusercontent.com/730123/41105818-d8d68440-6a6e-11e8-91ba-cc682a2c63dd.png">

```release-note
Print kube-apiserver --help flag help in sections.
```

Kubernetes-commit: a160fe94a5b6f27a88761ecc9c2d9aeb60bb774a
2018-08-06 13:47:38 +00:00
Kubernetes Publisher 08953c9d07 Merge pull request #66059 from hanxiaoshuai/apicfg
Automatic merge from submit-queue (batch tested with PRs 66058, 66059). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

move apiserver Configuration to k8s.io/apiserver/pkg/apis/config

**What this PR does / why we need it**:
ref [#2354](https://github.com/kubernetes/community/pull/2354)
**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 #

**Special notes for your reviewer**:
After the related componentconfig  to be moved to staging, LeaderElectionConfiguration and DebuggingConfiguration should be clean up in pkg/apis/componentconfig
**Release note**:

```release-note
NONE
```

Kubernetes-commit: 7dcbdbb1df1c4f4a8553284a9bbb5fabad26a1c2
2018-08-06 13:46:18 +00:00
Kubernetes Publisher 1a377533df Merge pull request #66466 from apelisse/dry-run-struct
Automatic merge from submit-queue (batch tested with PRs 64815, 66823, 66473, 66466). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

dry-run: Use dry-runnable structure

Creates a structures that decides to either by-pass persistence and tries to reproduce the same behavior (without persistence), or just pass along to storage.

This is obviously not finished, I'm would like to get feedback on the direction, is this the direction we'd like to go?

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

**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 #

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```

Kubernetes-commit: 929c8459c30028675cf04511af1a2ddd3b769721
2018-08-06 13:46:17 +00:00
Kubernetes Publisher 3e8b2477c1 Merge pull request #66779 from deads2k/api-05-easy-unit
Automatic merge from submit-queue (batch tested with PRs 66850, 66902, 66779, 66864, 66912). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

add methods to apimachinery to easy unit testing

When unit testing, you often want a selective scheme and codec factory.  Rather than writing the vars and the init function and the error handling, you can simply do

`scheme, codecs := testing.SchemeForInstallOrDie(install.Install)`

@kubernetes/sig-api-machinery-misc
@sttts

```release-note
NONE
```

Kubernetes-commit: 4a54f3f0d6fe73bcced14442b60981819a1744e2
2018-08-06 13:46:16 +00:00
Kubernetes Publisher e16db054ca Merge pull request #65799 from dekkagaijin/fix-headers
Automatic merge from submit-queue (batch tested with PRs 66225, 66648, 65799, 66630, 66619). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Percent-encode illegal characters in user.Info.Extra keys

This percent-encodes characters in `X-Remote-Extra-` and `Impersonate-Extra-` keys which aren't valid for header names per [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.6) (plus "%" to avoid breaking keys which contain them). The API server then blindly unescapes these keys.

Reviewer note:
Old clients sending keys which were `%`-escaped by the user will have their values unescaped by new API servers. New clients sending keys containing illegal characters (or "%") to old API servers will not have their values unescaped. This version skew incompatibility is a compromise discussed in #63682.

Fixes #63682

PTAL @mikedanese

**Release note**:
```release-note
action required: the API server and client-go libraries have been fixed to support additional non-alpha-numeric characters in UserInfo "extra" data keys. Both should be updated in order to properly support extra data containing "/" characters or other characters disallowed in HTTP headers.
```

Kubernetes-commit: 6715f139292bfde5e4030e2e3f8077da04cc6d72
2018-08-06 13:45:05 +00:00
Tomas Nozicka a36256e7e7 Update Godeps
Kubernetes-commit: 41f5c3dbf55c5b02a3067789b0b835c6eb6f3bd3
2018-08-06 14:49:19 +02:00
David Eads 554da26ec5 generated
Kubernetes-commit: efb160c945587fbfdde3d7b24952cacb55d90450
2018-08-01 10:18:41 -04:00
Kubernetes Publisher 25e79651c7 Merge pull request #66616 from smarterclayton/timeout_error
Automatic merge from submit-queue (batch tested with PRs 66554, 66616, 66695, 66681). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Make the timeout error more specific so users can find it

Kubernetes-commit: 090cafadecbfb85d7c99199c4240b8f02653d250
2018-07-27 19:00:41 +00:00
Kubernetes Publisher fd7fa317be Merge pull request #66333 from hzxuzhonghu/audit
Automatic merge from submit-queue (batch tested with PRs 66333, 65542). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add String method to audit.Backend interface

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

Add `String()` method to `audit.Backend` interface.  Should enforce backend to implement this method.
Because https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/audit/union.go#L65

We encountered this issue when we upgrade recently and we implemented our private backend.

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 630c780f378bfb4a50adef825b1062ff7bf3750a
2018-07-27 18:58:52 +00:00
Kubernetes Publisher 20058f0b9a Merge pull request #66411 from DirectXMan12/bug/allow-setting-openapi-version-with-sec
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Autoset OpenAPI version w/o SecurityDefinitions

There's code to automatically populate OpenAPI info based on existing
generic apiserver config, but it only fires if securitydefinitions are
present.  This doesn't make much sense, since this info is both required
and independent of security definitions, and there's no easy, generic
way to generate security definitions for an aggregated API server.

**Release note**:
```release-note
Properly autopopulate OpenAPI version field without needing other OpenAPI fields present in generic API server code.
```

Kubernetes-commit: 4e5c781b7dfe70026c1a8870f3e28c711bd57c08
2018-07-24 11:00:07 +00:00
Kubernetes Publisher 0c7592b321 Merge pull request #66252 from apelisse/dry-run
Automatic merge from submit-queue (batch tested with PRs 66252, 66518). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

dry-run: Add DryRunAll value

Re-open of #66139 that ended-up being broken ?

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

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 2809a09b1c2b8782aaebd246e0477e3965f0c70f
2018-07-24 10:58:04 +00:00
Kubernetes Publisher 2a6ed8ed39 Merge pull request #66264 from joejulian/workaround_for_slow_arm64_math
Automatic merge from submit-queue (batch tested with PRs 66341, 66405, 66403, 66264, 66447). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

extend timeout to workaround slow arm64 math

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

The math/big functions are slow on arm64. There is improvement coming
with go1.11 but until such time as that version can be used to build releases,
if a server uses rsa certificates on arm64, the math load for the multitude
of watches over-taxes the ability of the processor and the TLS connections
time out. Retries will also not succeed and serve to exacerbate the problem.

By extending the timeout, the TLS connections will eventually be
successful and the load will drop.

**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 #64649

**Special notes for your reviewer**:
This was tested on a Raspberry Pi 3

**Release note**:
```release-note
Extend TLS timeouts to work around slow arm64 math/big
```

Kubernetes-commit: b914542b9c9bd18bea4854e6f59fc0e35d1d09be
2018-07-21 00:37:02 +00:00
Kubernetes Publisher 361587e353 Merge pull request #66425 from liggitt/delete-admission-panic
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Do not attempt to convert nil object during DELETE webhook admission

Fixes #66412
```release-note
fixes a panic when using a mutating webhook admission plugin with a DELETE operation
```

Kubernetes-commit: 07387782ec8e1824907b1ae5d11a33f1afcb1548
2018-07-20 20:38:48 +00:00
Kubernetes Publisher 8a13127950 Merge pull request #65572 from yue9944882/fixes-admission-operation-mismatch-for-create-on-update
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fixes operation for "create on update"

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

Set operation to `admission.Create` for create-on-update requests.

**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 #65553

**Special notes for your reviewer**:

**Release note**:

```release-note
Checks CREATE admission for create-on-update requests instead of UPDATE admission
```

Kubernetes-commit: 8770d12494f58f19cd5298853b9749937140e970
2018-07-19 20:25:24 +00:00
Kubernetes Publisher 34d6e3550c Merge pull request #65771 from smarterclayton/untyped
Automatic merge from submit-queue (batch tested with PRs 65771, 65849). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add a new conversion path to replace GenericConversionFunc

reflect.Call is very expensive. We currently use a switch block as part of AddGenericConversionFunc to avoid the bulk of top level a->b conversion for our primary types which is hand-written. Instead of having these be handwritten, we should generate them.

The pattern for generating them looks like:

```
scheme.AddConversionFunc(&v1.Type{}, &internal.Type{}, func(a, b interface{}, scope conversion.Scope) error {
  return Convert_v1_Type_to_internal_Type(a.(*v1.Type), b.(*internal.Type), scope)
})
```

which matches AddDefaultObjectFunc (which proved out the approach last year). The
conversion machinery should then do a simple map lookup based on the incoming types and invoke the function.  Like defaulting, it's up to the caller to match the types to arguments, which we do by generating this code.  This bypasses reflect.Call and in the future allows Golang mid-stack inlining to optimize this code.

As part of this change I strengthened registration of custom functions to be generated instead of hand registered, and also strengthened error checking of the generator when it sees a manual conversion to error out.  Since custom functions are automatically used by the generator, we don't really have a case for not registering the functions.

Once this is fully tested out, we can remove the reflection based path and the old registration methods, and all conversion will work from point to point methods (whether generated or custom).

Much of the need for the reflection path has been removed by changes to generation (to omit fields) and changes to Go (to make assigning equivalent structs easy).

```release-note
NONE
```

Kubernetes-commit: d2cc34fb07138deeacb220126e76a0cb279f340b
2018-07-19 20:24:21 +00:00
Kubernetes Publisher fb60137442 Merge pull request #64690 from chenyb4/fix_typo
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix TestWantsExternalKubeClientSet describe clientset typo

Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>

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

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 57321c31a86224cb05d06cde7252d46eba8d6649
2018-07-18 12:24:23 +00:00
Kubernetes Publisher 197812bb6f Merge pull request #66263 from hzxuzhonghu/patch-misc
Automatic merge from submit-queue (batch tested with PRs 66212, 66256, 66263, 66193). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

remove useless codec param from strategicPatchObject

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

`codec` param is not used, and was introduced in 2016.

**Release note**:

```release-note
NONE
```

Kubernetes-commit: 849603d5b5bf224c297bcece579b4e68128359aa
2018-07-17 12:13:49 +00:00
Yann Hodique 4261a0f422 update github.com/matttproud/golang_protobuf_extensions to 1.0.1
This updates github.com/matttproud/golang_protobuf_extensions to a released
version.
There's no significant change in the code itself, and the corresponding
tests (which are not vendored) behave better with vgo (see details in #65683).

Kubernetes-commit: c4244a69e08657baf8660b6b0513e2076baaeb48
2018-07-16 08:50:42 -07:00
Kubernetes Publisher 20b2f2fbe2 Merge pull request #65737 from roycaihw/api-linter
Automatic merge from submit-queue (batch tested with PRs 64181, 65737). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

API linter framework and namesMatch API rule

**What this PR does / why we need it**:
Bump kube-openapi dependency to use the [API linter framework](https://github.com/kubernetes/kube-openapi/pull/83) in k/k OpenAPI spec generation procedure.

Currently one API rule is enforced:
"Go field names must be CamelCase. JSON field names must be camelCase. Other than capitalization of the initial letter, the two should almost always match. No underscores nor dashes in either."

**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 #65244

**Special notes for your reviewer**:
Most code change in this PR was generated (~1700 lines). Please see commits for detail.

**Release note**:

```release-note
NONE
```

/sig api-machinery
/cc @pwittrock @mbohlool

Kubernetes-commit: 614e3adda05c5d7189c8485ba7abe1ba7ee501a7
2018-07-14 05:54:22 +00:00
Kubernetes Publisher be6f157c33 Merge pull request #65899 from sttts/sttts-self-signed-fixtures
Automatic merge from submit-queue (batch tested with PRs 65899, 65900). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

apiserver: use self-signed cert fixtures in integration test servers

Kubernetes-commit: 932766231342f1f7d2b8d3063b139c46a8bf9f2b
2018-07-13 21:59:05 +00:00
Kubernetes Publisher ac57779e08 Merge pull request #65105 from apelisse/dry-run
Automatic merge from submit-queue (batch tested with PRs 65105, 62948). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

dry-run: Create Options with dryRun for POST/PUT/PATCH

**What this PR does / why we need it**:
Create new options for Create and Update (through POST/PUT/PATCH).

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

Kubernetes-commit: fe8846196d30eaf327b9cba0991ae60e7a3c4047
2018-07-12 22:02:04 +00:00
Kubernetes Publisher c7ab824d01 Merge pull request #65649 from rsc/fix-printf
Automatic merge from submit-queue (batch tested with PRs 66076, 65792, 65649). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kubernetes: fix printf format errors

These are all flagged by Go 1.11's
more accurate printf checking in go vet,
which runs as part of go test.

```release-note
NONE
```

Kubernetes-commit: 0972ce1accf859b73abb5a68c0adf4174245d4bf
2018-07-12 05:58:19 +00:00
Kubernetes Publisher 07a1d2e3e4 Merge pull request #66033 from liggitt/x509-cleanup
Automatic merge from submit-queue (batch tested with PRs 65931, 65705, 66033). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Remove unused x509 code

We don't intend to use/support these user extraction methods

```release-note
NONE
```

Kubernetes-commit: 4b4408c339bc81c9d96a93d07f163e42bd0f3322
2018-07-11 01:59:01 +00:00
Haowei Cai 7d197bf91a generated
Kubernetes-commit: 3cd919c9fbb902e5a595f0c0c644e45f6ca8750a
2018-07-10 17:53:09 -07:00
Kubernetes Publisher 2eca029519 Merge pull request #65780 from liggitt/AddFieldLabelConversionFuncGVK
Automatic merge from submit-queue (batch tested with PRs 65830, 65780, 65961). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

change field selector conversion registration to be strongly typed

the signature of these methods is misleading... they require a group-version-kind

```release-note
NONE
```

Kubernetes-commit: 4d609cea7f1ccd3840b46e3e2ae83cc6452ab4a7
2018-07-09 17:59:22 +00:00
Kubernetes Publisher 55cfb76302 Merge pull request #65830 from sttts/sttts-apiserver-readwrite-port
Automatic merge from submit-queue (batch tested with PRs 65830, 65780, 65961). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

apiserver: get rid of ReadWritePort in config

Executing removal TODO by making the read write port logic explicit, and not hidden deep in the secure serving code.

Preparation for https://github.com/kubernetes/kubernetes/pull/65832

Kubernetes-commit: f6bbf1f6f8ab856b95baea56ab624672b09662fd
2018-07-09 17:58:34 +00:00