Commit Graph

6970 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
eeb15a57fc Merge pull request #80180 from hantaowang/get-multiple-instances-by-name
add new function to return partial list of found instances
2019-07-18 21:33:36 -07:00
Kubernetes Prow Robot
3f1cb97f9a Merge pull request #80252 from ajatprabha/patch-1
Update deprecated diff.ObjectGoPrintDiff method
2019-07-18 17:02:02 -07:00
Hantao (Will) Wang
d44abb4ebe implement functionality to return all found instances 2019-07-18 09:39:42 -07:00
Ted Yu
6e98aab26e Rename TriggerPublisherFunc as IndexerFunc 2019-07-18 06:45:51 -07:00
Kubernetes Prow Robot
ca52393736 Merge pull request #79551 from jennybuckley/apply-ver
Update structured-merge-diff version
2019-07-17 21:28:11 -07:00
Kubernetes Prow Robot
a930b5ca7e Merge pull request #79793 from wojtek-t/index_in_cacher
Simplify trigger functions in cacher
2019-07-17 19:34:37 -07:00
Kubernetes Prow Robot
2b21e478b1 Merge pull request #79489 from bclau/feature/run-as-username
Adds WindowsOptions.RunAsUserName field
2019-07-17 19:34:24 -07:00
jennybuckley
018a3db25e Update generated 2019-07-17 14:59:50 -07:00
jennybuckley
229894c730 Make changes to integrate new version 2019-07-17 14:39:08 -07:00
James Sturtevant
1c4edfba57 Run code generation for new field 2019-07-17 15:03:10 +00:00
James Sturtevant
e8b369ff3c Windows: Adds RunAsUserName field in WindowsOptions
Adds the field RunAsUserName in the WindowsSecurityContextOptions type,
which is used in PodSecurityContext and SecurityContext.

This field needs to allow for a valid set of usernames allowed for
Windows containers. It must have the format "U

This commit also validates the runAsUserName field, making sure that it valid,
having the format DOMAIN\USER (case insensitive), where DOMAIN\ is optional and
has to be a valid NetBios or DNS domain name.

For more information about the restrictions on the DOMAIN and USER parts, look here: [1] [2]

Adds the WindowsRunAsUserName alpha feature gate. By default, it is disabled.
If the feature gate is not enabled, the WindowsOptions.RunAsUserName field
will be dropped from both the PodSecurityContext and container
SecurityContext.

Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>

