Commit Graph

1232 Commits (ac5524d84dfcf01f1a532a7da2402905d38ab79a)

Author SHA1 Message Date
deads2k 8b063a34b0 allow yaml as argument to patch 2015-09-30 11:58:42 -04:00
Dr. Stefan Schimanski 3650899b29 Add --address to kubectl proxy 2015-09-30 15:53:52 +02:00
Brendan Burns e827934d78 Merge pull request #12677 from andronat/kubectl_doc_cmd
A new command to read types' description from Swagger - kubectl explain
2015-09-29 19:35:37 -07:00
k8s-merge-robot 66e25b48b0 Merge pull request #14636 from feihujiang/fixMinorBugsInKubectlCommand
Auto commit by PR queue bot
2015-09-29 19:31:40 -07:00
Prashanth Balasubramanian 99b0e051fc Kubectl printer 2015-09-29 18:51:24 -07:00
Tim St. Clair 4dc9df91d8 Fix race condition in kubectl run --attach 2015-09-29 15:02:38 -07:00
Dan Mace 6db9601772 Support asymmetric rolling rollbacks
Improve the rolling updater rollback/abort function by making it aware
of the original replicas annotation: if the rollback target has the
original replica count recorded, prefer it over the desired annotation
since the update from old to new could have been asymmetrical.

For example, when scaling from 5 to 10, aborting should scale back to 5.
2015-09-29 09:00:02 -04:00
Jerzy Szczepkowski a5194c5ff4 HorizontalPodAutoscaler.Status kept by value, not by pointer.
HorizontalPodAutoscaler.Status kept by value, not by pointer. Fixes #14567.
2015-09-29 14:25:46 +02:00
eulerzgy b1be6bc8ea add log err value 2015-09-29 17:09:25 +08:00
Brendan Burns afea127a3e Move the default schema cache to the home directory 2015-09-28 16:26:48 -07:00
nikhiljindal c651c1ae30 Updating the semantics of MaxSurge and unavailability 2015-09-28 14:51:26 -07:00
nikhiljindal 153c57ffc8 Adding a DeploymentDescriber to kubectl 2015-09-28 14:21:24 -07:00
Wojciech Tyczynski 5994e1d425 Merge pull request #14658 from mwielgus/describe_fix
Fix terminated pod printing in kubectl describe
2015-09-28 17:00:30 +02:00
Marcin Wielgus 62da43eef2 Fix terminated pod printing in kubectl describe 2015-09-28 16:54:12 +02:00
feihujiang e31bc89232 Fix minor bugs in kubectl command 2015-09-28 13:58:31 +08:00
Anastasis Andronidis e8b9dde623 new kubectl explain command 2015-09-26 14:25:53 +03:00
Brian Grant b90797d941 Merge pull request #14406 from hurf/config_message
Improve message from kubectl config
2015-09-25 11:01:34 -07:00
Chao Xu ae1293418b move experimental/v1 to experimental/v1alpha1;
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Eric Tune 43b37204ec Merge pull request #14502 from deads2k/tolerate-missing-sortby
don't fatal on missing sorting flag
2015-09-24 14:09:42 -07:00
deads2k dd7ed11fc1 don't fatal on missing sorting flag 2015-09-24 12:53:33 -04:00
Maciej Szulik 48775319d9 Reaper and scaler for jobs 2015-09-23 13:06:34 +02:00
hurf c4dc056105 Improve message from kubectl config
1.use Fprintf instead of Printf
2.output simple success messages
3.lowercase all error messages
2015-09-23 16:10:21 +08:00
Mike Danese 2313c9ada0 move daemonset describe to experimental 2015-09-22 09:13:42 -07:00
k8s-merge-robot 8f831ec9fd Merge pull request #14306 from mikedanese/fix
Auto commit by PR queue bot
2015-09-21 21:42:56 -07:00
Mike Danese 2e8c87e309 dereference pointer before printing in the describer 2015-09-21 13:55:19 -07:00
Clayton Coleman c2e90cd154 Support extended pod logging options
Increase the supported controls on pod logging. Add validaiton to pod
log options. Ensure the Kubelet is using a consistent, structured way to
process pod log arguments.

