Commit Graph

704 Commits

Author SHA1 Message Date
Kubernetes Publisher
432cc9f726 Merge pull request #65410 from nikhita/cherrypick-jsoniter-bump-1.8
Automatic merge from submit-queue.

Manual cherrypick of #65034 to 1.8: make json serializer case sensitive

fixes partially https://github.com/kubernetes/kubernetes/issues/64612

This PR imports the latest jsoniterator library so that case sensitivity during unmarshalling is optional. The PR also sets Kubernetes json serializer to be case sensitive.

**Release note**:

```release-note
ACTION REQUIRED: Kubernetes JSON deserializer is now case-sensitive to restore compatibility with pre-1.8 servers. If your config files contains fields with wrong case, the config files will be now invalid.
```

/sig api-machinery
/kind bug
/assign caesarxuchao liggitt thockin sttts mbohlool

Kubernetes-commit: 14f8f040a211ecce6f848d1eb73be9c6f759bb93
2018-06-28 12:25:52 +00:00
Nikhita Raghunath
c4202c13a5 update staging godeps
Kubernetes-commit: 9c1f1544ce602fccaf042d005f424637730a230a
2018-06-24 19:36:26 +05:30
Kubernetes Publisher
c7d1a4cb75 Merge pull request #63635 from roycaihw/release-1.8
Automatic merge from submit-queue.

Manual cherrypick of kube-openapi changes for release-1.8

**What this PR does / why we need it**:
Cherry-picks kubernetes/kube-openapi#64 and kubernetes/kube-openapi#67
Fixes bugs that make apiserver panic when aggregating valid but not well formed OpenAPI spec (with empty `Paths`/`Definitions`)

**Release note**:

```release-note
Fixes bugs that make apiserver panic when aggregating valid but not well formed OpenAPI spec
```

/cc @jpbetz
/sig api-machinery

Kubernetes-commit: 4ab16f7d4499fcb3b770b1260fa33855632c7e44
kubernetes-1.8.13 kubernetes-1.8.14 kubernetes-1.8.14-beta.0 kubernetes-1.8.15-beta.0
2018-05-10 18:38:19 +00:00
Haowei Cai
d25bb75a84 generated
Kubernetes-commit: 7cd5eb9ce0d81549a4c86e016bd8c0cd62aba045
2018-05-09 17:04:56 -07:00
Kubernetes Publisher
fad7d0b032 sync: update godeps 2018-04-17 14:37:30 +00:00
Kubernetes Publisher
45cf21002e sync: initially remove files BUILD */BUILD BUILD.bazel */BUILD.bazel 2018-03-15 09:26:55 +00:00
Kubernetes Publisher
04b7cf8ad6 Merge pull request #59891 from jpbetz/automated-cherry-pick-of-#59828-origin-release-1.8
Automatic merge from submit-queue.

Automated cherry pick of #59828: Add a test case for the race in #59822

Cherry pick of #59828 on release-1.8.

#59828: Add a test case for the race in #59822

Kubernetes-commit: fa557ee7921fc8305d4978e66eb653c92ed1a7ce
2018-02-15 02:03:32 +00:00
Kris
209867a87c Add started state to the processor to protect against double starts
This prevents a race condition where the sharedIndexInformer was
causeing the processorListener's run and pop method to be started
twice. That violated the SharedInformer's interface guarantee of
sequential delivery and also caused panics on shutdown.

Kubernetes-commit: 8c8b5071cd0484d3c5a7cfbf1d49b81c0b8afe16
2018-02-13 11:33:21 -08:00
Kris
7cef162dc9 Add a test case for the race in #59822
Kubernetes-commit: 5596045f46c219ee91428b677675a17dd9c97440
2018-02-13 11:32:36 -08:00
Kubernetes Publisher
3a46b5de73 Merge pull request #57771 from cblecker/automated-cherry-pick-of-#57735-upstream-release-1.8
Automatic merge from submit-queue.

