Commit Graph

1756 Commits (6cd8e5c0e6f35c933515d3af3b4a5d9f85a37880)

Author SHA1 Message Date
nikhiljindal cb8414e247 Resetting maxUnavailable for kubectl rolling update to 0 2016-03-01 18:44:59 -08:00
k8s-merge-robot 739285b146 Merge pull request #21265 from stevekuznetsov/skuznets/new-sa
Auto commit by PR queue bot
2016-03-01 01:14:06 -08:00
Kris f22664159e Move the discovery client to its own package 2016-02-29 15:37:21 -08:00
Kris e664ef922f Move restclient to its own package 2016-02-29 12:05:13 -08:00
k8s-merge-robot d1d036391a Merge pull request #22177 from AdoHe/update_commented_examples
Auto commit by PR queue bot
2016-02-29 09:18:57 -08:00
AdoHe 9cc668f7c6 update commented examples just remove $ 2016-02-29 09:41:09 -05:00
Michail Kargakis 530dbe4d01 kubectl: add container ports in pod description 2016-02-28 23:33:58 +01:00
k8s-merge-robot 13f6daf980 Merge pull request #22141 from AdoHe/kubectl_add_age_column
Auto commit by PR queue bot
2016-02-28 13:09:59 -08:00
k8s-merge-robot 5ecbf4ff4a Merge pull request #22138 from bgrant0607/bugfix1
Auto commit by PR queue bot
2016-02-28 02:00:40 -08:00
Brian Grant d0dd4f8a93 Restore expectation timeout to 5 minutes. Fix enqueueDeployment. Pass by reference.
Make names of ReplicaSets created by Deployment deterministic for idempotence.
Eliminate use of expectations in Deployment controller.
2016-02-28 07:33:07 +00:00
AdoHe c56c4c87f7 kubectl add AGE column to job, ingress and daemonset 2016-02-28 00:59:01 -05:00
k8s-merge-robot 6f8a951f87 Merge pull request #20446 from derekwaynecarr/quota_scopes
Auto commit by PR queue bot
2016-02-27 19:46:42 -08:00
k8s-merge-robot e089e841b1 Merge pull request #21593 from fabianofranz/split_bind_flags
Auto commit by PR queue bot
2016-02-27 16:10:19 -08:00
Paul Morie 7a6a4fab97 Add kubectl describe output for downward API volume 2016-02-27 15:40:13 -05:00
derekwaynecarr 01584bfabf Improve rendering of multiple quotas in namespace; show scopes 2016-02-26 20:34:15 -05:00
k8s-merge-robot 551d252497 Merge pull request #21864 from AdoHe/kubectl_job_desired
Auto commit by PR queue bot
2016-02-26 16:18:34 -08:00
Fabio Yeon 97bae1099b Merge pull request #21661 from AdoHe/describe_container_status_optional
make show status in describe.DescribeContainers optional
2016-02-26 15:48:46 -08:00
Fabio Yeon a4c9a7c4c0 Merge pull request #19988 from soltysh/annotate_cmd
Fix kubectl annotate and label to use versioned objects when operating
2016-02-26 15:38:26 -08:00
Fabio Yeon caf7b9eba7 Merge pull request #21688 from pmorie/kubectl-describe-pod-config
Add describe output for ConfigMap volumes
2016-02-26 13:16:49 -08:00
Fabio Yeon 3dab166da4 Merge pull request #21776 from erictune/job-sel-gen
Selector generation for batch/v1 Job
2016-02-26 11:58:21 -08:00
Steve Kuznetsov e5b696ee43 added 'kubectl create sa' to create serviceaccounts 2016-02-26 10:27:37 -05:00
Marcin Wielgus d174353ec9 Print annotations in HPA describe` 2016-02-26 12:04:19 +01:00
k8s-merge-robot 8c60068b36 Merge pull request #21794 from caesarxuchao/fix-19715
Auto commit by PR queue bot
2016-02-25 18:31:52 -08:00
Brian Grant 63feac0afc Merge pull request #21872 from kargakis/maxUavailability-fix
kubectl: preserve availability when maxUnavailability is not 100%
2016-02-25 09:35:37 -08:00
Eric Tune 875755f992 Added Selector Generation to Job.
Added selector generation to Job's
strategy.Validate, right before validation.
Can't do in defaulting since UID is not known.

Added a validation to Job to ensure that the generated
labels and selector are correct when generation was requested.
This happens right after generation, but validation is in a better
place to return an error.

Adds "manualSelector" field to batch/v1 Job to control selector generation.
Adds same field to extensions/__internal.  Conversion between those two
is automatic.

Adds "autoSelector" field to extensions/v1beta1 Job.  Used for storing batch/v1 Jobs
    - Default for v1 is to do generation.
    - Default for v1beta1 is to not do it.
    - In both cases, unset == false == do the default thing.

Release notes:
Added batch/v1 group, which contains just Job, and which is the next
version of extensions/v1beta1 Job.

The changes from the previous version are:
- Users no longer need to ensure labels on their pod template are unique to the enclosing
  job (but may add labels as needed for categorization).
- In v1beta1, job.spec.selector was defaulted from pod labels, with the user responsible for uniqueness.
  In v1, a unique label is generated and added to the pod template, and used as the selector (other
  labels added by user stay on pod template, but need not be used by selector).
- a new field called "manualSelector" field exists to control whether the new behavior is used,
  versus a more error-prone but more flexible "manual" (not generated) seletor.  Most users
  will not need to use this field and should leave it unset.

Users who are creating extensions.Job go objects and then posting them using the go client
will see a change in the default behavior.  They need to either stop providing a selector (relying on
selector generation) or else specify "spec.manualSelector" until they are ready to do the former.
2016-02-25 09:28:07 -08:00
AdoHe aa6f07636b kubectl add job DESIRED column 2016-02-25 10:43:04 -05:00
deads2k 9c42d219bc allow disambiguation of resouces 2016-02-25 07:35:23 -05:00
deads2k 2b84d58b6d add a PriorityRESTMapper that can choose particular group/version of a resource 2016-02-25 07:35:23 -05:00
deads2k 94d683e89b fix ShortcutRESTMapper and prevent it from ever silently failing again 2016-02-25 07:35:22 -05:00
kargakis 9cc19102f3 kubectl: preserve availability when maxUnavailability is not 100% 2016-02-25 10:10:41 +01:00
Brian Grant 80614896db Merge pull request #21509 from madhusudancs/kubectl-get-list-deployments-daemonsets
Add DaemonSets and Deployments to valid resources list in kubectl.
2016-02-24 15:30:08 -08:00
Chao Xu 3efd3c62e6 Replace ineffective DeleteOptions with nil 2016-02-24 15:06:24 -08:00
Brian Grant 0b5edab208 Merge pull request #21857 from nikhiljindal/stopDeployment
fix deployment e2e flake: Update DeploymentReaper.Stop to use ObservedGeneration
2016-02-24 14:26:23 -08:00
Brian Grant 4add4ebacc Merge pull request #21445 from janetkuo/fix-rolling-update-nil
Fix rolling-update --image nil pointer dereference
2016-02-24 13:59:01 -08:00
Brian Grant b5c6341ec9 Merge pull request #21435 from janetkuo/use-intptr
Use IntPtr
2016-02-24 13:54:21 -08:00
nikhiljindal 2a538e317f Moving deployment deletion at the end 2016-02-24 13:00:45 -08:00
nikhiljindal 7e50fa6df0 Update DeploymentReaper.Stop to use ObservedGeneration to remove race condition 2016-02-24 00:09:44 -08:00
k8s-merge-robot 014f73c93f Merge pull request #21295 from AdoHe/kubectl_desired_column
Auto commit by PR queue bot
2016-02-24 00:05:41 -08:00
Janet Kuo e7356679bc Fix rolling-update --image nil pointer dereference 2016-02-23 15:07:53 -08:00
Piotr Szczesniak 3e023411f6 Added events to kubectl describe hpa 2016-02-23 20:44:51 +01:00
Madhusudan.C.S 781480d7fe Add DaemonSets and Deployments to valid resources list in kubectl. 2016-02-23 11:19:19 -08:00
Piotr Szczesniak 7f83e07465 Added support for HPA v1 in kubectl describe 2016-02-23 16:50:28 +01:00
AdoHe aa5c036a5c add DESIRED and CURRENT columns to rcs,ds,rs 2016-02-23 10:11:19 -05:00
k8s-merge-robot 725a8e8b36 Merge pull request #21369 from AdoHe/kubectl_change_column_titles
Auto commit by PR queue bot
2016-02-23 05:20:38 -08:00
k8s-merge-robot d3661414a1 Merge pull request #21273 from kargakis/rolling-updater-fix
Auto commit by PR queue bot
2016-02-23 04:50:59 -08:00
Paul Morie 4c61f2ce27 Add describe output for ConfigMap volumes 2016-02-22 12:26:05 -05:00
k8s-merge-robot 95354490c1 Merge pull request #21318 from kargakis/record-command-factory-method-tweak
Auto commit by PR queue bot
2016-02-22 08:11:57 -08:00
AdoHe 55823156d7 make show status in describe.DescribeContainers optional 2016-02-22 03:16:34 -05:00
k8s-merge-robot aee2eb3977 Merge pull request #21434 from erictune/job-ga
Auto commit by PR queue bot
2016-02-22 00:12:54 -08:00
k8s-merge-robot e34a23b289 Merge pull request #21351 from smarterclayton/optional_pod_status
Auto commit by PR queue bot
2016-02-21 04:10:19 -08:00
k8s-merge-robot 12383dfa0c Merge pull request #21341 from smarterclayton/liveness_describer
Auto commit by PR queue bot
2016-02-20 23:31:22 -08:00
k8s-merge-robot 330f484c17 Merge pull request #21174 from deads2k/make-patch-more-predictable
Auto commit by PR queue bot
2016-02-20 05:56:41 -08:00
Fabiano Franz 59ea2b1e59 Split factory#BindFlags 2016-02-19 20:41:16 -02:00
Maciej Szulik 9bfa27a5bf Fix kubectl annotate and label to use versioned objects when operating 2016-02-19 22:40:18 +01:00
Brian Grant d9635b5e3e Merge pull request #21572 from janetkuo/fix-flake-rollback-norevision
Retry Update in DeploymentReaper.Stop
2016-02-19 12:06:09 -08:00
Janet Kuo 3a3ebf68f0 Retry Update in DeploymentReaper.Stop 2016-02-19 11:31:41 -08:00
deads2k 11da9a7638 fix --record to not fail a successful patch 2016-02-19 14:28:23 -05:00
k8s-merge-robot 82c09f074b Merge pull request #20481 from kargakis/edit-fixes
Auto commit by PR queue bot
2016-02-19 10:55:16 -08:00
Eric Tune b4d454e9d5 Autogenerate. 2016-02-19 09:48:03 -08:00
Eric Tune bcdbd1c709 Fix Job Reaping
Ensure batch.Kind("Job") has a reaper, so that pods are not orphaned.
Check for orphaned pods in test-cmd.sh.
Also provide describer and scaler for batch.Kind("Job").
The scaler, reaper, and describer for extensions can
be reused for batch.
2016-02-19 09:22:05 -08:00
Eric Tune 175addf2a3 Implemented Batch client 2016-02-19 09:20:56 -08:00
Michail Kargakis 35fab99af7 kubectl: scale down based on ready during rolling updates 2016-02-19 15:42:04 +01:00
k8s-merge-robot 68a5641eb8 Merge pull request #20803 from aveshagarwal/master-sortby-indentation-issue
Auto commit by PR queue bot
2016-02-19 00:33:00 -08:00
k8s-merge-robot 5a3dec8dad Merge pull request #20777 from pmorie/kubectl-create-configmap
Auto commit by PR queue bot
2016-02-19 00:03:53 -08:00
k8s-merge-robot eb45154996 Merge pull request #21348 from caesarxuchao/generate-fake-for-1-2
Auto commit by PR queue bot
2016-02-18 23:02:05 -08:00
Paul Morie 51a9c2c9ba Add kubectl create configmap 2016-02-18 21:24:21 -05:00
k8s-merge-robot 5acdb92126 Merge pull request #21177 from laushinka/spelling-fixes
Auto commit by PR queue bot
2016-02-18 10:29:49 -08:00
k8s-merge-robot 17325ef6ef Merge pull request #20501 from piosz/hpa-ga
Auto commit by PR queue bot
2016-02-18 06:52:39 -08:00
Michail Kargakis f4658396eb kubectl: a couple of edit fixes
Fix some edit bugs:
* Reload the file in case of syntax errors
* Fix error format for validation errors
* Avoid hotlooping in case of no changes or empty saves
2016-02-18 11:43:07 +01:00
Clayton Coleman c198367958 Add a liveness and readiness describer to pods
Also shorten the Last Termination State label so the page is denser.
2016-02-17 20:07:05 -05:00
Chao Xu ad46715f51 generate fake client for release_1_2 2016-02-17 16:10:02 -08:00
laushinka 7ef585be22 Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
Janet Kuo 1a5dd9f14f Use IntPtr 2016-02-17 15:08:50 -08:00
Michail Kargakis 55f402c5a6 kubectl: use the factory properly for recording commands 2016-02-17 12:16:19 +01:00
Clayton Coleman 778fb1798b Don't print reason or message if they are empty on pods
For running pods they are typically empty and convey no value. Don't
print images twice.
2016-02-16 23:26:59 -05:00
AdoHe 10feb3e6fd change CONTROLLER, ReplicaSet and Job column titles to NAME 2016-02-16 23:14:12 -05:00
Janet Kuo 92eb075a2b When reaping deployments, retry deployment Update 2016-02-16 15:12:38 -08:00
k8s-merge-robot dada47eb2f Merge pull request #21179 from smarterclayton/cant_replace_cluster_resource
Auto commit by PR queue bot
2016-02-16 04:45:43 -08:00
k8s-merge-robot 9dacc5b382 Merge pull request #21238 from AdoHe/kubectl_help_bug
Auto commit by PR queue bot
2016-02-15 19:16:39 -08:00
k8s-merge-robot 47acbd62ec Merge pull request #21099 from deads2k/extend-patch
Auto commit by PR queue bot
2016-02-15 14:49:02 -08:00
Piotr Szczesniak d2f11521cb Implemented Autoscaling client 2016-02-15 21:39:00 +01:00
k8s-merge-robot 1380a3e6a1 Merge pull request #20850 from deads2k/remove-resource-is-valid
Auto commit by PR queue bot
2016-02-15 11:27:19 -08:00
k8s-merge-robot 134d44cf2b Merge pull request #20409 from AdoHe/kubectl_ingress_labels
Auto commit by PR queue bot
2016-02-15 10:59:12 -08:00
deads2k 9901a386c3 remove ResourceIsValid 2016-02-15 07:49:48 -05:00
k8s-merge-robot 94b3c95e7a Merge pull request #20557 from AdoHe/kubectl_update_wide
Auto commit by PR queue bot
2016-02-15 00:18:37 -08:00
AdoHe 81103a07c2 fix --sort-by help bug 2016-02-14 22:31:13 -05:00
k8s-merge-robot ee33ed2cf5 Merge pull request #20981 from madhusudancs/labelselector-error-string-fix
Auto commit by PR queue bot
2016-02-14 03:14:46 -08:00
AdoHe f6b5eca11c kubectl print ingress add column labels 2016-02-14 04:28:44 -05:00
k8s-merge-robot d28ac1f88b Merge pull request #20948 from ghodss/versioned-apply
Auto commit by PR queue bot
2016-02-14 00:56:10 -08:00
AdoHe 53d4b15b87 move columns into wide option to make result more readable 2016-02-14 03:55:00 -05:00
k8s-merge-robot 3b4c0beb99 Merge pull request #20868 from mqliang/int-min-max
Auto commit by PR queue bot
2016-02-13 17:32:22 -08:00
k8s-merge-robot 53d9f9ecab Merge pull request #20814 from deads2k/restmapper-errors
Auto commit by PR queue bot
2016-02-13 15:53:22 -08:00
k8s-merge-robot 060f8f4db7 Merge pull request #20802 from aveshagarwal/master-allnamespaces-issue
Auto commit by PR queue bot
2016-02-13 15:25:15 -08:00
Jordan Liggitt dd5d98d80a regen codecs 2016-02-13 09:15:39 -05:00
k8s-merge-robot 19c8d73cac Merge pull request #18077 from soltysh/stop_deployment
Auto commit by PR queue bot
2016-02-12 22:47:04 -08:00
Clayton Coleman d23c531869 Can't replace a generic resource that is cluster scoped
It should be allowed to invoke kubectl replace with a JSON file that has
no resource version set.  Namespaced resources were working correctly,
but cluster resources were silently failing to lookup the current state
of the object to get the resource version because we weren't using
NamespaceIfScoped(). Added a failing test.
2016-02-12 16:20:37 -05:00
Janet Kuo 4e8b4871c4 Add e2e test for kubectl run should generate deployment 2016-02-12 12:29:14 -08:00
Janet Kuo 311385e76c Make deployment the default in kubectl run 2016-02-12 12:29:14 -08:00
deads2k 9f003f7db3 allow patch to handle multiple types 2016-02-12 11:12:09 -05:00
Maciej Szulik b929424135 Scale deployments fall-back to regular deployment update 2016-02-12 10:17:35 +01:00