Add ?sinceSeconds=<durationInSeconds>, &sinceTime=<RFC3339>, ?timestamps=<bool>,
?tailLines=<number>, and ?limitBytes=<number>
2015-09-21 15:39:32 -04:00
k8s-merge-robot c2f76e4ce7 Merge pull request #14106 from jszczepkowski/hpa-api
Auto commit by PR queue bot
2015-09-19 22:23:06 -07:00
k8s-merge-robot 434b768822 Merge pull request #13277 from uluyol/sv-detect-group
Auto commit by PR queue bot
2015-09-18 01:31:43 -07:00
Muhammed Uluyol f855e75805 Correctly do swagger validation with experimental.
Before we tried both groups, first api then experimental. If
experimental failed, the error message would be discarded and the
message for api would be shown. This commit changes this behavior so
that we detect which api group we should be using and only show the
error for that group.
2015-09-17 22:54:56 -04:00
Daniel Martí 586cb9126a Move pkg/util.Time to pkg/api/unversioned.Time
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Kris f4ad00d9ae Moving Status object to a common package 2015-09-17 14:09:53 -07:00
Clayton Coleman bf2decce81 Add NotReadyAddresses to Endpoints
In many cases clients may wish to view not ready addresses for endpoints
in order to do set membership prior to a pod being ready. For instance,
a pod that uses the service endpoints to connect to other pods under
the same service, but does not want to signal ready before it has
contacted at least a minimal number of other pods.