Automated cherry pick of #57735: Update boilerplate for 2018

Cherry pick of #57735 on release-1.8.

#57735: Update boilerplate for 2018

Kubernetes-commit: a106d59e49c22bd7e232f080eba18a4c8f4acda9
kubernetes-1.8.7 kubernetes-1.8.8 kubernetes-1.8.8-beta.0 kubernetes-1.8.9-beta.0
2018-01-03 17:53:53 +00:00
Christoph Blecker
e5c4445424 Regenerate all generated code
Kubernetes-commit: c75e2e4260d231eb1021ee353921be90947184fe
2018-01-02 00:21:07 -08:00
Kubernetes Publisher
1b75876d45 Merge pull request #56107 from david-mcmahon/basego-clear
Automatic merge from submit-queue.

Use v0.0.0 gitVersion on branches in support of new .gitattributes solution.

Update bad link as well.
Prefer master branch untyped values.

ref #55353.

Kubernetes-commit: 2eb901553309a391962eaffe73a71fd7196f2a0f
kubernetes-1.8.5 kubernetes-1.8.6 kubernetes-1.8.6-beta.0 kubernetes-1.8.7-beta.0
2017-12-07 04:22:16 +00:00
Kubernetes Publisher
7d1e7662ca Merge pull request #56418 from liggitt/automated-cherry-pick-of-#56415-upstream-release-1.8
Automatic merge from submit-queue.

Automated cherry pick of #56415

Cherry pick of #56415 on release-1.8.

#56415: Include ServerName in tls transport cache key

Kubernetes-commit: 39d73e31a3ba741ad591535488cd2942aa4e4759
2017-12-07 04:22:01 +00:00
Kubernetes Publisher
7a03699350 Merge pull request #55457 from dixudx/automated-cherry-pick-of-#eac2049-upstream-release-1.8
Automatic merge from submit-queue.

Automated cherry pick of eac2049

Cherry pick of eac2049 on release-1.8.

eac2049: avoid Registry in fake REST client

Kubernetes-commit: c1d1b92688176f37893d81cf6d7a3abc5663a795
kubernetes-1.8.4 kubernetes-1.8.5-beta.0
2017-12-07 04:22:00 +00:00
Jordan Liggitt
b83876e826 Include ServerName in tls transport cache key
Kubernetes-commit: 079d5e5fffad73840943d379bb5e60bc4845bd6a
2017-11-27 10:05:26 -05:00
David McMahon
b0a657da60 Use v0.0.0 gitVersion on branches in support of new .gitattributes solution.
ref #55353.

Kubernetes-commit: e576bfa209bce1505efda2695e9e7f4c2fed80f1
2017-11-20 16:25:57 -08:00
Di Xu
ede7254aff fix errors
Kubernetes-commit: 8aad68e0e7c9a0518dd40253a1e9aae6dc18c7e7
2017-11-12 18:06:32 +08:00
Kubernetes Publisher
8b23653518 Merge pull request #55493 from david-mcmahon/automated-cherry-pick-of-#55353-upstream-release-1.8
Automatic merge from submit-queue.

Automated cherry pick of #55353

Cherry pick of #55353 on release-1.8.

#55353: Capture git export-subst strings in version.sh for 'git

Kubernetes-commit: 244755cbe49b89530d1ff8d493d0e2c1d7871b65
2017-11-11 13:50:19 -08:00
David McMahon
802f4da84a Capture git export-subst strings in version.sh for 'git archive' use.
Eliminate the need to update pkg/version/base.go on release branch tagging.

