- 06 Sep, 2016 11 commits
-
-
Wojciech Tyczynski authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue improve some error messages. Fixes https://github.com/kubernetes/kubernetes/issues/9944 @pwittrock @deads2k @kubernetes/kubectl
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add deploy for deployment in kubectl set image help text add shorthand deploy for deployment in kubectl set image help text
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [Pet Set] Refactor return []error to error <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **Which issue this PR fixes** I propose refactor return value from `[]error` to error [here](https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/petset/pet_set.go#L80), for the purpose of simplify code and format error output. I think we can use `errors.NewAggregate(errorList)` to aggregate `[]error`.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue change annotate_resources to valid_resources annotate_resources missing some resources such as deployment, namespace. i think using valid_resources to replace annotate_resources more suitable.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fix deliverer dealy constant usage some delay constants were not correctly used #29741 @quinton-hoole @deepak-vij @kshafiee @mwielgus
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add deploy for deployment in kubectl expose help text add shorthand deploy for deployment
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue kubectl edit: Do not add warning header if ftype is json. This PR blocks adding warning header if `kubectl edit` is used with `-o json` option. Fixed header contains comment (what is not supported by json standard) what can break utilities which are using libraries that conforms with http://www.ietf.org/rfc/rfc7159.txt fixes #29524 /cc @pwittrock ```release-note Removed comments in json config when using kubectl edit with -o json ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Make a vSphere cluster the failure_zone vSphere cloud provider returns the FailureZone as Cluster, if the VM belongs to a ResourcePool under a Cluster. fixes: #30933 * Currently the vSphere cloud provider treats Datacenter as the failure Zone. This doesn't necessarily work since in the current implemention Kubernetes nodes cannot span Datacenters. * This change introduces Clusters as the failure zone, while treating Datacenters as Regions * Also updated tests for Zones
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix Bash script <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: `cluster/mesos/docker/socat/build.sh` had two lines mixed together. Old command output: ``` $ ./cluster/mesos/docker/socat/build.sh ./cluster/mesos/docker/socat/build.sh: line 21: set: pipefailscript_dir=/home/rodolfo/src/k8s.io/kubernetes/cluster/mesos/docker/socat: invalid option name ``` **Special notes for your reviewer**: probably nobody is using that script? @sttts PTAL. **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue optimize if-else of setupNode of container_manager_linix make the code more readable
-
- 05 Sep, 2016 29 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fixes invalid null selector issue in sysdig example yaml <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: Using the file DaemonSet yaml found in the example repo you get the following error upon import: ``` $ kubectl create -f sysdig.yml The DaemonSet "sysdig-agent" is invalid. spec.template.metadata.labels: Invalid value: null: `selector` does not match template `labels` ``` This PR fixes this issue. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note ``` * Corrected name label metadata for Sysdig example.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix various typos in pkg/kubelet Just fixed some typos + "englishify" pkg/kubelet.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix named pipe in kubectl zsh completion This PR fixes #28049 Though my zsh version > 5.0, I still got the problem. So, I think we need this fix. --- ### Env ``` OS: Ubuntu 14.04 $ zsh --version zsh 5.0.2 (x86_64-pc-linux-gnu) ``` ### A simple DEMO to show the root cause In zsh and bash, a multi-line named pipe, who is wrapped by parenthesis, is possible to mismatch the "right parenthesis", even that parenthesis is in a here-document. The following script was going to use `sed` to print the text in the 'BASH_COMPLETION_EOF' here-document. > * I made the `sed` simpler. As you can see, `sed` actually does nothing here. It just prints what it gets from `<<`). In real [`pkg/kubectl/cmd/completion.go`](https://github.com/kubernetes/kubernetes/blob/v1.3.5/pkg/kubectl/cmd/completion.go#L246-L258), `sed` will do some text replacement, changing bash functions to zsh functions. But that is not the point of the problem. > * I use `cat <(...)` to replace the `source <(...)`. > In this way, we can see how named pipe works. run-bad.zsh: ```bash #!/usr/bin/zsh cat <(sed -e 's/foo/bar/g' <<'BASH_COMPLETION_EOF' aaa='aaa' case aaa in 'aaa') # <- This ')' is in a here-document, but it is handled by named pipe by mistake. echo 'yes' ;; esac BASH_COMPLETION_EOF ) ``` > Output: > ``` > ./run-bad.zsh > aaa='aaa' > case aaa in > 'aaa'yes <- You can see the here-document `echo yes` has been executed!!! > ./run-bad.zsh:8: parse error near `;;' > ``` The named pipe `<(sed ...` "eats" the `)`, which should belong to `case aaa in 'aaa')`. So that the named pipe ends earlier than expectation. The left zsh code is broken, it fails. ### Here's the fix Move the code into a function, and use an inline named pipe. run.zsh: ```bash #!/usr/bin/zsh print_sed_result() { sed -e 's/foo/bar/g' <<'BASH_COMPLETION_EOF' aaa='aaa' case aaa in 'aaa') echo 'yes' ;; esac BASH_COMPLETION_EOF } cat <(print_sed_result) # <- Use an inline named pipe ``` > Output: > ``` > ./run.zsh > stack@docker-dev01 > aaa='aaa' > case aaa in > 'aaa') > echo 'yes' > ;; > esac > ``` Now, the here-document and named pipe work correctly.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Make @rootfs the assignee for various volumes This, combined with the '/lgtm' capability of reviewers means you can approve PRs. @rootfs - I assume you're OK with this?
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add link to diagram of `kubectl rolling-update`
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix followups from #31033
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix e2e logic when FEDERATION=false. Also add debugging output to GCE detect-master. Fixes #31285.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add e2e test for Source IP preservation (pod to service cluster IP) Working on #27134. This PR added the e2e test for source ip preservation (pod to service cluster IP) in service.go. Test scenario described as below: - Pick two different nodes in cluster. - Create a clusterIP type service. - Create an echo server, which echoes back client IP, to be part of the service. - Create a client on another node. Hit the server through service cluster IP. - Verify the source IP. @girishkalele @freehan
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue test/e2e: fix flake for on delete on namespace <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note NONE ``` Fixes #27532
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Improve doc for the fake client Improve doc in this type. cc @derekwaynecarr @ncdc @deads2k
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Update build docs to include path for scripts. <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: This fix updates the build docs (`build/README.md`) to include the path of `build/` for shell scripts (like `run.sh`, `shell.sh`). The reason is that while trying to follow the `build/README.md` to build the kubernetes, it is not obvious that all the scripts, e.g., `run.sh make`, `shell.sh`, etc. needs to be executed from the root directory (vs. executed from the `build/` directory). In other words, the executation should be: ``` build/run.sh make build/make-clean.sh ... ``` This fix adds `build/` so that it is easy for user to follow the steps. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add go-bindata as development dependency **What this PR does / why we need it**: Small update in the developer notes (a go dependency was missing, which I noticed when setting up my own development environment) **Which issue this PR fixes**: Not applicable **Special notes for your reviewer**: **Release note**: N/A ```release-note ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Typos and englishify pkg/cloudprovider + pkg/dns + pkg/kubectl **What this PR does / why we need it**: Just fixed some typos + "englishify" in pkg/cloudprovider + pkg/dns + pkg/kubectl **Which issue this PR fixes** : None **Special notes for your reviewer**: It's just fixes typos **Release note**: `NONE`
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Bumped memory limit for resource consumer. Fixes #31591. Bumped memory limit for resource consumer from 100 MB to 200 MB, increased request sizes so that the number of consumers will be smaller. Fixes #31591.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue NodeController listing nodes from apiserver cache Ref #31981 This is addressing this particular failure: https://github.com/kubernetes/kubernetes/issues/31981#issuecomment-244432054
-
Wojciech Tyczynski authored
-
Marek Grabowski authored
Add a log to help debug #31981
-
gmarek authored
-
Marek Grabowski authored
Fix density test
-
Wojciech Tyczynski authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Increase GC timeout for RCs bigger than 40k cc @caesarxuchao
-
gmarek authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add few more logs to the Load test Useful to debug enormous-cluster failures.
-
gmarek authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Increase the threshold for apiserver CPU for 500 node kubemark Fix #32059
-
gmarek authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Enable Rescheduler by default Rescheduler is stable - e2e test is passing constantly for >1week. ref #29023 ```release-note Rescheduler which ensures that critical pods are always scheduled enabled by default in GCE. ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Unshare cluster, store in each test suite For https://github.com/kubernetes/kubernetes/issues/31962 and https://github.com/kubernetes/kubernetes/issues/31300. Just try to unshare it to minimize interface and focus on correctness of logic.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Allow IP addresses to be used as node names Fixes #32050 In `pkg/api/validation/validation.go`, there's already `ValidateNodeName()`, so using `ValidateDNS1123Label()` was ujustified. Also, it broke service endpoints in `hack/local-up-cluster.sh` and some other software that doesn't want to do extra work to provide resolvable hostnames for the nodes of test clusters, e.g. https://github.com/metral/nanokube https://github.com/sttts/kubernetes-dind-cluster And probably others. On affected installs, service latency e2e test hangs, see e.g. https://github.com/kubernetes/kubernetes/issues/30632#issuecomment-244431797 DNS1123Label suggestion is by @thockin, see [here](https://github.com/kubernetes/kubernetes/pull/30301#issuecomment-239602268). I think it's wrong though for aforementioned reasons :( PR that broke node names: #31311
-