[1] https://support.microsoft.com/en-us/help/909264/naming-conventions-in-active-directory-for-computers-domains-sites-and
[2] https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/new-localuser?view=powershell-5.1
2019-07-17 15:03:04 +00:00
Ajat Prabha
291c145bc5 Update deprecated diff.ObjectGoPrintDiff method
Use `diff.ObjectGoPrintSideBySide` to print the difference.
2019-07-17 17:25:34 +05:30
Kubernetes Prow Robot
683e405f31 Merge pull request #79418 from yue9944882/chore/prune-aggregator-internals
Prune hub-type client/informer/lister from kube-aggregator
2019-07-16 23:22:34 -07:00
Kubernetes Prow Robot
eee3a3749a Merge pull request #80123 from sttts/sttts-bump-kube-openapi2
Bump kube-openapi and structured-merge-diff
2019-07-16 17:37:12 -07:00
Kubernetes Prow Robot
ffb3c4d109 Merge pull request #79544 from liggitt/v1.15.0-testdata
v1.15.0 API compatibility data
2019-07-16 17:36:46 -07:00
Kubernetes Prow Robot
e28efb1312 Merge pull request #80167 from nikhita/kubectl-lodash
kubectl/docs/book: bump lodash from 4.17.5 to 4.17.13
2019-07-16 15:24:30 -07:00
Kubernetes Prow Robot
0a5c1f0d97 Merge pull request #79834 from SataQiu/fix-taint-20190705
Make taint.ToString() consistent with the reverse parsing logic
2019-07-16 15:24:05 -07:00
Kubernetes Prow Robot
5ece88c4c8 Merge pull request #74526 from DXist/feature/hpa-scale-to-zero
Support scaling HPA to/from zero pods for object/external metrics
2019-07-16 10:11:24 -07:00
yue9944882
3b1624f0cc remove kube-aggregator/pkg/client/*
use v1 api

[DO NOT REVIEW] bazel changes

code-gen script changes

update hack/update-vendor

remove useless interface type cast
2019-07-16 23:11:15 +08:00
Rinat Shigapov
19d93eefeb Update generated files
update generated protobufs

swagger docs are regenerated

update openapi-spec

update generated openapi
2019-07-16 08:46:21 -05:00
Rinat Shigapov
d55f037b7d HPA scale-to-zero for custom object/external metrics
Add support for scaling to zero pods

minReplicas is allowed to be zero

condition is set once

Based on https://github.com/kubernetes/kubernetes/pull/61423

set original valid condition

add scale to/from zero and invalid metric tests

Scaling up from zero pods ignores tolerance

validate metrics when minReplicas is 0

Document HPA behaviour when minReplicas is 0

Documented minReplicas field in autoscaling APIs
2019-07-16 08:46:21 -05:00
SataQiu
23b7ae6041 make taint.ToString() consistent with the reverse parsing logic 2019-07-16 21:06:01 +08:00
Wei Huang
187fc29e3e Tolerate the case if related event is nil 2019-07-16 05:42:10 -07:00
wojtekt
68fd329e00 Simplify trigger functions in cacher 2019-07-16 08:55:34 +02:00
Kubernetes Prow Robot
98c68df606 Merge pull request #73923 from liggitt/prefer-writeable-windows-homedir
Improve windows home directory selection
2019-07-15 18:31:25 -07:00
Hantao (Will) Wang
2b4efdea7d move getInstancesByName logic to helper function 2019-07-15 16:20:38 -07:00
wojtekt
ee13be2884 Propagate error from creating cacher and storage decorators up 2019-07-15 20:48:30 +02:00
Kubernetes Prow Robot
635b83c5f4 Merge pull request #80157 from wojtek-t/remove_static_conversions
Remove manual conversions for ListOptions
2019-07-15 10:03:09 -07:00
Nikhita Raghunath
64e6fbf98a kubectl/docs/book: bump lodash from 4.17.5 to 4.17.13
As per the automatic patch created by dependabot.
2019-07-15 16:57:17 +05:30
wojtekt
6ad86a7e0b Remove manual conversions for ListOptions 2019-07-15 09:15:37 +02:00
fansong.cfs
5e493ab467 delivery event non blocking firstly 2019-07-15 11:27:49 +08:00
jennybuckley
bd333e3ac7 apiserver: make changes to integrate new structured-merge-patch 2019-07-14 10:33:52 +02:00
Dr. Stefan Schimanski
91a3704938 Run update-vendor.sh 2019-07-14 10:33:51 +02:00
Kubernetes Prow Robot
630b9239ce Merge pull request #80087 from mborsz/patch-6
Register WatchEvents metric
2019-07-13 01:21:04 -07:00
Kubernetes Prow Robot
25ab6d82ec Merge pull request #79645 from wojtek-t/cleanup_etcd_dir_3
Move etcd/util to etcd3/
2019-07-12 22:39:04 -07:00
Kubernetes Prow Robot
2bf8ab13c4 Merge pull request #80048 from davidz627/fix/tests
Fixes mount/unmount paths for migrated inline volumes
2019-07-12 20:19:17 -07:00
Dr. Stefan Schimanski
406fbf7d7e Update vendor 2019-07-12 21:04:06 +02:00
Dr. Stefan Schimanski
2b19e9526c openapi: commit low-change code-gen+sample-apiserver specs
The former is used as a smoke test to notice changes. The latter is supposed to be published and therefore must be commited. Both do not change much.
2019-07-12 21:04:06 +02:00
Dr. Stefan Schimanski
0124d58c0d apiextensions: update OpenAPI spec with v1beta1 meta types 2019-07-12 20:52:21 +02:00
Dr. Stefan Schimanski
1bdcabd638 sample-apiserver: add openapi spec 2019-07-12 20:52:21 +02:00
Dr. Stefan Schimanski
a64ce0c4d4 apiextensions: exclude newly added openapi from hack/update-codegen.sh
This will we readded in a follow-up.
2019-07-12 20:52:21 +02:00
Martin Vladev
35092146a4 code-generator: call openapi-gen from generate-internal-groups.sh
OpenAPI schema is a requirement for API Servers to be used with API Aggregation
and for kubectl to talk to them.
2019-07-12 20:52:21 +02:00
Kubernetes Prow Robot
416a717eff Merge pull request #78140 from zhan849/aws-get-instance-by-id
Cloud provider AWS library should query instance by ID when possible
2019-07-12 09:23:05 -07:00
Maciej Borsz
bc100cfd0c Register WatchEvents metric 2019-07-12 14:08:40 +02:00
Kubernetes Prow Robot
a46eed0ca3 Merge pull request #79786 from wojtek-t/watch_bookmarks_beta
Promote WatchBookmarks to beta
2019-07-12 02:51:06 -07:00
wojtekt
72eadb167b Autogenerated files 2019-07-12 09:11:42 +02:00
wojtekt
a947e28cbe Migrate WatchBookmarks to Beta 2019-07-12 09:07:39 +02:00
wojtekt
175c07f4e6 Enable watch bookmarks in reflector 2019-07-12 09:07:38 +02:00
Nikhita Raghunath
f039c31a9e sample-controller: add note about fetching deps in README 2019-07-12 11:43:02 +05:30
Nikhita Raghunath
391da79abd Fix scripts to not rely on codegen scripts being executable
If someone doesn't have code-generator in their GOPATH, they'll need to
run `go mod vendor` to populate the vendor directory with the code-generator
repo (it is required by `hack/tools.go`).

However, `go mod vendor` does not mark scripts as executable which leads to a
`Permission denied` error while trying to run `update-codegen.sh` in staging repos.
So fix scripts to not rely on codegen scripts being executable.
2019-07-12 11:43:02 +05:30