Kubernetes-commit: b356c6968d63bce3640d9f931843da83757bd8f4
2017-11-08 15:37:49 -08:00
Joe Betz
584b13d350 Kubernetes version v1.8.4-beta.0 file updates
Kubernetes-commit: 2b4a4d18ec4c71c0b99bb029626a65e0452726bf
kubernetes-1.8.4-beta.0
2017-11-08 10:59:49 -08:00
Joe Betz
7656f45ccb Kubernetes version v1.8.3 file updates
Kubernetes-commit: f0efb3cb883751c5ffdbe6d515f3cb4fbe7b7acd
kubernetes-1.8.3
2017-11-08 10:26:56 -08:00
Kubernetes Publisher
3f762e31a5 Merge pull request #54993 from weiwei04/automated-cherry-pick-of-#54921-upstream-release-1.8
Automatic merge from submit-queue.

Automated cherry pick of #54921

Cherry pick of #54921 on release-1.8.

#54921: rename metric reflector_xx_last_resource_version to

Kubernetes-commit: f12e7b803b97096072cdde4e7d17b7dd9c8ca8b2
2017-12-07 04:21:45 +00:00
Wei Wei
d876f8e6ff rename metric reflector_xx_last_resource_version to reflector_last_resource_version{name="xx"}
Kubernetes-commit: ea3c0922b52f41629f8f4b16e2d7941b67e3b6e7
2017-11-01 16:34:18 +08:00
Kubernetes Publisher
3c95964228 Merge pull request #54418 from tiran/automated-cherry-pick-of-#54257-upstream-release-1.8
Automatic merge from submit-queue.

Automated cherry pick of #54257

Cherry pick of #54257 on release-1.8.

#54257: Use GetByKey() in typeLister_NonNamespacedGet

**Release note**:
```
Optimize excessive memory allocation in resource listers on GET requests
```

Kubernetes-commit: 4eba842e01f33a5e2d85a2f4aae90a52ad27f6fe
2017-10-27 08:48:44 +00:00
Joe Betz
60bf397d79 Kubernetes version v1.8.3-beta.0 file updates
Kubernetes-commit: 376901d5a7f3f5062a37c4b15f93329125eb92b5
kubernetes-1.8.3-beta.0
2017-10-26 12:15:38 +00:00
Joe Betz
35ccd43360 Kubernetes version v1.8.2 file updates
Kubernetes-commit: bdaeafa71f6c7c04636251031f93464384d54963
kubernetes-1.8.2
2017-10-26 12:15:18 +00:00
Christian Heimes
05b8feb1c5 Regenerate auto-generated code
hack/update-codegen.sh
hack/update-bazel.sh

Signed-off-by: Christian Heimes <cheimes@redhat.com>

Kubernetes-commit: a32c8f356d793bf19f15f70b7fd4c8bee409f15e
2017-10-19 22:19:03 +02:00
Joe Betz
1fb83015be Kubernetes version v1.8.2-beta.0 file updates
Kubernetes-commit: 7dede35cf22a551f594ffcca17121cdeb599e9c6
kubernetes-1.8.2-beta.0
2017-10-11 16:47:11 -07:00
Joe Betz
2ae4542304 Kubernetes version v1.8.1 file updates
Kubernetes-commit: f38e43b221d08850172a9a4ea785a86a3ffa3b3a
kubernetes-1.8.1 v5.0.1
2017-10-16 06:42:01 +00:00
Solly Ross
456cbc0118 avoid Registry in fake REST client
Previously, the fake RESTClient in client-go required a Registry.  It
used the Registry to fetch the GroupVersion for the fake client.
However, the way it did so was dubious in some cases (it hard-coded the
default API group in places), and not strictly necssary.

This updates the fake client to just recieve the GroupVersion and
internal group name directly, instead of requiring a Registry, so that
it can be consumed in unit tests where a Registry isn't necessarily
readily available (e.g. elsewhere in client-go).