This is backwards compatible with old servers and clients. There is
an additional cost in size of endpoints before services ramp up, which
will add minor CPU and memory use for services that have a significant
number of pods which have not become ready.
2015-09-17 09:41:56 -04:00
Jerzy Szczepkowski 7fcf7f1177 Cleanups in HorizontalPodAutoscaler API.
Cleanups in HorizontalPodAutoscaler API: renamed Min/MaxCount to Min/MaxReplicas as Replicas is the proper name used in other objects.
2015-09-17 14:16:43 +02:00
k8s-merge-robot b342591032 Merge pull request #13604 from JanetKuo/kubectl-edit
Auto commit by PR queue bot
2015-09-17 03:00:33 -07:00
k8s-merge-robot 2e255b5fcd Merge pull request #13977 from JanetKuo/kubectl-scale-rc-pd
Auto commit by PR queue bot
2015-09-17 01:52:33 -07:00
Mike Danese 77a06cbf05 Merge pull request #13183 from mikedanese/daemon_kubectl
Add daemonset support to kubectl
2015-09-16 19:02:36 -07:00
k8s-merge-robot 426d4a2477 Merge pull request #13945 from caesarxuchao/kube-api-prefix
Auto commit by PR queue bot
2015-09-16 18:43:55 -07:00
feihujiang ba38a8764b Remove useless codes about minion 2015-09-16 14:22:53 +08:00
Janet Kuo 5a608446ba pull "kubectl edit" from openshift upstream 2015-09-15 19:16:23 -07:00
Mike Danese 54b0faf39a rebase onto head 2015-09-15 18:13:28 -07:00
Ananya Kumar 30f5b93d2f Add Kubectl support for Daemon 2015-09-15 18:11:12 -07:00
Janet Kuo 3aad8cabbd Better error handling when scaling a rc 2015-09-15 18:04:04 -07:00
Chao Xu 9bef5ff99d register experimental apis as apis/experimental/..
mark --api-version as deprecated
2015-09-15 11:25:01 -07:00
Maciej Szulik 1b46bc010a Job clients, printer and describer 2015-09-15 13:54:51 +02:00
k8s-merge-robot b8e938b795 Merge pull request #13184 from feihujiang/limitTypesForExposeCommand
Auto commit by PR queue bot
2015-09-15 01:21:19 -07:00
k8s-merge-robot bb1af1ec49 Merge pull request #13912 from zhengguoyong/fix-cmd-apiversion
Auto commit by PR queue bot
2015-09-14 21:37:57 -07:00
feihujiang 98689a99ec Limit the type for kubectl expose command 2015-09-15 11:17:04 +08:00
Jeff Lowdermilk 0898ce852d Merge pull request #13756 from kargakis/make-external-svcs-exposable
expose: Avoid selector resolution if a selector is not needed
2015-09-14 16:01:55 -07:00
k8s-merge-robot 8189460809 Merge pull request #13844 from tummychow/label-deps-2
Auto commit by PR queue bot
2015-09-14 12:56:24 -07:00
eulerzgy 742b508d9d fix the optimization of apiversion 2015-09-15 01:16:10 +08:00
Jeff Lowdermilk e25ae7fdb2 Merge pull request #13833 from caesarxuchao/central-latest
[WIP] Making a generic latest package
2015-09-14 09:26:58 -07:00
tummychow a21c52a766 Move util/validation files to their own package 2015-09-13 00:46:52 -07:00
k8s-merge-robot 916472f65d Merge pull request #13850 from feihujiang/enhanceErrorMessageForScaleRepicasOperationRequired
Auto commit by PR queue bot
2015-09-12 20:19:25 -07:00
k8s-merge-robot 96df310729 Merge pull request #13783 from feihujiang/changeExposePortOperationToNoRequired
Auto commit by PR queue bot
2015-09-12 18:54:34 -07:00
Chao Xu f5023929d8 fix broken files after rebase 2015-09-12 15:45:12 -07:00
k8s-merge-robot 04837579ad Merge pull request #13460 from derekwaynecarr/run_requests
Auto commit by PR queue bot
2015-09-11 18:19:17 -07:00
Chao Xu ac5481d089 move client/unversioned/fake.go to its own package 2015-09-11 17:33:54 -07:00
Chao Xu 64bf839e9f refactor tests to use testapi rather than latest directly 2015-09-11 17:32:23 -07:00
Chao Xu dd6c121d7f massive changes 2015-09-11 17:31:47 -07:00
k8s-merge-robot cb481b4a00 Merge pull request #13837 from brendandburns/kubectl2
Auto commit by PR queue bot
2015-09-11 17:18:29 -07:00
Daniel Smith ccd9e3e247 Run all automated tools 2015-09-11 16:11:08 -07:00
Daniel Smith 4c2adabf42 move; sed replace 2015-09-11 16:03:22 -07:00
Brendan Burns 9ba13ff361 Address comments 2015-09-11 13:55:16 -07:00
k8s-merge-robot b67aa39c73 Merge pull request #13626 from feihujiang/getTerminatedPodByName
Auto commit by PR queue bot
2015-09-11 12:57:03 -07:00
k8s-merge-robot bff6ee8e4a Merge pull request #12695 from JanetKuo/kubectl-describe-pod-podstatus
Auto commit by PR queue bot
2015-09-11 08:08:32 -07:00
derekwaynecarr 295b8cdf16 Add requests and limits to kubectl run 2015-09-11 10:57:21 -04:00
kargakis a49230e736 Test for exposable services 2015-09-11 15:30:17 +02:00
feihujiang 084c7fe82a Enhance error message for scale's replicas operation 2015-09-11 16:15:13 +08:00
Brendan Burns d9e1a00a14 Add caching for swagger schemas 2015-09-10 21:18:52 -07:00
Abhishek Shah 44ce4aa423 Create a LB for a K8S with the LB-IP provided by user. 2015-09-10 21:05:06 -07:00
feihujiang 714a042ce4 Change Expose Command's port operation to no required 2015-09-11 11:37:55 +08:00
k8s-merge-robot 865359d33d Merge pull request #13481 from brendandburns/attach3
Auto commit by PR queue bot
2015-09-10 20:05:19 -07:00
Janet Kuo 2e5aeaff52 Add percentage of total limits and a help doc to explain why it may be over 100% 2015-09-10 18:21:50 -07:00
Janet Kuo 5ffe46d376 Use resource.Quantity string representation to print requests and limits 2015-09-10 18:21:50 -07:00
Janet Kuo 22a794cc22 List resource QoS tier of each container when describing pods; Re-order resource table 2015-09-10 18:21:50 -07:00
Janet Kuo 6e76f1aef7 Show more information in describe node/pod 2015-09-10 18:21:50 -07:00
k8s-merge-robot e46c940cae Merge pull request #13545 from brendandburns/kubectl
Auto commit by PR queue bot
2015-09-10 17:23:11 -07:00
k8s-merge-robot 381a723814 Merge pull request #13532 from JanetKuo/kubectl-dont-use-specific-printer
Auto commit by PR queue bot
2015-09-10 14:39:02 -07:00
Brendan Burns 2b3bb33569 Address comments. 2015-09-10 13:07:13 -07:00
Brendan Burns 56a1cd76cb Address changes. 2015-09-10 13:05:32 -07:00
Brendan Burns b485821bb1 Enable custom columns printing in kubectl 2015-09-10 13:05:32 -07:00
tummychow 78ce5da988 Move util.StringSet into its own package
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
Michal Fojtik fb14c8cdf3 Allow to replace os.Exit() with panic when CLI command fatal error 2015-09-10 09:42:22 +02:00
Chao Xu 002dcc6343 Merge pull request #13737 from wojtek-t/switch_to_node_in_registry
Rename "minion" to "node" in few places.
2015-09-09 17:49:22 -07:00
kargakis c9268e1faf expose: Avoid selector resolution if a selector is not needed 2015-09-09 21:30:23 +02:00
Brendan Burns 682c68c2fb Address comments, and fix some bugs in kubectl. 2015-09-09 11:48:04 -07:00
Avesh Agarwal 6d6f338fac Adds servicesaccounts to kubectl get/describe cli help and docs. 2015-09-09 12:15:25 -04:00
Wojciech Tyczynski cd1ac360de Rename "minion" to "node" in few places. 2015-09-09 16:18:23 +02:00
Jan Chaloupka 70c74fbe4b Commit cd7d78b696 replaced use of
util.CheckErr(err)

