- 26 Jun, 2016 4 commits
-
-
k8s-merge-robot authored
Automatic merge from submit-queue Set network related flags for container gen-swagger-docs When running `hack/update-api-reference-docs.sh`, I get failure messages as below. This is because: My env is behind a proxy, I have to input username/password in a page first for authentication before visiting internet. But I have no any way to visit that page in GUI mode in the container gen-swagger-docs. Can we run the container gen-swagger-docs using host network and passing an env variable `https_proxy` to it? I try this way and it works well. This would be helpful for me and other developers who may have this issue. cc @caesarxuchao Thanks! ``` root@vm:/home/paas/zxp/code/k8s/fork/kubernetes# hack/update-api-reference-docs.sh Note: This assumes that swagger spec has been updated. Please run hack/update-swagger-spec.sh to ensure that. Generating api reference docs at /home/paas/zxp/code/k8s/fork/kubernetes/_output/generated_html Reading swagger spec from: /home/paas/zxp/code/k8s/fork/kubernetes/api/swagger-spec/ --2016-06-09 16:35:26-- https://raw.githubusercontent.com/kubernetes/kubernetes/master/pkg/api/v1/register.go Resolving raw.githubusercontent.com (raw.githubusercontent.com)... failed: Name or service not known. wget: unable to resolve host address ‘raw.githubusercontent.com’ --2016-06-09 16:36:06-- https://raw.githubusercontent.com/kubernetes/kubernetes/master/pkg/api/v1/register.go Resolving raw.githubusercontent.com (raw.githubusercontent.com)... failed: Name or service not known. wget: unable to resolve host address ‘raw.githubusercontent.com’ --2016-06-09 16:36:46-- https://raw.githubusercontent.com/kubernetes/kubernetes/master/pkg/api/v1/register.go Resolving raw.githubusercontent.com (raw.githubusercontent.com)... failed: Name or service not known. wget: unable to resolve host address ‘raw.githubusercontent.com’ !!! Error in hack/update-api-reference-docs.sh:71 'docker run ${user_flags} --rm -v "${TMP_IN_HOST}":/output:z -v "${SWAGGER_PATH}":/swagger-source:z gcr.io/google_containers/gen-swagger-docs:v5 "${SWAGGER_JSON_NAME}" "${REGISTER_FILE_URL}"' exited with status 1 Call stack: 1: hack/update-api-reference-docs.sh:71 main(...) Exiting with status 1 ```
-
k8s-merge-robot authored
Automatic merge from submit-queue [client-gen]Add Patch to clientset * add the Patch() method to the clientset. * I have to rename the existing Patch() method of `Event` to PatchWithEventNamespace() to avoid overriding. * some minor changes to the fake Patch action. cc @Random-Liu since he asked for the method @kubernetes/sig-api-machinery ref #26580 ```release-note Add the Patch method to the generated clientset. ```
-
k8s-merge-robot authored
Automatic merge from submit-queue Dynamically derive AttachOptions.CommandName This PR sets AttachOptions.CommandName dynamically depending on the corba Command hierarchy. If the root command is named e.g. "oc" (for the OpenShift cli) this will result in "oc attach" instead of the static "kubectl attach" before this patch. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1341450
-
k8s-merge-robot authored
Automatic merge from submit-queue Make discovery client parameterizable to legacy prefix
-
- 25 Jun, 2016 36 commits
-
-
k8s-merge-robot authored
Automatic merge from submit-queue fix test-cmd multi-resource test See inline descriptions.
-
k8s-merge-robot authored
Automatic merge from submit-queue Fix startup type error in initializeCaches The following error was getting logged: PersistentVolumeController can't initialize caches, expected list of volumes, got: &{TypeMeta:{Kind: APIVersion:} ListMeta:{SelfLink:/api/v1/persistentvolumes ResourceVersion:11} Items:[]} The tests make extensive use of NewFakeControllerSource which uses api.List instead of api.PersistentVolumeList. So use reflect to help iterate over the items then assert the item type. fixes #27757 -
k8s-merge-robot authored
Automatic merge from submit-queue optimize deleteFromIndices method of thread_safe_store As all methods of thread_safe_store are threadsafe, so i think, in deleteFromIndices method, if the index is nil, need not run the for structure below
-
k8s-merge-robot authored
Automatic merge from submit-queue rename the gc for terminated pods to "podgc" to avoid name collision with the [generic garbage collector](https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/garbagecollector/garbagecollector.go)
-
k8s-merge-robot authored
Automatic merge from submit-queue daemon/controller.go: refactor worker 1. function name is better to be verb or verb+noun 2. remove unnecessary func call
-
k8s-merge-robot authored
Automatic merge from submit-queue cacher.go: remove NewCacher func NewCacher is a wrapper of NewCacherFromConfig. NewCacher understands how to create a key func from scopeStrategy. However, it is not the responsibility of cacher. So we should remove this function, and construct the config in its caller, which should understand scopeStrategy.
-
k8s-merge-robot authored
Automatic merge from submit-queue let patch use --local flag like `kubectl set image` Adds the concept of a `--local` flag to `kubectl patch`. This flag is similar to `kubectl set image -f --local` because it will use the content of the file as the input to the patch operation instead of using the file content to file resource/name tuples. This pull lets you run something like `kubectl create deployment --dry-run -o yaml | kubectl set volume --local -f - -o yaml | kubectl patch --local -f - --patch {} | kubectl create -f -` As proof that it works, you can run against a local file just to mess around with it, but `--local -f -` is the most likely case. ``` $kubectl patch --local -f pkg/api/validation/testdata/v1/validPod.yaml --patch='{"spec": {"restartPolicy":"Never"}}' apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: name: redis-master name: name spec: containers: - args: - this - is - an - ok - command image: gcr.io/fake_project/fake_image:fake_tag name: master resources: {} restartPolicy: Never status: {} ``` This is useful for setting rarely used, but immutable fields from `kubectl create` or `kubectl convert` without dropping to an interactive editor. Some discussion here: https://github.com/kubernetes/kubernetes/issues/21648#issuecomment-218579977 @smarterclayton @kubernetes/kubectl @eparis @soltysh @stevekuznetsov we've talked about this separately -
k8s-merge-robot authored
Automatic merge from submit-queue Add more information when throwing errors in discoverying 3rd party resources #26425 []()
-
k8s-merge-robot authored
Automatic merge from submit-queue [fix] allow ALLOW_PRIVILEGED to be passed to kubelet and kube-api This is something that we need for running docker in docker. Please let me know if you would consider this change. Thanks :)
-
k8s-merge-robot authored
Automatic merge from submit-queue Update the jsonpath template URL It seems like http://releases.k8s.io/HEAD/docs/user-guide/jsonpath.md redirects to http://kubernetes.io/docs/user-guide/jsonpath/. Therefore, updating to the new URL where is required. Relate to https://github.com/openshift/origin/pull/9013
-
k8s-merge-robot authored
Automatic merge from submit-queue Fix error handling in endpoint controller
-
k8s-merge-robot authored
Automatic merge from submit-queue pkg/storage/etcd3: remove name field in test Current test gets the name with its test table index, so there seems to be no reason to have name field in test table.
-
k8s-merge-robot authored
Automatic merge from submit-queue Make local-up-cluster.sh IPv6 friendly Added a new environment variable `API_HOST_IP`. `API_HOST_IP` allows the user to specify an IPv6 address that is parsable by Golang. `API_HOST` on the other hand allows the user to specify the IPv6 address to be used in a URL's format as described in RFC2732. Example: ```bash API_HOST_IP="FEDC:BA98:7654:3210:FEDC:BA98:7654:3210" API_HOST="[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210] ``` or ```bash API_HOST_IP="FEDC:BA98:7654:3210:FEDC:BA98:7654:3210" API_HOST="[${API_HOST_IP}]" ``` Signed-off-by:André Martins <aanm90@gmail.com>
-
k8s-merge-robot authored
Automatic merge from submit-queue Add -g curl option to hack/lib/util.sh wait_for_url Add `-g` curl option ``` This option switches off the "URL globbing parser". When you set this option, you can specify URLs that contain the letters {}[] without having them being interpreted by curl itself. Note that these letters are not normal legal URL contents but they should be encoded according to the URI standard. ``` > Why? So that IPv6 addresses with `[` and `]`, like `[::1]:8080`, work with that script. Signed-off-by:André Martins <aanm90@gmail.com>
-
k8s-merge-robot authored
Automatic merge from submit-queue make quota validation re-useable Break quota validation into smaller functions to allow for object re-use. @derekwaynecarr
-
k8s-merge-robot authored
Automatic merge from submit-queue Add WrapUpdatedObjectInfo helper This makes it easier to attach checks/transformations to the updated object in storage Update functions, while still keeping the data flow intact (so admission, patch, and other injected checks continue to work as intended), without needing to do anything tricky to get the updated object out of the UpdatedObjectInfo introduced in https://github.com/kubernetes/kubernetes/pull/25787 This is especially useful when one storage is delegating to another, but wants its checks to be run in the heart of the eventual GuaranteedUpdate call.
-
k8s-merge-robot authored
Automatic merge from submit-queue Add Calico as policy provider in GCE Adds Calico as policy provider to GCE, enforcing the extensions/v1beta1 NetworkPolicy API. Still to do: - [x] Enable NetworkPolicy API when POLICY_PROVIDER is provided. - [x] Fix CNI plugin, policy controller versions. CC @thockin - does this general approach look good?
-
k8s-merge-robot authored
Automatic merge from submit-queue Fix #25606: Add the length detection of the "predicateFuncs" in generic_scheduler.go Fix #25606 The PR add the length detection of the "predicateFuncs" for "findNodesThatFit" function of generic_scheduler.go. In “findNodesThatFit” function, if the length of the "predicateFuncs" parameter is 0, it can set filtered equals nodes.Items, and needn't to traverse the nodes.Items.
-
k8s-merge-robot authored
Automatic merge from submit-queue Check for an empty value in validateField ```release-note * Fix a panic when args was not supplied with any values. ``` reflect.TypeOf() can take a nil (it then returns a nil), but Kind() panics on a nil. Now the user gets the following output: ./kubectl.sh --server=http://localhost:8080 create -f ../../test-files/test-rc.yaml error validating "../../test-files/test-rc.yaml": error validating data: unexpected nil value for field spec.template.spec.containers[0].args[0]; if you choose to ignore these errors, turn validation off with --validate=false fixes #20627 and fixes #26927
-
k8s-merge-robot authored
Automatic merge from submit-queue e2e.framework.util.StartPods: panic if the number or replicas is zero The number of pods to start must be non-zero. Otherwise the function waits for pods forever if ``waitForRunning`` is true. It the number of replicas is zero, panic so the mistake is heard all over the e2e realm. Update all callers of StartPods to test for non-zero number of replicas.
-
k8s-merge-robot authored
Automatic merge from submit-queue Set grace period to 0 when deleting namespaces after the test. Otherwise, we try to run the next test and the pods are still there.
-
k8s-merge-robot authored
Automatic merge from submit-queue Tracked addition of federation, sed support in kube DNS []() The kube DNS app recently gained support for federation (whatever that is), including a new Salt parameter. This broke the deployAddons.sh script for cluster ubuntu. The DNS app also gained alternate templates, intended to be friendly to `sed`. Fortunately, those do not demand a federation parameter. This PR fixes up the ` cluster/ubuntu/deployAddons.sh` script to track those changes, by switching to the `sed`-friendly templates.
-
k8s-merge-robot authored
Automatic merge from submit-queue enable recursive processing in kubectl edit This PR was split out of https://github.com/kubernetes/kubernetes/pull/23673 per @deads2k's suggestion: https://github.com/kubernetes/kubernetes/pull/23673#discussion_r61291178 It makes use of the recursive processing of a directory in `kubectl edit`
-
k8s-merge-robot authored
Automatic merge from submit-queue rkt: Bump required rkt version to 1.9.1. Bump the rkt version to use the one that fixed the [go-systemd sdjournal issue](https://github.com/coreos/rkt/pull/2837), also match [release doc](https://github.com/kubernetes/kubernetes.github.io/blob/release-1.3/docs/getting-started-guides/rkt/index.md#prerequisite). cc @kubernetes/sig-rktnetes @kubernetes/sig-node
-
k8s-merge-robot authored
Automatic merge from submit-queue plugin/pkg/auth/authorizer/webhook: log request errors Currently the API server only checks the errors returned by an authorizer plugin, it doesn't return or log them[0]. This makes incorrectly configuring the wehbook authorizer plugin extremely difficult to debug. Add a logging statement if the request to the remove service fails as this indicates misconfiguration. [0] https://goo.gl/9zZFv4 <!-- Reviewable:start --> --- This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24678) <!-- Reviewable:end -->
-
k8s-merge-robot authored
Automatic merge from submit-queue golint fixes for AWS cloudprovider Among other things, golint doesn't like receivers that are inconsistently named or called "self". Or structs named aws.AWSservices, aws.AWSCloud, etc.
-
k8s-merge-robot authored
Automatic merge from submit-queue mount instanceid file from config drive when using openstack cloud provider fix https://github.com/kubernetes/kubernetes/issues/23191, the instanceid file is read however we do not mount it as a volume, and it would cause the cloud provider contacts the metadata server, in some cases, the metadata server is not able to serve, then the cloud provider would fail to initialize, we should avoid that. <!-- Reviewable:start --> --- This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/23733) <!-- Reviewable:end -->
-
k8s-merge-robot authored
Automatic merge from submit-queue Proportionally scale paused and rolling deployments Enable paused and rolling deployments to be proportionally scaled. Also have cleanup policy work for paused deployments. Fixes #20853 Fixes #20966 Fixes #20754 @bgrant0607 @janetkuo @ironcladlou @nikhiljindal <!-- Reviewable:start --> --- This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/20273) <!-- Reviewable:end -->
-
Mike Spreitzer authored
Added a friendly note, with a suggestion of how to find the scripts.
-
Mike Spreitzer authored
My original change neglected to change the template from the salt one to the sed one.
-
k8s-merge-robot authored
Automatic merge from submit-queue Image GC logic should compensate for reserved blocks Calculating the disk usage based on available bytes instead of usage bytes to account for reserved blocks in image GC #27169
-
k8s-merge-robot authored
Automatic merge from submit-queue relnotes ready for use.
-
k8s-merge-robot authored
Automatic merge from submit-queue rkt: Fix the 'privileged' check when stage1 annotation is provided. Previously when stage1 annotation is provided, we only checks if the kubelet allows privileged, which is not useful as that is a global setting. Instead, we should check if the pod has explicitly set the privileged security context to 'true'. cc @kubernetes/sig-rktnetes @kubernetes/sig-node
-
k8s-merge-robot authored
Automatic merge from submit-queue Remove extra double quotes in --federations.
-
k8s-merge-robot authored
Automatic merge from submit-queue Bump minimum API version for docker to 1.21 The corresponding docker version is 1.9.x. Dropping support for docker 1.8. /cc @kubernetes/sig-node
-
Angus Salkeld authored
The following error was getting logged: PersistentVolumeController can't initialize caches, expected list of volumes, got: &{TypeMeta:{Kind: APIVersion:} ListMeta:{SelfLink:/api/v1/persistentvolumes ResourceVersion:11} Items:[]}
-