Kubernetes-commit: af2bb704411263e725c360f68d13c8cf233ecf91
2017-10-04 18:42:54 -04:00
Adam Worrall
089ccd91f6 Kubernetes version v1.8.1-beta.0 file updates
Kubernetes-commit: f216c2fc81d8994c4f2beb4ac1c4c15628efeec3
kubernetes-1.8.1-beta.0
2017-09-28 16:09:04 -07:00
Adam Worrall
35874c597f Kubernetes version v1.8.0 file updates
Kubernetes-commit: 0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4
kubernetes-1.8.0 v5.0.0
2017-10-16 06:42:01 +00:00
Adam Worrall
9f1049ed58 Kubernetes version v1.8.0-rc.1 file updates
Kubernetes-commit: c8a2429cb355d357d90174d3744a930dbd0bbff6
kubernetes-1.8.0-rc.1
2017-09-22 18:23:16 -07:00
Kubernetes Publisher
afb4606c45 Merge remote-tracking branch 'origin/master' into release-1.8
Kubernetes-commit: bfab46cf2543ac17f8c0e75b80631555ac7a6aed
2017-09-22 11:38:05 +00:00
Kubernetes Publisher
b5186781b3 Merge remote-tracking branch 'origin/master' into release-1.8
Kubernetes-commit: d064982571d6e16e4a71c2a132fa6145ed3a1447
2017-09-22 11:37:43 +00:00
Kubernetes Publisher
116a3cc0c0 Merge remote-tracking branch 'origin/master' into release-1.8
Kubernetes-commit: 783e2305f10d452b0549578535350cda83649f6c
2017-09-22 11:37:22 +00:00
Kubernetes Publisher
e698488786 Merge remote-tracking branch 'origin/master' into release-1.8
Kubernetes-commit: f24b1ee0ac24977552abe3e37d597bf51cd49619
2017-09-22 11:37:01 +00:00
Kubernetes Publisher
31e7aa2fdd Kubernetes version v1.8.0-beta.1 file updates
Kubernetes-commit: 8c025bc2f23a3be059bf9a7d05867a8cb6f52ea8
kubernetes-1.8.0-beta.1
2017-09-22 11:36:38 +00:00
Kubernetes Publisher
f8bdb100d1 Merge remote-tracking branch 'origin/master' into release-1.8
Kubernetes-commit: 27446377d3dc8e7f4e4c5c2053ca7255e158b1a1
2017-09-22 11:36:38 +00:00
Kubernetes Publisher
26106dfbea Kubernetes version v1.8.0-beta.0 file updates
Kubernetes-commit: c768191bb4c4e7ca68d2f9f0b0bcdb7bc503c86c
kubernetes-1.8.0-beta.0
2017-09-22 11:36:15 +00:00
Kubernetes Publisher
82aa063804 Merge pull request #52710 from sttts/sttts-less-aggressive-staging-godep-mangling
Automatic merge from submit-queue (batch tested with PRs 52843, 52710, 52821, 52844). 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-staging-godeps: only mangle staging repos in staging Godeps.json

