- 31 Oct, 2016 17 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Use PATCH to resume/pause deployment Alternative version of: https://github.com/kubernetes/kubernetes/pull/30919 Fixes: https://github.com/kubernetes/kubernetes/issues/20437
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue test: check for desired Deployment status prior to listing RSs Fixes the panic in https://github.com/kubernetes/kubernetes/issues/35337 @mfojtik
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Update heketi dependency to release3. commit hash#28b5cc4cc6d2b9bdfa91ed1b93efaab4931aa697 Signed-off-by: Humble Chirammal hchiramm@redhat.com
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue make localupcluster work with RBAC enabled When `ENABLE_RBAC=true` is set to true, `local-up-cluster` fails because it can't reach the endpoint (get a 403). This changes to an endpoint that the default policy allows anyone to see.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Misc master and federation cleanups - misc small cleanups - make ServerRunOption embeddings explicit in order to make the technical debt in our plumbing code visible.
-
Michal Fojtik authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Better logging and support for running non-default version from etcd image Ref #20504
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove stale volumes if endpoint/svc creation fails. Remove stale volumes if endpoint/svc creation fails. Signed-off-by: Humble Chirammal hchiramm@redhat.com
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Increase etcd3 compaction frequency @xiang90 @hongchaodeng - we already talked about it
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix conflict in kubemark
-
Dr. Stefan Schimanski authored
-
Dr. Stefan Schimanski authored
-
Dr. Stefan Schimanski authored
- remove unused genericapiserver Config.MasterServiceNamespace - move init code into ApplyOptions - initialize genericapiserver Config.MaxRequestsInFlight - move ServiceReadWritePort to master
-
Wojciech Tyczynski authored
-
Wojciech Tyczynski authored
-
Wojciech Tyczynski authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue make kubeadm version use kubeadmutil What this PR does / why we need it: this PR makes sure `kubeadmutil.CheckErr()` other than `cmdutil.CheckErr()` is called in `kubeadm version` subcommand. in `version.go`, `RunVersion()` function only returns `nil`, `kubeadmutil.CheckErr()` is enough for this Signed-off-by:redhatlinux10 <ouyang.qinhua@zte.com.cn>
-
- 30 Oct, 2016 23 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Minor change: move watch.ListWatchUntil to its own package [ListWatcher](https://github.com/kubernetes/kubernetes/blob/master/pkg/watch/until.go#L89) will be changed from using api.ListOptions to v1.ListOptions, to be compatible with versioned clientset. This *will* cause import cycle, v1 [imports](https://github.com/kubernetes/kubernetes/blob/master/pkg/api/v1/register.go#L91) watch/version, which imports watch, which imports v1. This PR breaks the potential cycle. This is going to make the migration to using client-go a little bit easier.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Update github.com/spf13/pflag to latest version <!-- 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 PR updates `github.com/spf13/pflag` to the latest version. * OpenShift needs pflag bump in order to use [`StringArray`](https://github.com/spf13/pflag/issues/89), and * Latest revision contains couple of bugfixes that I'd like to have there, and * Kubernetes should have the same version, which is the reason for this PR **Which issue this PR fixes**: None, related to openshift/origin#11539. **Special notes for your reviewer**: `hack/verify-godeps.sh` fails with following output even though I haven't touched that package: https://gist.github.com/mmilata/3cb84b754f9b9e7ff371a7b6c5131b09 Am I using the wrong golang/godep version perhaps? Any hint what am I doing wrong? **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 add kubectl cp Implements `kubectl cp` (https://github.com/kubernetes/kubernetes/issues/13776) Syntax examples: ```sh # Copy from pod to local machine $ kubectl cp [namespace/]pod:/some/file/or/dir ./some/local/file/or/dir # Copy from local machine to pod $ kubectl cp /some/local/file/or/dir [namespace/]pod:/some/remote/file/or/dir ``` @deads2k @smarterclayton @kubernetes/sig-cli
-
Chao Xu authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Better kubectl run validations Adds more validations to flags that must be mutually exclusive in `kubectl run`. For example, `--dry-run` must not be used with `--attach`, `--stdin` or `--tty`. Adds unit tests for these new validations and some previously existing ones. **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 kubeadm: added unit test for app/preflight pkg Added unit test for kubeadm/app/preflight package testing functionality of checks.go. This PR is part of the ongoing effort to add tests (#35025) /cc @pires @jbeda
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [kubeadm] pre-flight check hostname to ensure kubelet can launch static pods li… <!-- 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**: pre-flight check hostname to ensure kubelet can launch static pods like kube-apiserver/kube-controller-manager **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**: # what is the influence of this issue? kubelet will not create api server and kcm pod if your hostname is uncorrect. It complain the config files in "/etc/kubernetes/manifests" are invlid. # how to reproduce this issue? change your hostname by `hostnamectl set-hostname vm_81_12_centos`. then run `kubeadm init`. you will get this error log from kubelet: ```log Oct 27 11:12:57 vm_81_12_centos kubelet: I1027 11:12:57.279458 2695 file.go:123] Can't process config file "/etc/kubernetes/manifests/kube-controller-manager.json": invalid pod: [metadata.name: Invalid value: "kube-controller-manager-vm_81_12_centos": must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (e.g. 'example.com') spec.nodeName: Invalid value: "vm_81_12_centos": must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (e.g. 'example.com')] ``` # where the error comes from in the code? `pkg/kubelet/config/file.go:144 sourceFile:extractFromDir` ```go func (s *sourceFile) extractFromDir(name string) ([]*api.Pod, error) { dirents, err := filepath.Glob(filepath.Join(name, "[^.]*")) if err != nil { return nil, fmt.Errorf("glob failed: %v", err) } pods := make([]*api.Pod, 0) if len(dirents) == 0 { return pods, nil } sort.Strings(dirents) for _, path := range dirents { statInfo, err := os.Stat(path) if err != nil { glog.V(1).Infof("Can't get metadata for %q: %v", path, err) continue } switch { case statInfo.Mode().IsDir(): glog.V(1).Infof("Not recursing into config path %q", path) case statInfo.Mode().IsRegular(): pod, err := s.extractFromFile(path) if err != nil { --> glog.V(1).Infof("Can't process config file %q: %v", path, err) } else { pods = append(pods, pod) } default: glog.V(1).Infof("Config path %q is not a directory or file: %v", path, statInfo.Mode()) } } return pods, nil } ``` # how to fix it? 1. change hostname by `hostnamectl set-hostname <right host name>` or 2. add `hostnameOverride` config. If hostnameOverride is set, then kubelet will use this value instead of system hostname. **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 ``` …ke kube-apiserver/kube-controller-manager and so on.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Kubeadm added unit tests for pkg app/util Added unit tests for kubeadm/app/util package testing functionality of tokens.go, error.go, and kubeconfig.go. This PR is part of the ongoing effort to add tests (#35025) /cc @pires @jbeda
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue bazel: implement set-gen as a bazel genrule cc @caesarxuchao who is the gengo master until @lavalamp is back.
-
Michail Kargakis authored
-
bulletRush authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fixed some issues with kubectl set resources when using kubectl set resources it resets all resource fields that are not being set. for example # kubectl set resources deployments nginx --limits=cpu=100m followed by # kubectl set resources deployments nginx --limits=memory=256Mi would result in the nginx deployment only limiting memory at 256Mi with the previous limit placed on the cpu being wiped out. This behavior is corrected so that each invocation only modifies fields set in that command and changed the testing so that the desired behavior is checked. Also a typo: you must specify an update to requests or limits or (in the form of --requests/--limits) corrected to you must specify an update to requests or limits (in the form of --requests/--limits) Implemented both the dry run and local flags. Added test cases to show that both flags are operating as intended. Removed the print statement "running in local mode" as in PR#35112
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove Job also from .status.active for Replace strategy When iterating over list of Jobs we're removing each of them when strategy is replace. Unfortunately, the job reference was not removed from `.status.active` which cause the controller trying to remove it once again during next run and failed removing what was already removed during previous run. This was cause by not removing the reference previously. This PR fixes that and cleans logs a bit, in that controller. @erictune fyi @janetkuo ptal
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Update drain test Update how int convert to string in the kubectl drain test. It is safer to use `strconv.Itoa()` than `string()`.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue apis: update comment for Eviction resource
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue kubectl commands must not use the factory out of Run Fixes https://github.com/kubernetes/kubernetes/issues/35426 @smarterclayton PTAL
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Require PV provisioner secrets to match type In 1.5, PV provisioners are allowing targeting namespaced secrets via storageclass params. This adds a requirement that those secrets' type match the volume provisioner plugin name, to prevent targeting and extraction of arbitrary secrets Helps limit secret targeting issues mentioned in https://github.com/kubernetes/kubernetes/issues/34822
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add test image for networking related tests This test image is to support the e2e test for #32551
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add "PrintErrorWithCauses" cmdutil helper **Release note**: ```release-note NONE ``` This patch adds a new helper function to `cmd/util/helpers.go` that handles errors containing collections of causes and prints each cause in a separate newline.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Use osInterface for Create A small fix of using osInterface instead of os for `Create()`. cc/ @Random-Liu
-
Brendan Burns authored
-
Anirudh Ramanathan authored
Skip scheduleJob e2e test if it's not enabled on server
-
Chao Xu authored
-