with

if err != nil {
	return err
}

One replacement is incorrent. The current call of resource.NewBuilder is returned in r variable. Which was tested with util.CheckErr(r.Err()) before cd7d78b696 commit. It was replaced by

if err != nil {
	return err
}

which is incorrect as err is not set by resource.NewBuilder call. The correct use is

err := r.Err()
if err != nil {
	return err
}
2015-09-09 12:40:55 +02:00
Chao Xu a6566031be Merge pull request #13422 from feihujiang/supportSettingEnvInKubectlRun
Support setting env vars in kubectl run
2015-09-08 10:32:48 -07:00
feihujiang 84e94e39cd Support setting env vars in kubectl run 2015-09-08 14:31:29 +08:00
feihujiang 008a26f690 Get the terminated pod by name 2015-09-08 14:15:36 +08:00
hurf 8efc62bcce Simplify default output of "expose" command
Use simple output string such as "rc nginx exposed" to show the
result. Users can still use options like "-o yaml" to view detailed
result.

IP will be printed with detailed result now.
2015-09-07 15:17:17 +08:00
Dai Zuozhuo 2e2ef3e830 change -o template to -o go-template=... 2015-09-05 22:30:47 +08:00
k8s-merge-robot 2e2def36a9 Merge pull request #13581 from caesarxuchao/APIGroup-testapi-2
Auto commit by PR queue bot
2015-09-04 20:38:45 -07:00
Chao Xu 9fc79e9d99 refactor testapi and test scripts to prepare for multiple API groups. 2015-09-04 18:01:32 -07:00
Quinton Hoole be19554bae Merge pull request #13383 from hurf/label_drun
Add --dry-run option for label command
2015-09-04 14:03:14 -07:00
Quinton Hoole ded8569524 Merge pull request #12908 from mwielgus/kubectl_get_hpa
HorizontalPodAutoscaler in kubectl get
2015-09-04 09:07:08 -07:00
Quinton Hoole e5e2bc9580 Merge pull request #10833 from markturansky/loosen_binding
Allow PV/Claim matching on inexact access modes
2015-09-04 09:06:31 -07:00
Piotr Szczesniak de92c9bac2 Merge pull request #13482 from jlowdermilk/resource-builder-err-msg
Print recognized file extensions in resource builder error
2015-09-04 13:45:41 +02:00
Piotr Szczesniak 7fc1fe2dd9 Merge pull request #13444 from hurf/run_out
Change default output of `run` command
2015-09-04 13:43:00 +02:00
Piotr Szczesniak 57e35b794f Merge pull request #13445 from hurf/ru_out
Make -o option working for rolling-update
2015-09-04 09:11:28 +02:00
Piotr Szczesniak b2cfb8cb8e Merge pull request #13486 from JanetKuo/kubectl-rolling-generateName
Fix the bug that rolling-update throws error when using generateName
2015-09-04 09:07:45 +02:00
Timothy St. Clair 2b7e758c3c Fixes the experimental api, which appeared to be completely broken.
Fix for rebase with nikhiljindal/deploymentController
2015-09-03 21:56:45 -05:00
Abhi Shah 0758a298db Merge pull request #13366 from feihujiang/printValidContainersNames
Print valid container names when the command not specify the container
2015-09-03 16:36:27 -07:00
Abhi Shah 7dd85cb51b Merge pull request #13490 from feihujiang/changeVariablesToEnvionmentVariablesWhenDescribeContainers
Change variables to environment variables when describe containers
2015-09-03 15:39:24 -07:00
Jeff Lowdermilk cb65cfa746 Print recognized file extensions in resource builder error 2015-09-03 11:01:13 -07:00
hurf 46e7f5684c Add --dry-run option for label command
With --dry-run option, label command will print the object locally
without update it on server side.
2015-09-03 21:37:11 +08:00
hurf 65bfd3541f Make -o option working for rolling-update
Use simple message to show the result. If -o is specified, print
updated rc.
2015-09-03 20:29:58 +08:00
Marcin Wielgus 3f21071064 HorizontalPodAutoscaler in kubectl get 2015-09-03 13:49:06 +02:00
feihujiang 0427711c42 Fixes upper case letters in kubectl examples 2015-09-03 12:00:21 +08:00
Janet Kuo 96031aaca5 Get printer from factory instead of using NewHumanReadablePrinter to retrieve handled resources 2015-09-02 15:38:40 -07:00
Abhi Shah 13784bf9ca Merge pull request #13047 from JanetKuo/kubectl-label-bash-completion
Enable kubectl label resource type bash completion
2015-09-02 15:16:54 -07:00
Abhi Shah 642ebb4994 Merge pull request #13099 from JanetKuo/kubectl-expose-deprecate-create-external-load-balancer
Deprecated kubectl flag "create-external-load-balancer"
2015-09-02 15:16:08 -07:00
Abhi Shah b6aac3633d Merge pull request #13415 from JanetKuo/kubectl-rolling-bash-completion
Enable kubectl rolling-update rc name bash completion
2015-09-02 15:14:21 -07:00
Janet Kuo c9beb5b39c Fix the bug that rolling-update throws error when using generateName 2015-09-02 13:30:14 -07:00
Dan Mace 347b9334e2 Refactor test to use new fake reactors
Fix a test compilation error by refactoring the test code to use
the latest fake reactor framework.
2015-09-02 13:45:32 -04:00
Brendan Burns 3e407aebb2 Diable a broken unit test 2015-09-02 10:39:17 -07:00
Brendan Burns 31454d0f46 Merge pull request #12705 from brendandburns/kubectl
Add a printer that knows how to print user-defined columns
2015-09-02 09:47:34 -07:00
hurf af1d7de874 Change default output of `run` command
Use simple message instead of print result in `get` form.
2015-09-02 14:11:20 +08:00
feihujiang 02206bed61 Print valid container names when the command not specify the container 2015-09-02 14:06:46 +08:00
feihujiang e7592b1c99 Change variables to environment variables when describe containers 2015-09-02 10:02:07 +08:00
k8s-merge-robot 0a062c5b24 Merge pull request #11942 from ironcladlou/rolling-update-availability
Auto commit by PR queue bot
2015-09-01 16:51:13 -07:00
k8s-merge-robot 51d7f85636 Merge pull request #13406 from nikhiljindal/kubectlDeployment
Auto commit by PR queue bot
2015-09-01 13:33:23 -07:00
Daniel Smith cfe2bf10f2 Merge pull request #13426 from feihujiang/aggregateErrorsWhenValidateParams
Aggregate errors when validate kubectl required parameters and labels
2015-09-01 12:26:45 -07:00
Daniel Smith 10efd9806a Merge pull request #13227 from kargakis/fix-exposing-from-file
expose: Don't query the server for input objects
2015-09-01 12:23:01 -07:00
Janet Kuo b673920ccf Get printer from factory to retrieve handled resources 2015-09-01 10:20:51 -07:00
Janet Kuo 23740d9080 Enable kubectl label resource type bash completion 2015-09-01 10:19:51 -07:00
Brendan Burns de14623775 Add a printer that knows how to print user-defined columns 2015-09-01 10:11:13 -07:00
Dan Mace da5e4d7bd5 Rolling updater availability enhancements
Enhance the rolling updater to support maintaining minimum pod
availability for the duration of the update process.
2015-09-01 12:54:08 -04:00
deads2k f1b81ff678 bind filenames var instead of looking up 2015-09-01 08:35:57 -04:00
k8s-merge-robot a4d953f4b3 Merge pull request #13131 from hurf/anno_unused
Auto commit by PR queue bot
2015-09-01 04:32:13 -07:00
feihujiang da03746b22 Aggregate errors when validate kubectl required parameters 2015-09-01 14:34:31 +08:00
Janet Kuo 94b4659b7b Enable kubectl rolling-update rc name bash completion 2015-08-31 16:37:44 -07:00
nikhiljindal ac0b060e62 Adding a kubectl resource printer for deployments 2015-08-31 14:57:02 -07:00
k8s-merge-robot 08668d7d94 Merge pull request #13309 from kubernetes/revert-13246-revert-12492-limit_range_api
Auto commit by PR queue bot
2015-08-28 21:03:49 -07:00
k8s-merge-robot f1acdbe3c6 Merge pull request #13188 from hurf/label_printer
Auto commit by PR queue bot
2015-08-28 18:04:01 -07:00
k8s-merge-robot 4c56d4962f Merge pull request #13179 from feihujiang/showClientVersionAtLeastWhenCouldNotReadServerVersion
Auto commit by PR queue bot
2015-08-28 17:32:57 -07:00
Prashanth B 52f7833cd3 Revert "Revert "LimitRange updates for Resource Requirements Requests"" 2015-08-28 09:26:36 -07:00
Janet Kuo 18e87724c5 Deprecated kubectl flag "create-external-load-balancer" 2015-08-28 00:54:33 -07:00
markturansky 0b6030f50c added better matching for PV access modes 2015-08-27 15:34:07 -04:00
kargakis e86bb1aeca expose: Don't query the server for input objects
Signed-off-by: kargakis <mkargaki@redhat.com>
2015-08-27 15:52:22 +03:00
Piotr Szczesniak 6e05b9e3a3 Revert "LimitRange updates for Resource Requirements Requests" 2015-08-27 10:50:50 +02:00
hurf 961d7f995a Remove unused parameters and flags
Some params and flags are set but not used, remove them.
2015-08-27 10:40:40 +08:00
Yu-Ju Hong b00c04c497 Merge pull request #12845 from hurf/o_name
Add -o name for commands which use printer to output results
2015-08-26 13:03:52 -07:00
Yu-Ju Hong 1bae2b677d Merge pull request #12492 from derekwaynecarr/limit_range_api
LimitRange updates for Resource Requirements Requests
2015-08-26 13:02:57 -07:00
Marcin Wielgus 55cd0d565e Kubectl describe for experimental HorizontalPodAutoscaler 2015-08-26 16:28:50 +02:00
hurf d2d96ff6e1 Add -o name for commands which use printer to output results
Added a new printer which prints 'resource/name' pair of a given
object.
2015-08-26 17:04:23 +08:00
hurf 6ccc438169 Use exsiting print function in label command
Instead of getting printer in the code, use exsiting function.
2015-08-26 16:45:11 +08:00
feihujiang 6b394e7212 Kubectl version should show client version at least
when couldn't read server version
2015-08-26 15:00:28 +08:00