- this re-adds non-staging k8s.io/* repos to the staging Godeps.jsons
- x-outs instead of removing of staging dependencies in order to get a
  precise trigger for a complete godep restore+save run in the publisher
  bot.

The first breaks k8s.io/kube-aggregator's staging export.

The second potentially leads to inconsistent godeps in our exported staging repos.

Kubernetes-commit: 3ba46ee9fab32ccaeeee4af4a80375e6e1d71ace
kubernetes-1.9.0-alpha.1
2017-09-22 11:22:43 +00:00
Kubernetes Publisher
8ffd241e20 Update staging godeps
Kubernetes-commit: 678eeb54da07fb33e3860bc670e6b101a966a47d
2017-09-22 11:22:08 +00:00
Kubernetes Publisher
06d5d62599 Merge pull request #52227 from liggitt/non-preferred-version-priority
Automatic merge from submit-queue (batch tested with PRs 52227, 52120)

Fix discovery restmapper finding resources in non-preferred versions

Fixes: #52219

Also reverts behavioral changes to tests that version-qualified cronjobs to work around this issue.

The discovery rest mapper was only populating the priority rest mapper's search list with preferred groupversions.

That meant that if a resource existed in multiple non-preferred versions, AND did not exist in the preferred version (like cronjob, which only exists in v1beta2.batch and v2alpha1.batch, but not v1.batch), the priority restmapper would not find it in its group/version priority list, and would return an error.

```release-note
Fixed an issue looking up cronjobs when they existed in more than one API version
```

Kubernetes-commit: 77e660ed15e927e4e901f42bb3f6790775f8107d
2017-09-22 11:22:07 +00:00
Kubernetes Publisher
7a2d69e09e Fix discovery restmapper finding resources in non-preferred versions
Kubernetes-commit: a6316fb3a525a6a88ca74cfa76c2892455fcf832
2017-09-22 11:22:06 +00:00
Kubernetes Publisher
48c8058911 Merge pull request #50476 from caesarxuchao/plumb-proxy
Automatic merge from submit-queue (batch tested with PRs 51824, 50476, 52451, 52009, 52237)

Plumbing the proxy dialer to the webhook admission plugin

* Fixing https://github.com/kubernetes/kubernetes/issues/49987. Plumb the `Dial` function to the `transport.Config`
* Fixing https://github.com/kubernetes/kubernetes/issues/52366. Let the webhook admission plugin sets the `TLSConfg.ServerName`.

I tested it in my gke setup. I don't have time to implement an e2e test before 1.8 release. I think it's ok to add the test later, because *i)* the change only affects the alpha webhook admission feature, and *ii)* the webhook feature is unusable without the fix. That said, it's up to my reviewer to decide.

Filed https://github.com/kubernetes/kubernetes/issues/52368 for the missing e2e test.

( The second commit is https://github.com/kubernetes/kubernetes/pull/52372, which is just a cleanup of client configuration in e2e tests. It removed a function that marshalled the client config to json and then unmarshalled it. It is a prerequisite of this PR, because this PR added the `Dial` function to the config which is not json marshallable.)

```release-note
Fixed the webhook admission plugin so that it works even if the apiserver and the nodes are in two networks (e.g., in GKE).
Fixed the webhook admission plugin so that webhook author could use the DNS name of the service as the CommonName when generating the server cert for the webhook.

Action required:
Anyone who generated server cert for admission webhooks need to regenerate the cert. Previously, when generating server cert for the admission webhook, the CN value doesn't matter. Now you must set it to the DNS name of the webhook service, i.e., `<service.Name>.<service.Namespace>.svc`.
```

Kubernetes-commit: 7181dd49460787871b602a47ab2ad05babacb820
2017-09-15 01:08:01 -07:00
Kubernetes Publisher
0fd8a31bad Merge pull request #50012 from deads2k/cli-17-discovery
Automatic merge from submit-queue

use specified discovery information if possible

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

This uses the available discovery information if available, but it seems we never updated "normal" resources to show the singular name, so its often not available.  I've left this code compatible.

@enisoc @ash2k
@kubernetes/sig-api-machinery-misc

```release-note
custom resources that use unconventional pluralization now work properly with kubectl and garbage collection
```

Kubernetes-commit: e190f391129260527c119fe319216212c916ae5d
2017-09-22 11:22:07 +00:00
Kubernetes Publisher
bae75f0568 fix the webhook unit test; the server cert needs to have a valid CN;
fix a fuzzer;

Kubernetes-commit: 856a1db57a05e19ea6261e38211d2ab1bf864dd1
2017-09-22 11:22:07 +00:00
Kubernetes Publisher
cecfce38a7 use specified discovery information if possible
Kubernetes-commit: 1c8a9e406054e4163b8c81176f14478272ebf767
2017-09-22 11:22:07 +00:00
Kubernetes Publisher
baf97d23c3 plumb the proxyTransport to the webhook admission plugin;
set the ServerName in the config for webhook admission plugin.

Kubernetes-commit: 186a0684d582272aa2fbfec390aea5fbb88a8bc6
2017-09-22 11:22:07 +00:00
Kubernetes Publisher
c6f8cf2c47 sync: update godeps 2017-09-09 21:30:45 +00:00