Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue 554418735a
Merge pull request #66692 from m1kola/66456_waitcmd__error_for_selectors
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>.

Makes kubectl wait exit with status 1 and print an error message, if there is no resources matching selectors

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

It makes the `kubectl wait` command print an error message and exit with exit code 1, if there is no resource matching users's query. This can happen when user specifies selectors. Example:

```
kubectl wait deployment -l app=something-that-does-not-exist --for condition=available --timeout=5s
```

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

**Special notes for your reviewer**:

This is my first contribution into the project (except one line change in docs) and don't have much experience with Go. I learned a lot while working on this (about resource finders and the `Visitor` interface and it's implementations), but it is very likely that I'm doing something wrong :)

I'm keen to continue contributing into the project (into the cli part for now), so I will really appreciate detailed feedback, if you have a chance to provide it (point me into a right direction and/or explain why it's not a good idea to do something in a certain way).

Thanks!

**Release note**:
```release-note
kubectl: the wait command now prints an error message and exits with the code 1, if there is no resources matching selectors
```
2018-08-06 10:31:57 -07:00
.github
api Autogen 2018-07-27 10:10:30 -07:00
build Merge pull request #66293 from MaciekPytel/unset_cdpath 2018-08-02 15:42:20 -07:00
cluster Merge pull request #66235 from yue9944882/fixes-default-storage-class-reconcile 2018-08-02 11:30:10 -07:00
cmd Merge pull request #64517 from sttts/sttts-apiserver-sectioned-flags 2018-08-06 03:18:57 -07:00
docs Autogen 2018-07-27 10:10:30 -07:00
Godeps Merge pull request #66623 from deads2k/gc-01-graph 2018-07-31 08:05:03 -07:00
hack Merge pull request #66156 from vikaschoudhary16/quota-api-v1beta1 2018-08-06 07:13:21 -07:00
logo
pkg Merge pull request #66692 from m1kola/66456_waitcmd__error_for_selectors 2018-08-06 10:31:57 -07:00
plugin Merge pull request #66156 from vikaschoudhary16/quota-api-v1beta1 2018-08-06 07:13:21 -07:00
staging Merge pull request #64517 from sttts/sttts-apiserver-sectioned-flags 2018-08-06 03:18:57 -07:00
test Update the nginx image from hub.docker.com 2018-08-04 05:19:53 +05:30
third_party
translations
vendor Merge pull request #66623 from deads2k/gc-01-graph 2018-07-31 08:05:03 -07:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md
CHANGELOG-1.5.md
CHANGELOG-1.6.md
CHANGELOG-1.7.md
CHANGELOG-1.8.md
CHANGELOG-1.9.md Update CHANGELOG-1.9.md for v1.9.10. 2018-08-03 01:15:19 +00:00
CHANGELOG-1.10.md
CHANGELOG-1.11.md Fix some type of CHANGELOG-1.11.md 2018-08-01 17:36:01 +08:00
CHANGELOG-1.12.md Add CHANGELOG-1.12.md for v1.12.0-alpha.1. 2018-08-02 00:18:17 +00:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Merge pull request #66631 from mikedanese/milestones 2018-07-31 17:23:32 -07:00
README.md
SECURITY_CONTACTS
SUPPORT.md
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts; providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

For the full story, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide, and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics