k8s-merge-robot
121f33068d
Merge pull request #16668 from deads2k/fix-hpa-escalation
...
Auto commit by PR queue bot
2015-11-03 06:11:34 -08:00
k8s-merge-robot
3f3918048a
Merge pull request #16669 from erictune/fix-run-docstring
...
Auto commit by PR queue bot
2015-11-03 05:29:29 -08:00
deads2k
fd1c8e096a
eliminate cross-namespace HPA escalation attack
2015-11-03 08:05:26 -05:00
k8s-merge-robot
1b437272ba
Merge pull request #16696 from janetkuo/kubectl-jsonpath
...
Auto commit by PR queue bot
2015-11-03 04:29:28 -08:00
Janet Kuo
4d92268212
Better error handling for output format when "kubectl config view"
2015-11-02 16:25:52 -08:00
Fabiano Franz
c60f19a1f8
Attach must only allow a tty when container supports it
2015-11-02 09:56:58 -05:00
Eric Tune
0bde95f1ce
Fix incorrect flag in example.
2015-10-30 15:40:05 -07:00
k8s-merge-robot
a9534bfd33
Merge pull request #16441 from liggitt/helper_codec
...
Auto commit by PR queue bot
2015-10-30 11:29:17 -07:00
Clayton Coleman
6f688c3df8
Improve the message for UsageError
...
Capitalize, also indicate that we have examples
2015-10-28 13:33:37 -04:00
Jordan Liggitt
b58e62e7d4
Pass runtime.Object to Helper.Create/Replace
2015-10-28 12:43:21 -04:00
Daniel Smith
6219b50280
Merge pull request #16160 from kargakis/windows-fixes-for-edit
...
edit: Windows fixes
2015-10-27 15:44:26 -07:00
Jerzy Szczepkowski
154923221f
Merge pull request #15951 from kargakis/factory-expose-method
...
Make CanBeExposed and CanBeAutoscaled composable
2015-10-27 11:04:40 +01:00
Jerzy Szczepkowski
bbee6cfcd7
Merge pull request #15461 from kargakis/relax-exposing-multiport-objects
...
expose: Enable exposing multiport objects
2015-10-27 10:25:54 +01:00
k8s-merge-robot
0884214fe0
Merge pull request #16058 from janetkuo/revert-kubectl-slash
...
Auto commit by PR queue bot
2015-10-25 19:23:14 -07:00
kargakis
4befdf5b49
Make CanBeExposed and CanBeAutoscaled composable
2015-10-24 20:07:35 +02:00
kargakis
73713ce268
edit: Windows fixes
...
Contains the following fixes for Windows users of kubectl edit:
* Defaults to notepad as the default Windows editor
* Uses CRLF line endings
* Ensures a file lock is freed
2015-10-24 17:06:49 +02:00
k8s-merge-robot
40b6f1cc28
Merge pull request #16109 from fabianofranz/move_attach_pod_selection_to_factory
...
Auto commit by PR queue bot
2015-10-24 03:45:29 -07:00
k8s-merge-robot
6d10b76b11
Merge pull request #15980 from janetkuo/kubectl-edit-updateapplyannotation
...
Auto commit by PR queue bot
2015-10-24 02:48:22 -07:00
k8s-merge-robot
570a9dc18f
Merge pull request #15796 from caesarxuchao/fix-kubectl-api-versions
...
Auto commit by PR queue bot
2015-10-24 01:24:31 -07:00
Tim Hockin
5c903dbcac
Merge pull request #16073 from caesarxuchao/fix-htmlpreview-on-head
...
fix htmlpreview links to point to subdictory
2015-10-23 13:32:29 -07:00
Fabiano Franz
312d53d9c9
Expose attachable pod discovery to factory
2015-10-23 17:28:41 -02:00
k8s-merge-robot
a10ed3e2b1
Merge pull request #15908 from jlowdermilk/rolling-update-doc
...
Auto commit by PR queue bot
2015-10-23 00:52:37 -07:00
Janet Kuo
f5adda3d81
Fixed the error for kubectl edit multiple resources
2015-10-22 22:35:15 -07:00
Brendan Burns
2935075388
Fix sorting from 2 bugs
2015-10-22 20:11:14 -07:00
Chao Xu
eb3a80156a
let kubectl api-versions use the discovery client
2015-10-22 10:19:34 -07:00
Filip Grzadkowski
ef7f65ba0a
Merge pull request #16042 from deads2k/missing-err-handling
...
fix missing error handling
2015-10-22 14:46:39 +02:00
Chao Xu
316bd058d0
fix htmlpreview links to point to subdictory
2015-10-21 15:46:52 -07:00
Janet Kuo
1d37c549b1
Revert/disable the slash syntax for kubectl explain group/version
2015-10-21 13:58:54 -07:00
Jeff Lowdermilk
d4de35e177
Merge pull request #15921 from brendandburns/fix2
...
Add a --expose flag to kubectl run
2015-10-21 13:17:26 -07:00
Jeff Lowdermilk
5bf993bf28
Validate image name for kubectl rolling-update NAME --image=IMAGE
...
Require distinct image from current one when starting a new
rolling-update, and exit with error if an existing in-progress update
is targeting a different image.
2015-10-21 11:48:39 -07:00
deads2k
2ea025aedd
fix missing error handling
2015-10-21 14:37:47 -04:00
k8s-merge-robot
071d21257f
Merge pull request #15808 from caesarxuchao/fix-kubectl-explain
...
Auto commit by PR queue bot
2015-10-21 07:04:32 -07:00
Brendan Burns
54fd60727e
add a --expose flag to kubectl run
2015-10-20 20:21:09 -07:00
Chao Xu
6f0f87b629
make kubectl explain work for extensions API
2015-10-19 10:21:56 -07:00
Janet Kuo
8105aa44a0
Implement kubectl autoscale
2015-10-19 09:59:22 -07:00
k8s-merge-robot
cadb6c06be
Merge pull request #14161 from feihujiang/letKubectlExecFollowDashRule
...
Auto commit by PR queue bot
2015-10-19 08:58:37 -07:00
k8s-merge-robot
77207d75e1
Merge pull request #15667 from JanetKuo/kubectl-watch-list
...
Auto commit by PR queue bot
2015-10-19 06:28:35 -07:00
kargakis
7d0e691520
expose: Enable exposing multiport objects
...
The generated service will inherit all the ports from the exposed object.
2015-10-19 11:25:14 +02:00
eulerzgy
f8f9afb874
alias local packagename for pkg/util/errors
2015-10-18 09:37:46 +08:00
k8s-merge-robot
d3ca12f61b
Merge pull request #15053 from smarterclayton/stdin_once
...
Auto commit by PR queue bot
2015-10-17 00:03:32 -07:00
k8s-merge-robot
d41737eff2
Merge pull request #15689 from caesarxuchao/default-ns-componentstatus
...
Auto commit by PR queue bot
2015-10-16 20:56:38 -07:00
Clayton Coleman
7f6f85bd7b
Fix attach, which was broken during the refactor
...
The new e2e test catches the break in attach (no e2e test
exposed this codepath before).
2015-10-16 20:33:51 -04:00
Clayton Coleman
e9a465d635
Make kubectl run attach behave like docker run
...
Have stdin closed by default, can be left open with --leave-stdin-open.
Add e2e tests for the behavior.
2015-10-16 20:33:51 -04:00
Chao Xu
262825f13d
make componenetstatus root scoped
2015-10-16 10:24:31 -07:00
Piotr Szczesniak
4b983584a8
Merge pull request #15597 from caesarxuchao/annotate-patch
...
let kubectl annotate use patch instead of replace
2015-10-16 07:29:22 +02:00
Piotr Szczesniak
c261325319
Merge pull request #15651 from caesarxuchao/label-patch
...
let kubectl label use PATCH instead of PUT
2015-10-16 07:29:13 +02:00
Eric Tune
d4475e3d49
Merge pull request #15232 from deads2k/refactor-logs
...
refactor kubectl logs to be composeable
2015-10-15 13:56:58 -07:00
Chao Xu
b5a3ab67da
let kubectl label use PATCH instead of PUT
2015-10-15 12:18:54 -07:00
k8s-merge-robot
4c8e6f47ec
Merge pull request #15394 from JanetKuo/kubectl-proxy-api-prefix
...
Auto commit by PR queue bot
2015-10-15 05:12:30 -07:00
Janet Kuo
33b9235312
Better error handling for watching a list of resources specified in a file
2015-10-14 16:38:03 -07:00
Janet Kuo
f47c2be539
Change kubectl proxy --api-prefix default to allow /apis/
2015-10-14 15:49:52 -07:00
Chao Xu
d0d260fd03
let kubectl annotate use patch instead of replace
2015-10-14 11:14:02 -07:00
deads2k
f0aa606632
refactor kubectl logs to be composeable
2015-10-14 13:22:59 -04:00
Janet Kuo
b9c8b76b6b
address comments
2015-10-13 18:48:27 -07:00
Janet Kuo
f39fe2056d
Keep Flatten() and format output earlier in kubectl get
2015-10-13 18:48:27 -07:00
Dawn Chen
0e0ae670ad
Merge pull request #15488 from caesarxuchao/experimental-extensions-client
...
Move from "Experimental" to "Extensions"
2015-10-13 16:54:37 -07:00
Dawn Chen
d6c43f48d1
Merge pull request #15473 from feihujiang/removeShorthandForClientInKubectlVersion
...
Remove shorthand for client flag in kubectl version
2015-10-13 16:24:08 -07:00
Chao Xu
493d2b6920
grep sed Experimental()
2015-10-13 13:22:54 -07:00
Chao Xu
9a812bd0c5
grep sed ExperimentalClient
2015-10-13 13:22:22 -07:00
k8s-merge-robot
2dec0826f7
Merge pull request #15351 from caesarxuchao/fix-14584-1
...
Auto commit by PR queue bot
2015-10-13 02:19:43 -07:00
Dawn Chen
6fa8ceda60
Merge pull request #14536 from wulonghui/wulonghui-patch-3
...
Update rollback process
2015-10-12 16:04:59 -07:00
Chao Xu
cbb3deb182
run goimports
2015-10-12 13:31:45 -07:00
Chao Xu
50a2c4c643
grep-sed
2015-10-12 13:31:45 -07:00
Dawn Chen
075c3a2c71
Merge pull request #15061 from kargakis/fix-dry-run-in-expose
...
Fix dry run in expose
2015-10-12 12:53:04 -07:00
Dawn Chen
149ca1ec49
Merge pull request #14618 from smarterclayton/refactor_exec
...
Refactor exec to make attach useful without a client.Config
2015-10-12 11:44:34 -07:00
feihujiang
6290aee8b8
Remove shorthand for client flag in kubectl version
2015-10-13 02:02:54 +08:00
feihujiang
4f38e8a745
Let kubectl exec follow dash rule
2015-10-12 01:29:07 +08:00
kargakis
4b23bf602d
expose: Minor cleanup
2015-10-10 16:16:41 +02:00
kargakis
083c5bebbd
expose: --dry-run should dump the object
...
Also make some tests use --dry-run and compare generated objects
against expected
2015-10-10 16:15:17 +02:00
Chao Xu
80f213c376
"experimental" -> "extensions"
2015-10-09 15:14:03 -07:00
Clayton Coleman
3f1b18fbba
Refactor exec to make attach useful without a client.Config
...
The current executor structure is too dependent on client.Request
and client.Config. In order to do an attach from the server, it needs
to be possible to create an Executor from crypto/tls#TLSConfig and to
bypassing having a client.Request.
Changes:
* remotecommand.spdyExecutor - handles upgrading a request to SPDY and getting a connection
* remotecommand.NewAttach / New - moved to exec / portforward / attach since they handle requests
* Remove request.Upgrade() - it's too coupled to SPDY, and can live with the spdyExecutor
* Add request.VersionedParams(runtime.Object, runtime.ObjectConvertor) to handle object -> query transform
2015-10-09 14:36:46 -04:00
k8s-merge-robot
2f90f660c1
Merge pull request #11368 from hurf/ctl_convert
...
Auto commit by PR queue bot
2015-10-09 08:57:30 -07:00
k8s-merge-robot
0fb7c80edf
Merge pull request #14888 from JanetKuo/kubectl-get-list
...
Auto commit by PR queue bot
2015-10-09 00:03:01 -07:00
hurf
e1b88c6942
Integrate convertion tool to kubectl
...
Added 'convert' subcommand to kubectl to convert config files
between different API versions.
2015-10-09 10:15:30 +08:00
wulonghui
cbd10dbf36
Update rollback process
2015-10-08 10:49:09 +08:00
jackgr
ef3f64612e
Add calls to set annotation for kubectl apply
2015-10-07 17:15:56 -07:00
jackgr
703a3e19aa
Add the kubectl apply command.
2015-10-07 17:14:51 -07:00
Paul Morie
227dd82119
Add PodSecurityContext and backward compatibility tests
2015-10-05 21:05:27 -04:00
Alex Robinson
48c6b7ea96
Merge pull request #14728 from kargakis/truncate-inherited-service-names
...
expose: Truncate service names
2015-10-05 16:29:14 -07:00
Janet Kuo
1f35cf2e5b
Fix get with List
2015-10-05 11:44:57 -07:00
deads2k
05e84fafbe
move HasConflicts to shareable location
2015-10-05 14:37:57 -04:00
kargakis
989806d9ec
expose: Truncate service names
...
In case the generated service inherits the exposed object's name (the user didn't specify
a name via --name), truncate it up to the maximum length for a valid service name
2015-10-05 10:39:42 +02:00
k8s-merge-robot
7f9c18d646
Merge pull request #14819 from mesosphere/sttts-add-kubectl-bind-address
...
Auto commit by PR queue bot
2015-10-02 08:05:57 -07:00
k8s-merge-robot
2516086771
Merge pull request #14764 from timstclair/kubectl
...
Auto commit by PR queue bot
2015-10-01 17:10:10 -07:00
k8s-merge-robot
d50810a1db
Merge pull request #14831 from deads2k/allow-yaml-patch
...
Auto commit by PR queue bot
2015-10-01 08:48:45 -07:00
Wojciech Tyczynski
b7dbbdbc09
Merge pull request #14890 from timothysc/user_error
...
Fix for unit test failures on user
2015-10-01 09:36:44 +02:00
k8s-merge-robot
888f08377e
Merge pull request #14671 from ironcladlou/rolling-rollback-fix
...
Auto commit by PR queue bot
2015-09-30 20:56:05 -07:00
Timothy St. Clair
7955d428de
Fix for unit test failures 'unexpected error: user: Current not implemented on linux/amd64'
...
running on Fedora 20 'go version go1.4.2 linux/amd64'
2015-09-30 20:33:34 -05:00
Brendan Burns
44a16834d8
Merge pull request #14087 from brendandburns/kubectl
...
Move the default schema cache to the home directory
2015-09-30 11:30:32 -07:00
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
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
Brendan Burns
afea127a3e
Move the default schema cache to the home directory
2015-09-28 16:26:48 -07: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
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
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
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
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
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
Chao Xu
9bef5ff99d
register experimental apis as apis/experimental/..
...
mark --api-version as deprecated
2015-09-15 11:25:01 -07: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
Brendan Burns
9ba13ff361
Address comments
2015-09-11 13:55:16 -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Janet Kuo
18e87724c5
Deprecated kubectl flag "create-external-load-balancer"
2015-08-28 00:54:33 -07: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
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
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
Janet Kuo
5823ef771b
Make --validate default on and shows how to turn if off
2015-08-25 03:18:32 -07:00
Nikhil Jindal
5c0725a26a
Merge pull request #13089 from JanetKuo/kubectl-exec-bash-completion
...
Enable kubectl exec pod name bash completion
2015-08-24 14:06:35 -07:00
Nikhil Jindal
e690f3b3e8
Merge pull request #12900 from feihujiang/deleteMultipleResourcesWithTheSameName
...
Allow delete multiple resources with the same name
2015-08-24 10:40:41 -07:00
Nikhil Jindal
4ffb59fa79
Merge pull request #12813 from JanetKuo/kubectl-deprecate-t
...
Deprecated -t for --template to make it --tty
2015-08-24 10:37:55 -07:00
Janet Kuo
46eb607677
Enable kubectl exec pod name bash completion
2015-08-24 05:25:48 -07:00
Marcin Wielgus
9ad982ef77
Merge pull request #12844 from hurf/label_out
...
Simplify output of 'kubectl label' command
2015-08-24 14:00:56 +02:00
Janet Kuo
0bcb3147f6
Deprecated -t for --template to make it --tty
2015-08-24 02:16:01 -07:00
Marcin Wielgus
66309325f8
Merge pull request #13015 from feihujiang/kubectlAnnotationAcceptFileNameParam
...
Kubectl annotate command accepts a filename param
2015-08-24 10:57:30 +02:00
feihujiang
943c57ff4e
Allow delete multiple resources with the same name
2015-08-24 15:14:01 +08:00
hurf
ddf090d824
Change default output of 'label' command
...
Using simple, human understandable output instead of the form of
'kubectl get' command.
2015-08-23 18:27:48 +08:00
Zach Loafman
5ca0ca3d3f
Merge pull request #9787 from feihujiang/acceptErrorLikeGoPath
...
Make a change to visitor to allow it to accept an error, like Go's pa…
2015-08-21 15:17:58 -07:00
feihujiang
7291bde309
Kubectl annotate command accepts a filename param
2015-08-21 15:08:29 +08:00
k8s-merge-robot
f3c566fa46
Merge pull request #13011 from smarterclayton/flexible_run
...
Auto commit by PR queue bot
2015-08-20 22:21:38 -07:00
k8s-merge-robot
44c76d5319
Merge pull request #12957 from smarterclayton/handle_terminating_pods
...
Auto commit by PR queue bot
2015-08-20 21:47:00 -07:00
Clayton Coleman
32aebc42cc
Run should be flexible to type
...
OpenShift would like to use its own types as generator arguments
2015-08-20 22:35:28 -04:00
Abhishek Shah
b6b8e99393
External IPs support.
2015-08-20 16:10:01 -07:00
Eric Paris
7162baa4b8
Drop some of our flag stuff which isn't needed
2015-08-20 15:01:36 -07:00
Eric Paris
bcf912667b
Use pflag functions instead of ours.
2015-08-20 15:00:55 -07:00
Clayton Coleman
02dbb95447
Add TerminationGracePeriodSeconds to API
...
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00
feihujiang
29dc7f6ec2
Make a change to visitor to allow it to accept an error, like Go's path walker
2015-08-20 10:57:28 +08:00
Dai Zuozhuo
85972c44a4
jsonpath user guide docs
2015-08-20 09:11:04 +08:00
Dai Zuozhuo
b61a905b19
add jsonpath to kubectl
2015-08-20 08:57:24 +08:00
Saad Ali
14eadcccac
Merge pull request #12521 from feihujiang/kubectlScaleAcceptFileNameParam
...
Kubectl scale command accepts a filename param
2015-08-19 15:00:26 -07:00
Saad Ali
d42864b0ad
Merge pull request #12112 from JanetKuo/update-kubectl-get-pods-running
...
Hide terminated pods in 'kubectl' Printer by default
2015-08-19 12:51:18 -07:00
Piotr Szczesniak
86e0c386d7
Merge pull request #12875 from uluyol/fix-exp-client
...
Create an experimental client cache.
2015-08-19 15:02:07 +02:00
Robert Bailey
08e6a43c1d
Revert "Merge pull request #9165 from smarterclayton/graceful"
...
This reverts commit 4f856b595d
, reversing
changes made to d78525a83b
.
Conflicts:
pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Muhammed Uluyol
7c58f94edc
Create an experimental client cache.
...
Previously, we would initialize the experimental client at factory creation
time. This is problematic because the clientConfig loader has values populated
from the command-line flag parsing, and these are not populated until after
Factory creation. Introduce an ExperimentalClientCache to create (and reuse)
ExperimentalClients.
2015-08-18 14:25:38 -07:00
Janet Kuo
44a7a52a94
Hide failed/succeeded pods in 'kubectl get pods' by default
2015-08-18 13:47:19 -07:00
Robert Bailey
5000252e46
Merge pull request #12669 from deads2k/tolerate-missing-template-flag
...
tolerate output without template file
2015-08-18 11:49:53 -07:00
Robert Bailey
6e94e44d9c
Merge pull request #12860 from nak3/exec-help
...
Modify kubectl exec help to set -c CONTAINER as optional
2015-08-18 11:48:26 -07:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Kenjiro Nakayama
c50d7dd1d5
Modify kubectl exec help to set -c CONTAINER as optional
2015-08-18 23:14:24 +09:00
deads2k
969d526ca5
tolerate output without template file
2015-08-18 08:58:04 -04:00
Clayton Coleman
b842a7dd15
Revert "Revert "Gracefully delete pods from the Kubelet""
...
This reverts commit 98115facfd
.
2015-08-18 08:57:02 -04:00
Robert Bailey
17c005bb6a
Merge pull request #12730 from eparis/bash-completions-delete-label
...
bashcompletions: suggest resources to delete in kubectl delete
2015-08-17 13:52:53 -07:00
Brendan Burns
eed655a6e6
Merge pull request #12511 from feihujiang/kubectlGetAcceptFileNameParam
...
Kubectl get command accepts a filename param
2015-08-14 14:21:56 -07:00
Eric Paris
9b2ac7538d
bashcompletions: suggest resources to delete in kubectl delete
...
Before this patch if you type `kubectl delete [tab][tab]` you would get
nothing. `kubectl delete pod [tab][tab]` would show the list of pods.
This patch causes `kubectl delete [tab][tab]` to show the list of
resources like pod, service, podtemplate, serviceaccount, etc
2015-08-14 10:35:26 -04:00
Jerzy Szczepkowski
f29d52114b
Merge pull request #12326 from feihujiang/kubectlLabelAcceptFileNameParam
...
Kubectl label command accepts a filename param
2015-08-14 12:38:37 +02:00
Brendan Burns
22a2a76ab8
Merge pull request #12571 from brendandburns/kubectl2
...
Auto commit by PR queue bot
2015-08-13 13:56:14 -07:00
Brendan Burns
586931fe16
Add optional arguments to kubectl run ...
2015-08-13 09:41:51 -07:00
feihujiang
1e10a7cc59
Kubectl scale command accepts a filename param
2015-08-13 14:26:25 +08:00
feihujiang
18a1400928
Kubectl get command accepts a filename param
2015-08-13 14:12:29 +08:00
feihujiang
0110f3176b
Kubectl patch command accepts a filename param
2015-08-13 11:13:31 +08:00
feihujiang
4b9afc516e
Kubectl label command accepts a filename param
2015-08-13 10:21:38 +08:00
CJ Cullen
a6148e79c3
Merge pull request #12610 from mikedanese/rewrite-kubectl
...
rewrite kubectl command references to GoogleCloudPlatform
2015-08-12 17:17:23 -07:00
Brendan Burns
99b8df1812
Add field based sorting to the kubectl command line.
2015-08-12 16:51:36 -07:00
Mike Danese
fe0e758d4d
rewrite kubectl command references to GoogleCloudPlatform
2015-08-12 14:52:13 -07:00
CJ Cullen
59da05efdf
Merge pull request #12405 from uluyol/kubectlexp
...
Add experimental api support to kubectl
2015-08-12 14:24:56 -07:00
Peeyush Agarwal
05e069d038
Use bash comments in kubectl examples
...
Comments in kubectl examples should use bash comments, not Go comments.
So, replaces // by # for example strings.
2015-08-12 19:56:23 +00:00
feihujiang
c0b2098844
Kubectl expose command accepts a filename param
2015-08-12 16:16:37 +08:00
hurf
1d1f1fd97c
Synchronize help message between describe and get
...
small nits, change 'resources' to 'resource types'
2015-08-12 15:27:11 +08:00
Muhammed Uluyol
fab367230f
Add experimental API support to kubectl
2015-08-11 16:49:55 -07:00
Muhammed Uluyol
01807c1fac
Make ClientCache public
2015-08-11 16:47:57 -07:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Filip Grzadkowski
9dd3cac82e
Merge pull request #12423 from brendandburns/service
...
Make services print on a single line.
2015-08-11 10:29:23 +02:00
Alex Robinson
5836d455b8
Merge pull request #12239 from eparis/bash-completions-rolling-update
...
Bash completion annotations for rollingupdates
2015-08-10 15:02:48 -07:00
Alex Robinson
9bda3c5998
Merge pull request #11138 from feihujiang/portForwardWithoutP
...
kubectl port-forward accept a pod without -p
2015-08-10 13:29:14 -07:00
Alex Robinson
933c855fba
Merge pull request #12354 from mjibson/replace-cascade-fix
...
Fix flag docs for replace cascade
2015-08-10 11:06:41 -07:00
Alex Robinson
462fed62b7
Merge pull request #12189 from feihujiang/describeKindNoArguments
...
kubectl describe <kind> work with no arguments
2015-08-10 11:05:34 -07:00
Brendan Burns
79fb674679
Fix the service printer to be a single line per service
2015-08-10 10:57:45 -07:00
Matt Jibson
2c0f32e9b8
Fix flag docs for replace cascade
2015-08-10 12:03:43 -04:00
Marek Grabowski
9ddcfb7d54
Merge pull request #12421 from jlowdermilk/replace-help-text
...
Clarify help text of kubectl replace
2015-08-10 16:34:17 +02:00
Marek Grabowski
5f9cefc1d8
Merge pull request #12441 from vlajos/typofixes-vlajos-20150807
...
typofix - https://github.com/vlajos/misspell_fixer
2015-08-10 16:33:52 +02:00
Eric Paris
9de64328a5
Bash completion annotations for rollingupdates
2015-08-10 10:26:18 -04:00
Marek Grabowski
e27787c9d3
Merge pull request #12292 from brendandburns/stdin3
...
Add support for `--restart`
2015-08-10 14:54:54 +02:00
Marek Grabowski
41aa56a6c6
Merge pull request #12448 from smarterclayton/extra_newlines
...
Extra newlines in error output
2015-08-10 09:55:25 +02:00
feihujiang
73b694e6c1
kubectl describe <kind> work with no arguments
...
Add describe_resource_assert to test describe <kind> with no object arg
2015-08-10 14:08:38 +08:00
Jeff Lowdermilk
1956484816
Clarify help text of kubectl replace
...
Help the next poor soul avoid the confusion I had when
```
$ kubectl create -f pod.yaml
$ kubectl replace -f pod.yaml
```
doesn't work.
2015-08-09 12:30:03 -07:00
Clayton Coleman
c46165de19
Extra newlines in error output
...
StandardErrorMessage does not have a newline by default, other
error messages should not end with a newline.
2015-08-09 11:41:52 -04:00
Veres Lajos
9f77e49109
typofix - https://github.com/vlajos/misspell_fixer
2015-08-08 22:31:48 +01:00
Satnam Singh
b071857c0f
Merge pull request #10816 from feihujiang/kubectlDescribeAcceptFileNameParam
...
Kubectl describe command accepts a filename param
2015-08-07 15:23:57 -07:00
Brendan Burns
e42d6aa255
Add --restart support to kubectl run
2015-08-07 13:20:09 -07:00
hurf
e450c3b771
Add age column for all resources when using kubect get
...
Dispaly human readable creation time like age column do in `kubectl
get po` for all resources.
2015-08-07 21:18:30 +08:00
feihujiang
90f4c79bb9
kubectl port-forward accept a pod without -p
2015-08-07 17:21:59 +08:00
feihjiang
2ca200f087
Kubectl describe command accepts a filename param
2015-08-07 16:28:51 +08:00
Brendan Burns
9ac50b4980
Add interactive run that combines run and attach.
2015-08-06 20:20:14 -07:00
Eric Paris
7cbb52ce04
Use the pflag StringSlice instead of implementing it ourselves
...
Saves code and makes our code easier to read because we just use normal
[]string instead of custom type.
2015-08-06 19:16:13 -04:00
Stef Walter
f6da3fdbe1
kubectl: Add proxy --unix-socket=/file/path option
...
Proxies on a TCP port are accessible outside the current security
context (eg: uid). Add support for having the proxy listen on a
unix socket, which has permissions applied to it.
We make sure the socket starts its life only accessible by the
current user using Umask.
This is useful for applications like Cockpit and other tools which
want the help of kubectl to handle authentication, configuration and
transport security, but also want to not make that accessible to
all users on a multi-user system.
2015-08-06 11:56:47 +02:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
hurf
33fb6170f9
Use TYPE instead of RESOURCE in help string
...
For commands in kubectl, use TYPE in help string.
2015-08-05 16:34:48 +08:00
Alex Mohr
0e8020f9bb
Merge pull request #11779 from JanetKuo/add-kubectl-annotation
...
Auto commit by PR queue bot
2015-08-04 18:28:12 -07:00
Chao Xu
17cd3cf392
direct people to api-reference/definitions.html to find out if a field is mutable through kubectl replace/patch
2015-08-03 18:18:00 -07:00
Alex Mohr
7ac6c50b9d
Merge pull request #12094 from brendandburns/kubectl
...
Auto commit by PR queue bot
2015-08-03 17:09:06 -07:00
Alex Mohr
d8b01b0a19
Merge pull request #12114 from caesarxuchao/update-pod-error-message
...
improve the error message of update/patch pod
2015-08-03 15:15:04 -07:00
Janet Kuo
7e63213478
Implement kubectl annotation update command. Refactor kubectl annotate to decouple command framework from business logic.
2015-08-03 14:35:56 -07:00
feihujiang
fa68de4fcf
Correct kubectl delete's wrong synopsis
2015-08-03 13:58:23 +08:00
Chao Xu
18d32751fd
improve the error message of update pod
2015-08-02 13:41:53 -07:00
Mike Danese
cf4cb1a6a3
Merge pull request #10474 from kargakis/scale-multiple-controllers
...
Enable scaling multiple controllers
2015-07-31 14:51:43 -07:00
Mike Danese
f3c4b7f7ac
Merge pull request #12016 from hurf/shortcut
...
Better help message for get and describe
2015-07-31 13:53:02 -07:00
Mike Danese
a23ee556ad
Merge pull request #11999 from brendandburns/attach2
...
Add support for attach to kubectl
2015-07-31 12:51:08 -07:00
Brendan Burns
c9bc1456ff
Add session affinity flags to kubectl expose
2015-07-31 10:34:52 -07:00
Mike Danese
e58ea24d0b
Merge pull request #12001 from uluyol/os-exp-hack
...
Add (stopgap) support for an experimental API prefix.
2015-07-31 10:15:06 -07:00
kargakis
0e796ca09a
Enable scaling multiple controllers
2015-07-31 10:24:59 +02:00
hurf
029ed15be5
Better help message for get and describe
...
Add tips for shortcut ns and ep.
2015-07-31 15:15:51 +08:00
feihujiang
fc31543460
Output the same error when using kubectl describe for a nonexisting resource
2015-07-31 09:56:02 +08:00
Muhammed Uluyol
58a875ac2c
Add (stopgap) support for an experimental API prefix.
2015-07-30 18:14:29 -07:00
Brendan Burns
97cb1cd071
Add support for attach to kubectl
2015-07-30 12:56:18 -07:00
deads2k
c5ef83b29b
relativize paths in kubeconfig files
2015-07-30 14:57:38 -04:00
deads2k
55f574c267
switch kubeconfig types to internal map[string]*struct
2015-07-30 14:57:38 -04:00
Mike Danese
82227c4fbd
Merge pull request #11973 from hurf/deprecate_stop
...
Deprecate kubectl stop command
2015-07-29 15:47:59 -07:00
Mike Danese
60ac834563
Merge pull request #10652 from JanetKuo/kubectl-o-name
...
Add '-o name' to mutations
2015-07-29 09:46:10 -07:00
hurf
35cac3c4e7
Deprecate kubectl stop command
...
Added deprecation warning for stop.
2015-07-29 17:19:18 +08:00
Janet Kuo
0e42d0699a
Add '-o name' to mutations
2015-07-27 14:06:53 -07:00
Jeff Lowdermilk
f71a662dc6
Make kubectl proxy
support picking a random port
2015-07-27 09:56:33 -07:00
Mike Danese
c0acfbcd4b
Merge pull request #11421 from nikhiljindal/exposeServcPort
...
Updating kubectl expose to extract ports from the service being cloned
2015-07-24 17:16:31 -07:00
nikhiljindal
242910e57c
kubectl expose should extract ports from service
2015-07-24 15:17:48 -07:00
Clayton Coleman
0b5410f30f
Exec should be easier to reuse as a command
...
We have a few use cases where we want to have shortcut commands
for common behavior. In these cases, we want to default commands
with a simpler syntax, so being able to reuse Exec from code but
not share the same arguments is useful.
In this case, we're introducing 'rsh' which tries to run exec -itp --
bash.
2015-07-24 18:14:28 -04:00
Mike Danese
52282b1a36
Merge pull request #11300 from mwielgus/kubectl_replace_tempfile
...
Dump stdin to a temporary file in kubectl replace --force
2015-07-24 11:23:25 -07:00
Mike Danese
15fcb84e0d
Merge pull request #10743 from hurf/get_help_fix
...
Fix hits in help strings of kubectl get command
2015-07-24 11:09:48 -07:00
Mike Danese
ae1c8e55ef
Merge pull request #11737 from thockin/cleanup-remove-v1beta3
...
Remove v1beta3
2015-07-24 10:25:56 -07:00
Mike Danese
823e5d45c3
Merge pull request #10841 from liggitt/delete_all
...
Default --ignore-not-found to true for delete --all
2015-07-24 09:26:35 -07:00
Dan Mace
d044208b38
Rolling updater enhancements
...
Add an UpdateAcceptor interface to the rolling updater which supports
injecting code to validate the first replica during scale-up. If the
replica is not accepted, the deployment fails. This facilitates canary
checking so that many broken replicas aren't rolled out during an update.
Make the rolling update scale amount configurable as a percent of the replica
count; a negative value changes the scale direction to down/up to support
in-place deployments.
2015-07-24 08:53:50 -04:00
Jordan Liggitt
85fd52126d
Default --ignore-not-found to true for delete --all
2015-07-23 18:08:15 -07:00
Tim Hockin
1c3233a1d4
Remove v1beta3
2015-07-23 17:21:27 -07:00
Marcin Wielgus
866bd7b4e5
Dump stdin to a temporary file in kubectl replace --force
2015-07-23 15:22:23 +02:00
nikhiljindal
c849730116
Fixing the error message
2015-07-16 23:33:16 -07:00
Brian Grant
5540917094
Merge pull request #11366 from davidopp/doc1
...
Move docs/services-firewalls.md into docs/user-guide/ and make small
2015-07-16 22:48:13 -07:00
Brian Grant
cb58e8e43b
Merge pull request #11350 from thockin/munge-check-kubectl-dash-f
...
Add munger to verify kubectl -f targets
2015-07-16 22:46:37 -07:00
nikhiljindal
496f30a92f
Introduce a new service generator that leaves service port unnamed
2015-07-16 20:40:40 -07:00
Tim Hockin
f7512d007b
Add munger to verify kubectl -f targets, fix docs
2015-07-16 15:39:45 -07:00
David Oppenheimer
fd2c3695e3
Move docs/services-firewalls.md into docs/user-guide/ and make small
...
wording changes to api.md
2015-07-16 13:21:14 -07:00
Eric Tune
2e848ed707
Merge pull request #10585 from caesarxuchao/fix-alias
...
Add boundary check before accessing os.Args[1]
2015-07-15 15:00:09 -07:00
Tim Hockin
fe89298c09
Fix load-balancer firewall messages
2015-07-14 21:07:46 -07:00
hurf
4f9c486308
Fix hits in help strings of kubectl get command
...
Removed duplicated 'nodes (no)', added 'secret' for resource type.
Use actual long resource name to avoid confusion.
2015-07-15 09:43:51 +08:00
hurf
6dd8a1dfa4
Add a better help message for kubectl describe
...
When resource type isn't given in the command, print the possible
resource types. Also added the resource type description in help
strings.
2015-07-14 16:22:42 +08:00
Tim Hockin
2d8c9d6c5e
Merge pull request #10913 from feihujiang/fixSmallNitsForPortForwardCommand
...
Fix small nits for kubectl port-forward command
2015-07-13 12:55:34 -07:00
Brendan Burns
7620041ed4
Fix a small typo.
2015-07-13 09:38:40 -07:00
Zach Loafman
ca21fca74a
Fix TestRunExposeService
...
No longer emits "you will also need to explicitly open a firewall"
after #10974 .
Fixes #11105
2015-07-13 06:48:58 -07:00
Brendan Burns
a8f02e5472
Automatically open a firewall when creating a GCE load balancer.
2015-07-10 14:35:29 -07:00
Chao Xu
48679d21d2
add boundary check before access os.Args
2015-07-09 16:15:42 -07:00
Joe Beda
0426ab3290
Update list of resources for 'kubectl get' help output.
2015-07-09 08:59:32 -07:00
Joe Beda
c15953662e
Fix up alignment of columns w/ namespaces.
...
Fixes #10842
All issues for types that use "extra lines" for extended information. Two issues fixed: (1) When namespaces are listed an extra column isn't inserted for extra lines and (2) trailing tabs aren't inserted when label columns are specified.
This code should probably move to a more explicit model of putting data into "cells".
The test for this hits https://github.com/golang/go/issues/6416 and so I introduced a "LineDelimiter" writer filter to make white space more visible.
2015-07-09 08:59:32 -07:00
Janet Kuo
524e70d501
Make "age" of pod print example static
2015-07-08 11:26:13 -07:00
feihujiang
eca0ae08c5
Fix small nits for kubectl port-forward command
2015-07-08 15:53:53 +08:00
Jeff Lowdermilk
229cbd472d
Update kubectl describe help to document prefix matching behavior
2015-07-07 16:57:37 -07:00
Brendan Burns
988aa6fdf6
Move things into a 'kube-system' namespace.
2015-07-06 15:08:23 -07:00
Yu-Ju Hong
4d86127098
Merge pull request #10644 from erictune/noslash
...
NAMESPACE in own column: kubectl --all-namespaces
2015-07-06 11:40:02 -07:00
Yu-Ju Hong
04018f9ca2
Merge pull request #10619 from andronat/rename_REASON
...
Rename REASON column to STATUS for kubectl get
2015-07-06 11:39:16 -07:00
Yu-Ju Hong
d5ae8192fc
Merge pull request #10654 from nikhiljindal/getToPostClient
...
Updating kubectl to use POST instead of GET for port-forward and exec
2015-07-06 10:54:27 -07:00
Eric Tune
88fa471d06
NAMESPACE in own column: kubectl --all-namespaces
2015-07-02 22:23:52 -07:00
Nikhil Jindal
91fc591e5e
Merge pull request #10598 from feihujiang/nameInsteadOfID
...
Using NAME to replace ID in help string
2015-07-02 15:26:24 -07:00
Nikhil Jindal
09a57fadfb
Merge pull request #10532 from feihujiang/outputErrorWhenUsingDescribeForNonexist
...
Output error when using kubectl describe for a nonexisting resource
2015-07-02 11:07:19 -07:00
Zach Loafman
5dbe90f0ba
Merge pull request #10493 from krousey/namespace
...
Unify command line namespace resolution
2015-07-01 19:33:44 -07:00
nikhiljindal
b38d8b18a5
Updating kubectl to use POST instead of GET
2015-07-01 17:07:24 -07:00
nikhiljindal
274792d7bb
Stop exposing v1beta3 by default
2015-07-01 14:38:02 -07:00
Kris Rousey
ffa764d60b
Unify command line namespace resolution
...
This change allows the namespace in kubeconfig to be overridden by
specifying the namespace in the spec file. If namespace is explicitly
provided in the command line flags and the spec file has a different
namespace, this will cause an error.
2015-07-01 12:59:17 -07:00
Zach Loafman
9e23ad7102
Merge pull request #10510 from mikedanese/kubectl-context-err
...
make use-context return error when context does not exist
2015-07-01 12:01:24 -07:00
Anastasis Andronidis
7480077f2b
Rename REASON column to STATUS for kubectl get
...
Fixes #10560
2015-07-01 17:38:27 +02:00
Zach Loafman
b42cac69cb
Merge pull request #10519 from JanetKuo/kubectl-c
...
Enable -c for kubectl logs container arg
2015-07-01 08:36:38 -07:00
feihujiang
70036069ee
Using NAME to replace ID in help string
2015-07-01 15:35:08 +08:00
Mike Danese
aea3403734
make use-context return error when context does not exist
2015-06-30 19:08:55 -07:00
Janet Kuo
682734bcc7
Implement 'kubectl get ... -o wide'
2015-06-30 14:06:47 -07:00
Janet Kuo
62b488359f
Enable -c for kubectl logs container arg
2015-06-30 13:25:54 -07:00
feihujiang
55db7ec369
Output error when using kubectl describe for a nonexisting resource
2015-06-30 14:12:58 +08:00
Chao Xu
7f89a29aad
add "kubectl patch". It will replace "kubectl udpate --patch" in the future
2015-06-29 16:36:45 -07:00
Alex Robinson
764d34d363
Merge pull request #10468 from caesarxuchao/add-cmd-replace
...
Add command "kubectl replace"
2015-06-29 16:06:33 -07:00
Alex Robinson
68bbf6c129
Merge pull request #10447 from feihujiang/helpfulErrorForUnsupportedVersion
...
Provide more helpful error when using unsupported api version
2015-06-29 15:00:58 -07:00
Alex Robinson
10a0dc9aae
Merge pull request #9928 from jlowdermilk/version-negotiate-tests
...
Unittest for #9762
2015-06-29 13:34:13 -07:00
Chao Xu
9b3d42c090
Add command "kubectl replace". "kubectl update" is still supported as an alias.
...
"kubectl replace --patch" is NOT supported. It's moved to "kubectl patch" as a separate command in another commit.
2015-06-29 12:14:24 -07:00
feihujiang
878a72228f
Provide more helpful error when using unsupported api version
2015-06-29 15:32:54 +08:00
Robert Bailey
f9db614f95
Merge pull request #10234 from mikedanese/rolling-update-weird
...
Detect if replicas have been defaulted in rolling-update and use old replica count
2015-06-26 12:54:35 -07:00
Robert Bailey
508f7f1697
Merge pull request #10358 from caesarxuchao/add-force-update
...
Add --force to `kubectl update`
2015-06-26 10:49:04 -07:00
Chao Xu
ef5de91fd7
add "--force" flag to "kubectl update";
...
update relevant tests
2015-06-25 17:16:20 -07:00
Maxwell Forbes
03121c2536
Merge pull request #10252 from akramer/patch-1
...
Fixing spacing in documentation comments
2015-06-25 15:09:41 -07:00
Mike Danese
0c8f71aa0b
make rolling update check if the replication controller has been defaulted
2015-06-25 12:29:21 -07:00
Maxwell Forbes
d90895adfd
Merge pull request #10221 from feihujiang/addSourceForErrorFromServerMessage
...
Add source in “error from server” message when using kubectl
2015-06-25 10:56:46 -07:00
feihujiang
b41b53122a
Add source in “error from server” message when using kubectl
2015-06-25 14:20:09 +08:00
akramer
5f44175dc4
Fixing spacing in documentation comments
...
There was some ugly spacing in the 'kubectl exec' documentation comments, I've fixed it and wrapped it to 80 chars.
2015-06-24 13:50:30 -07:00
Maxwell Forbes
060cb43785
Merge pull request #10134 from brendandburns/gongysh2004-nodeport
...
Fix the warning when you create an externalized service
2015-06-24 13:21:27 -07:00
Jeff Lowdermilk
838ddba1d9
Merge pull request #10188 from fabianofranz/fix_kubectl_set_credentials_example
...
Fixes wrong "kubectl config set-credentials" examples
2015-06-23 17:11:40 -07:00
Jeff Lowdermilk
5e25827919
Merge pull request #10204 from caesarxuchao/pr/9754/head
...
Continue on #9754 , Improvements to the guestbook README, switch to .yaml files
2015-06-23 09:44:06 -07:00
Chao Xu
59b654c996
fix tests for 22f1b07858
2015-06-22 17:10:09 -07:00
fabianofranz
fae27669aa
Fixes kubectl config set-credentials examples
2015-06-22 17:34:04 -03:00
Anastasis Andronidis
b06ef70057
Print resource labels as columns
2015-06-22 00:44:51 +02:00
Brendan Burns
f0ff1927f1
Fixup port printing.
2015-06-19 15:10:22 -07:00
gong yong sheng
3a598eba0e
Use NodePort instead Port, firewalls install firewall.
2015-06-19 14:48:43 -07:00
Eric Paris
f40fce4598
kubectl log->logs in bash completions
...
The kubectl log command switched to logs. But the bash completions code
was still looking for a singular
2015-06-19 16:00:58 -04:00
Chao Xu
5d89dda9a8
respect --api-version in the output of "kubectl cluster-info"
2015-06-18 16:51:10 -07:00
Satnam Singh
424d09fb97
Merge pull request #9907 from RichieEscarez/9404_controller
...
Changed "controller" to "replication controller"
2015-06-18 14:33:49 -07:00
Mike Danese
3de11e2fa8
reenable patch serverside using strategic-merge-patch
2015-06-18 12:06:46 -07:00
Satnam Singh
b86ed2356c
Merge pull request #10028 from andronat/small_wrong_printing_in_tests
...
Changed printing in a test file
2015-06-18 11:04:07 -07:00
Satnam Singh
3505fb48a3
Merge pull request #9803 from satnam6502/execessive
...
Improve error output of kubectl update
2015-06-18 10:29:27 -07:00
Anastasis Andronidis
64d984ae2e
changed printing in a test file
2015-06-18 18:34:07 +02:00
Satnam Singh
d69e0b5eb6
Improve error output of kubectl update
2015-06-17 15:55:03 -07:00
RichieEscarez
eb44b3c830
Qualified all references to "controller" so that references to "replication controller" are clear. fixes #9404
...
Also ran hacks/run-gendocs.sh
2015-06-17 08:48:59 -07:00
Piotr Szczesniak
2b19c002cb
Migrated kubectl cluster-info to v1.
...
Addresses #7018
Also fixed the case when kubernetes.io/name label is not defined
(another fix for #9875 )
2015-06-17 15:21:05 +02:00
Jeff Lowdermilk
57a6355807
Unittest for #9762
...
Started looking at refactoring of the kubectl Factory, which
caused me to experience all 5 stages of grief. There are some options
for improving, but it probably warrants a proposal with some discussion/
feedback. In the meantime this tests `NegotiateVersion` in isolation.
2015-06-16 20:04:51 -07:00
Brendan Burns
1dd18673ec
Merge pull request #9762 from jlowdermilk/negotiate-api-version
...
kubectl negotiates api version to use based on client,server supported versions
2015-06-16 11:18:08 -07:00
Jeff Lowdermilk
f31191224b
kubectl negotiates apiversion to use based on client,server supported
2015-06-16 10:12:39 -07:00
Fabio Yeon
72082624e5
Merge pull request #9522 from brendandburns/friction
...
Add a better message if the user doesn't specify a resource type.
2015-06-15 19:53:54 -07:00
Fabio Yeon
0453f9ea9d
Merge pull request #9705 from hurf/label4describe
...
Add label support for kubectl describe
2015-06-15 19:33:09 -07:00
Abhi Shah
86b6150fb0
Merge pull request #9287 from brendandburns/kubectl
...
Add some XSRF protection to kubectl proxy.
2015-06-12 13:51:08 -07:00
hurf
fa0efe3927
Add label support for kubectl describe
...
Add -l option to kubectl describe command, allow it return
multiple results filtered by label selector.
2015-06-12 15:08:28 +08:00
Brendan Burns
4aeee94603
Add some XSRF protection to kubectl proxy.
2015-06-10 20:55:33 -07:00
Anastasis Andronidis
62c766d58d
Add tests
2015-06-10 16:09:43 +02:00
Anastasis Andronidis
b7c485ee9a
make CheckErr testable
2015-06-10 16:09:42 +02:00
Brendan Burns
b259c873b7
Add a better message if the user doesn't specify a resource type.
2015-06-09 15:04:56 -07:00
Mike Danese
401d3c43fd
remove removed flags from usage examples
2015-06-09 12:56:58 -07:00
krousey
ff474e5d7e
Merge pull request #9376 from feihujiang/createValidateCrash
...
kubetcl create --validate crashes when no apiVersion or kind is provided
2015-06-09 09:59:42 -07:00
feihujiang
37abe11f8a
kubetcl create --validate crashes when no apiVersion or kind is provided
2015-06-09 10:38:43 +08:00
krousey
49a6b629f8
Merge pull request #9171 from jdef/parse_prefix_from_server
...
parse apiserver prefix from client config host spec
2015-06-08 10:17:41 -07:00
Anastasis Andronidis
bf87f0ec68
Print multiple validation errors
2015-06-08 14:06:20 +02:00
Quinton Hoole
6ff203e9da
Merge pull request #9280 from caesarxuchao/make-v1-preferred
...
Make v1 the preferred api version
2015-06-05 15:23:14 -07:00
Kris Rousey
6e83eb2636
Updating docs/ to v1
2015-06-05 14:09:49 -07:00
Chao Xu
e6ffa5bf67
make the meaning of a test in get_test.go clearer
2015-06-05 13:59:30 -07:00
Brendan Burns
380790a8e2
Add messages to indicate that opening an external firewall may be necessary.
2015-06-04 22:31:52 -07:00
Quinton Hoole
fc80fd6860
Merge pull request #9233 from lavalamp/no-ro-nonbreaking
...
Allow kubectl proxy to proxy everything
2015-06-04 16:22:07 -07:00
Chao Xu
1605fc7347
fix unit tests
2015-06-04 15:09:47 -07:00
James DeFelice
4b8995f009
parse apiserver prefix from client config host spec, with unit test
2015-06-04 20:20:19 +00:00
Chao Xu
080da97e1c
fix a comment
2015-06-04 10:35:10 -07:00
Brian Grant
656fa7bea1
Merge pull request #9225 from caesarxuchao/add-v1-tests-general
...
Add v1 tests
2015-06-03 22:18:21 -07:00
Brian Grant
c92b4255b3
Merge pull request #9217 from caesarxuchao/add-v1-tests-to-pkg/kubectl/cmd
...
add v1 tests to kubectl/cmd/*
2015-06-03 22:16:44 -07:00
Brian Grant
e7788771d6
Merge pull request #9030 from brendandburns/kubectl
...
Add a custom timeout flag for stop/delete.
2015-06-03 21:14:50 -07:00
Daniel Smith
1bab36f772
Fix 'kubectl proxy' to allow the /metrics page to be proxied, without breaking the previous proxy behavior
2015-06-03 18:31:45 -07:00
Chao Xu
6b81c064ed
change v1beta3 to v1 in test cases
2015-06-03 17:50:22 -07:00
Chao Xu
8885025d25
add v1 tests to tests in kubectl/cmd/*
2015-06-03 13:57:54 -07:00
Daniel Smith
67f53d2eff
Make kubectl work inside a container in k8s
2015-06-03 12:48:07 -07:00
Brendan Burns
ab0c9b8e1e
Add a custom timeout flag for stop/delete. Also try to be smarter about setting the timeout.
2015-06-03 11:21:30 -07:00
Brian Grant
785740a0f8
Merge pull request #9164 from brendandburns/fix
...
Fix a bug in kubectl exec handling.
2015-06-02 20:24:55 -07:00
Brendan Burns
911e3e9594
Fix a bug in kubectl exec handling.
2015-06-02 19:45:51 -07:00
Filip Grzadkowski
98115facfd
Revert "Gracefully delete pods from the Kubelet"
2015-06-02 23:40:05 +02:00
Brian Grant
6508c04f24
Merge pull request #9112 from kargakis/expose-nits
...
expose: Better error formatting and generic flag message
2015-06-02 13:10:52 -07:00
kargakis
0fba4820f5
expose: Better error formatting and generic flag message
...
Re error formatting:
$ osc expose svc frontend --port=5432 --generator='service/v2' --name=test
Before:
error: generator %!!(MISSING)q(<nil>) not found.
see 'osc expose -h' for help.
Now:
error: generator "services/v2" not found.
see 'openshift cli expose -h' for help.
2015-06-02 13:06:21 +02:00
Clayton Coleman
72ee028cab
Gracefully delete pods from the Kubelet
...
This commit wires together the graceful delete option for pods
on the Kubelet. When a pod is deleted on the API server, a
grace period is calculated that is based on the
Pod.Spec.TerminationGracePeriodInSeconds, the user's provided grace
period, or a default. The grace period can only shrink once set.
The value provided by the user (or the default) is set onto metadata
as DeletionGracePeriod.
When the Kubelet sees a pod with DeletionTimestamp set, it uses the
value of ObjectMeta.GracePeriodSeconds as the grace period
sent to Docker. When updating status, if the pod has DeletionTimestamp
set and all containers are terminated, the Kubelet will update the
status one last time and then invoke Delete(pod, grace: 0) to
clean up the pod immediately.
2015-06-01 19:23:59 -04:00
Eric Tune
1f526a5f89
Merge pull request #9027 from jlowdermilk/kubectl-deprecate-minion
...
Stop supporting the minion alias for nodes in kubectl
2015-06-01 10:26:51 -07:00
Kris
f4e2c738f6
Delete deprecated API versions
...
pkg/service:
There were a couple of references here just as a reminder to change the
behavior of findPort. As of v1beta3, TargetPort was always defaulted, so
we could remove findDefaultPort and related tests.
pkg/apiserver:
The tests were using versioned API codecs for some of their encoding
tests. Necessary API types had to be written and registered with the
fake versioned codecs.
pkg/kubectl:
Some tests were converted to current versions where it made sense.
2015-05-29 17:17:35 -07:00
Rohit Jnagal
99c9c54c05
Merge pull request #8983 from jlowdermilk/update-patch
...
Disable --patch for kubectl update
2015-05-29 16:30:16 -07:00
Jeff Lowdermilk
0c44be833d
Stop supporting the minion alias for nodes in kubectl
2015-05-29 15:40:47 -07:00
Rohit Jnagal
11268baa92
Merge pull request #8804 from kargakis/expose-default-name-param
...
expose: Use separate parameters for default and custom name
2015-05-29 11:21:09 -07:00
Jeff Lowdermilk
90a5b8c845
Disable --patch for kubectl update
2015-05-29 09:31:49 -07:00
Anastasis Andronidis
9cb0eaf01a
Fixed get's help message
2015-05-29 11:31:16 +02:00
Tim Hockin
d355154181
Merge pull request #8556 from kargakis/label-parsing-fix
...
label: Invalidate empty or invalid value labels
2015-05-28 15:54:14 -07:00
Tim Hockin
081ab3abac
Merge pull request #8853 from caesarxuchao/HostToNodeName
...
update PodSpec.Host to PodSpec.NodeName
2015-05-28 15:50:12 -07:00
Chao Xu
9c1153322e
update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go
2015-05-28 14:10:06 -07:00
Jeff Lowdermilk
75314718eb
update/fix kubectl proxy example in help string
2015-05-28 13:59:39 -07:00
kargakis
6c85040cef
expose: Use separate parameters for default and custom name
2015-05-28 11:03:16 +02:00
kargakis
fb63ab63bb
label: Invalidate empty or invalid value labels
2015-05-28 10:47:36 +02:00
Tim Hockin
eab1ceccd4
Merge pull request #8628 from jlowdermilk/delete-not-found
...
Delete fails on notfound errors.
2015-05-27 16:26:41 -07:00
Tim Hockin
ffabf17ed4
Merge pull request #8604 from brendandburns/kubectl
...
Make exec more consistent with the rest of the kubectl commands.
2015-05-27 16:23:59 -07:00
Jeff Lowdermilk
3cf4d9b2e6
Delete fails on notfound errors.
...
If deleting multiple resources, command will continue on error and
report not found resources at the end.
2015-05-27 16:02:54 -07:00
Brendan Burns
2ec4b409e1
Make exec more consistent with the rest of the kubectl commands.
2015-05-27 15:47:32 -07:00
Anastasis Andronidis
9e3a540940
rename resize to scale
2015-05-27 19:08:06 +02:00
Anastasis Andronidis
d4a47bdb9e
rename run-container to run in kubectl
2015-05-27 19:07:17 +02:00
Anastasis Andronidis
5eae2378d6
Warn for every _ flag user or cmd defined
...
also renames all global _ flags to -
2015-05-27 11:23:52 +02:00
Saad Ali
ee82d469c6
Merge pull request #8679 from jlowdermilk/rolling-update-stdin
...
Make rolling-update actually parse filenames from stdin
2015-05-26 18:55:12 -07:00
Cesar Wong
cb872e9243
Rename 'kubectl log' to 'kubectl logs'
2015-05-26 08:28:16 -04:00
Justin Santa Barbara
973c2e4819
Add Type to ServiceSpec: ClusterIP or LoadBalancer
2015-05-22 19:14:21 -04:00
Justin Santa Barbara
3884d5fc59
Add LoadBalancer status to ServiceStatus
...
This will replace publicIPs
2015-05-22 18:27:05 -04:00
Dawn Chen
cc6a31354e
Merge pull request #8169 from kargakis/expose-use-resource-builder
...
expose: Use resource builder
2015-05-22 12:29:24 -07:00
Dawn Chen
8a14296145
Merge pull request #7024 from kazegusuri/all_namespace
...
Allow kubectl to handle all namespace
2015-05-22 10:15:30 -07:00
Clayton Coleman
3f66321e13
Merge pull request #8618 from kargakis/resize-enable-slash-syntax
...
resize: Enable resource type/name syntax
2015-05-22 13:05:25 -04:00
Jeff Lowdermilk
e1936d57f8
Make rolling-update actually parse filenames from stdin
2015-05-22 09:44:00 -07:00
Masahiro Sano
8ce64ec69e
add --all-namespaces flag to request across all namespaces
2015-05-22 23:25:12 +09:00
Chao Xu
bda5e4376e
in docs, update "minions" to "nodes"
2015-05-21 09:59:40 -07:00
Dawn Chen
fdb44a9ad2
Merge pull request #8602 from caesarxuchao/rC-to-rc
...
in docs, update replicationController to replicationcontroller
2015-05-21 09:49:35 -07:00
Dawn Chen
49bf1ec0a1
Merge pull request #8573 from deads2k/fix-check-err
...
tolerate fatals without newlines
2015-05-21 09:34:58 -07:00
kargakis
6424a2bc63
resize: Enable resource type/name syntax
...
Also don't allow more than one objects in commands it makes sense
2015-05-21 17:39:01 +02:00
Chao Xu
5b8b5a0844
in docs, update replicationController to replicationcontroller
2015-05-20 17:31:15 -07:00
kargakis
30958f892d
expose: Use resource builder
...
Plus:
* Rename flag --service-name to --name
* Some refactoring
2015-05-20 23:55:07 +02:00
kargakis
99655b342f
Reduce reaper poll interval and wait while resizing
...
When reaping a replication controller that handles an arbitrary amount of replicas, missing an interval means that `kubectl stop|delete` have to wait 3 more seconds to finish which seems more expensive from a user pov than a GET per 100ms.
Also I think `kubectl resize` should wait for all replicas to spin up before exiting. Feels more safe to know that your replication controller status is up to date.
2015-05-20 20:49:29 +02:00
deads2k
cd817aebd8
tolerate fatals without newlines
2015-05-20 13:15:49 -04:00
Chao Xu
013130f150
update the docs for kubectl-run-container to v1beta3
2015-05-18 13:29:24 -07:00
Jeff Lowdermilk
46bd6f298a
Merge pull request #8237 from smarterclayton/continue_on_error
...
Make ContinueOnError actually work
2015-05-15 12:57:29 -07:00
Jeff Lowdermilk
a5bc6bdaf3
Merge pull request #8166 from kargakis/labels-for-object
...
expose: Re-use labels in case none was specified
2015-05-15 11:35:52 -07:00
Clayton Coleman
a47716e66d
Make ContinueOnError actually work
...
In resource.Builder ContinueOnError() should actually do so.
Reorganized util.CheckErr() to make it display bulk errors more
effectively and be more reusable. Clarified that CheckErr is not
specific to kubectl in Godoc. Changed the "Error: " prefix to
"error: " to more closely match Unix conventions.
2015-05-15 14:26:14 -04:00
kargakis
ac652d16e6
expose: Re-use labels in case none was specified
2015-05-15 11:54:41 +02:00
Brendan Burns
ea3852ec69
Fix a bug where IgnoreErrors was inverted.
...
Also make an error message a little more verbose.
2015-05-13 16:26:01 +01:00
Nikhil Jindal
c2fecff3d5
Merge pull request #8067 from piosz/kubectl
...
Added label kubernetes.io/name to cluster services
2015-05-12 17:09:22 -07:00
Derek Carr
a11819e4a6
Merge pull request #8057 from kargakis/rework-resize
...
resize: Use Resize method
2015-05-12 10:17:31 -04:00
Victor Marmol
43029345f9
Merge pull request #7973 from dchen1107/podstatus
...
Add kubectl log --previous support to view last terminated container log
2015-05-11 17:08:45 -07:00
Jeff Lowdermilk
ac87ed6516
Merge pull request #8064 from deads2k/death-to-auth-path
...
eliminate auth-path
2015-05-11 15:41:41 -07:00
kargakis
69a96f3ea1
resize: Use Resize method
2015-05-11 21:12:49 +02:00
Piotr Szczesniak
12e44ff8a9
Added label kubernetes.io/name to cluster services
...
The label specifies service name which is displayed in kubectl cluster-info
2015-05-11 19:35:53 +02:00
Nikhil Jindal
2cc8696425
Merge pull request #7919 from brendandburns/kubectl
...
Fix validation by moving it into the resource builder.
2015-05-11 10:20:14 -07:00
Dawn Chen
ecaf0874b2
Introduce --previous option to kubectl log
2015-05-11 10:14:22 -07:00
Eric Paris
630aed6db1
Merge pull request #8016 from nak3/delete-empty-first-column-lines
...
Use template to get first column in __kubectl_parse_get()
2015-05-11 10:01:13 -05:00
deads2k
19784dbc4f
remove auth-path from kubeconfig
2015-05-11 10:40:23 -04:00
Clayton Coleman
2e3c40b5c2
Merge pull request #7774 from kargakis/load-object-for-more-safety
...
expose: Load input object for increased safety
2015-05-11 10:16:20 -04:00
Kenjiro Nakayama
c13f457885
Use template to get first column in __kubectl_parse_get()
2015-05-10 23:32:24 +09:00
Brendan Burns
7f11585972
Fix validation by moving it into the resource builder.
...
Also always print an error for unknown field.
2015-05-08 14:00:33 -07:00
deads2k
6498fc1fda
remove cmd respect for auth-path
2015-05-08 16:33:33 -04:00
Eric Paris
d28660ae49
Remove useless bash conditional
...
bash just returns the last return code, why are we testing and then
doing the same?
2015-05-08 12:22:07 -04:00
kargakis
93dc839b19
Load input object for increased safety
2015-05-08 03:17:54 +02:00
Abhi Shah
7b1e9adb47
Merge pull request #7620 from brendandburns/fix
...
Support recovery from in the middle of a rename.
2015-05-07 16:04:26 -07:00
Cesar Wong
d954c31b22
Update Exec and Portforward client to use pod subresource
2015-05-07 14:25:14 -04:00
Brendan Burns
63cbc715dd
Support recovery from in the middle of a rename.
2015-05-07 10:39:15 -07:00
Brendan Burns
c9e33e197d
Add support for --rollback.
2015-05-06 10:21:35 -07:00
Jeff Lowdermilk
c1ae69da14
Merge pull request #7705 from bprashanth/rollingupdate_2
...
Reliable updates in rollingupdate
2015-05-05 09:23:25 -07:00
kargakis
c9e79a3c28
Setup generators in factory
2015-05-05 12:00:13 +02:00
Prashanth Balasubramanian
faa65cbd20
More reliable updates in rollingupdate
2015-05-04 15:29:30 -07:00
Robert Bailey
93a781ff66
Merge pull request #7722 from eparis/minor-bash-fixes
...
Minor bash update found by shellcheck.net
2015-05-04 13:03:26 -07:00
Victor Marmol
90de73ac7a
Merge pull request #7536 from rjnagal/node
...
Add --hostport to run-container.
2015-05-04 12:55:12 -07:00
Clayton Coleman
dd8184247e
Merge pull request #7629 from caesarxuchao/new-fix-7260-7491
...
Change the order the different versions of API are registered
2015-05-04 15:01:59 -04:00
Clayton Coleman
82b939760e
Merge pull request #7699 from kargakis/make-expose-generic
...
expose: Create objects in a generic way
2015-05-04 15:01:37 -04:00
Eric Paris
87613eee87
Minor bash update found by shellcheck.net
2015-05-04 14:52:50 -04:00
Wojciech Tyczynski
72f9e940a8
Merge pull request #7694 from nak3/bash-comp-add-label
...
Add kubectl_label to custom functions in bash completion
2015-05-04 15:11:41 +02:00
kargakis
fa42901798
expose: Create objects in a generic way
2015-05-04 14:21:24 +02:00
Kenjiro Nakayama
c3485ca85c
Add kubectl_label to custom functions of bash completion
2015-05-04 20:57:56 +09:00
Filip Grzadkowski
be2b2466f3
Merge pull request #7076 from eparis/bash-5-kubectl-required-flags
...
annotate required flags for bash_completions
2015-05-04 13:26:11 +02:00
Rohit Jnagal
9cbfb0c3f9
Add --hostport to run-container.
...
This helps as a starting point to show a single-machine container.
Its easier to use this as an example to show where host port mapping breaks and move on to
services.
2015-05-01 23:45:03 +00:00
Chao Xu
4787c66214
Register the API versions to the DefaultRESTMapper in the order of preferred versions first.
...
This makes kubectl sends requests to URLs in the format defined by the latest API version.
2015-05-01 15:14:15 -07:00
Eric Paris
6b3a6e6b98
Make copyright ownership statement generic
...
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Clayton Coleman
1a8845af61
Merge pull request #7490 from smarterclayton/alter_list
...
Do not automatically decode runtime.RawExtension
2015-05-01 16:48:26 -04:00
Jeff Lowdermilk
ec9942e995
Merge pull request #7540 from bprashanth/rollingupdate
...
Fix rolling update --image
2015-05-01 10:07:46 -07:00
Clayton Coleman
aa810e4e88
Merge pull request #7467 from brendandburns/qps
...
Augment describe to search for matching things if it doesn't match the original resource.
2015-04-30 20:17:34 -04:00
Prashanth Balasubramanian
c8ea0c27e9
Fix rollingupdate --image
2015-04-30 11:28:18 -07:00
Clayton Coleman
d03b5299f9
Merge pull request #7432 from piosz/termination_notice
...
Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
2015-04-30 13:55:51 -04:00
Victor Marmol
5bd2e6d37f
Merge pull request #7552 from rjnagal/kubectl
...
Fix typo in 'kubectl expose' examples.
2015-04-30 09:19:37 -07:00
Piotr Szczesniak
11a2dc496f
Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
...
Those are changes which touch users required by Termination Notice
Addresses #6804
2015-04-30 18:00:33 +02:00
Piotr Szczesniak
cfc73878b9
Added displaying external IPs to kubectl cluster-info
...
Fixes #7521
2015-04-30 10:47:58 +02:00
Rohit Jnagal
0a8b136ee6
Fix typo in 'kubectl expose' examples.
2015-04-30 06:02:16 +00:00
Brendan Burns
83cbd0cf4c
Add recovery for anonymous rollouts.
2015-04-29 16:53:30 -07:00
Brendan Burns
3a8a98c319
Augment describe to search for matching things if it doesn't match the original resource
2015-04-29 16:47:10 -07:00
Jeff Lowdermilk
9fd8cbae64
Merge pull request #7510 from eparis/cobra-rebase
...
Cobra rebase
2015-04-29 15:08:41 -07:00
Clayton Coleman
12ba4e2452
Do not automatically decode runtime.RawExtension
...
Make clients opt in to decoding objects that are stored
in the generic api.List object by invoking runtime.DecodeList()
with a set of schemes. Makes it easier to handle unknown
schema objects because decoding is in the control of the code.
Add runtime.Unstructured, which is a simple in memory
representation of an external object.
2015-04-29 12:53:07 -04:00
Daniel Smith
4d2f7a38c2
Merge pull request #6866 from bprashanth/rc_watch_pods
...
RcManager watches pods and RCs instead of polling every 10s
2015-04-29 09:10:55 -07:00
Eric Paris
a17a26643b
Update kube to support new pflag/cobra
2015-04-29 11:26:30 -04:00
Piotr Szczesniak
9272fe2aea
Updated kubectl cluster-info to show v1beta3 addresses
...
Fixes #7016
2015-04-29 10:54:36 +02:00
Brendan Burns
e1256c0802
Make delete actually stop resources by default.
...
Refactor for shared code.
2015-04-28 14:36:43 -07:00
Prashanth Balasubramanian
7592dabeba
RcManager uses informers
2015-04-28 13:45:15 -07:00
Jeff Lowdermilk
4045dedc99
Merge pull request #7279 from brendandburns/update
...
Further implementation of rolling-update, add rename
2015-04-28 09:31:28 -07:00
kargakis
e6ee32a6c6
Fix getting services in expose cmd
2015-04-28 14:45:05 +03:00
Brendan Burns
591d98b6b2
Add replication controller renaming as a cleanup option.
2015-04-27 20:38:20 -07:00
Tim Hockin
6694eff020
Use pflags word separators to make - and _ equiv.
2015-04-27 15:10:52 -07:00
Brendan Burns
f40c793b37
Address a couple of TODO's in the recent rolling update change.
2015-04-24 16:47:37 -07:00
Brian Grant
7330ced1fe
Merge pull request #7268 from brendandburns/qps
...
First part of improved rolling update, allow dynamic next replication controller generation.
2015-04-24 16:11:07 -07:00
Brendan Burns
217e6ff0d0
First part of improved rolling update, allow dynamic next replication controller generation.
2015-04-24 15:19:00 -07:00
Clayton Coleman
9d0042e760
Merge pull request #7238 from csrwng/use_log_subresource
...
Switch kubelet log command to use pod log subresource
2015-04-24 15:16:50 -04:00
Cesar Wong
556faa4590
Switch kubelet log command to use pod log subresource
2015-04-24 14:04:51 -04:00
nikhiljindal
dcc368c781
Removing more references to v1beta1 from pkg/
2015-04-24 00:45:17 -07:00
David Oppenheimer
e8b28c59c6
Merge pull request #7228 from jlowdermilk/describe-examples
...
Add examples for kubectl describe, make gendocs less spammy
2015-04-23 16:08:35 -07:00
Brian Grant
38ea531487
Merge pull request #7194 from nikhiljindal/example
...
Updating the guestbook example to v1beta3
2015-04-23 15:26:47 -07:00
Jeff Lowdermilk
a8e2f6e9c8
Add examples for kubectl describe, and make gendocs less spammy
...
Makes hack/{run/verify}-gendocs.sh ignore generated-timestamp-only
changes so minor changes to kubectl don't have to touch the entire
set of md docs.
2015-04-23 14:53:10 -07:00
nikhiljindal
1e323d77bc
Updating the guestbook example to v1beta3
2015-04-23 14:34:36 -07:00
Jeff Lowdermilk
fa6ce7b7bf
Add a --raw flag to kubectl config view
...
Defaults to false, unless --flatten is specified. Default behavior
(--raw=false) is that byte data (Client{Certificate,Key}data,
CertificateAuthorityData) is redacted for a more human-readable view.
Useful for manually inspecting files that have embeded data.
2015-04-23 09:19:45 -07:00
Brian Grant
7d3c15dd4d
Merge pull request #6996 from ironcladlou/rolling-updater-cleanup-policy
...
Add cleanup policy to RollingUpdater
2015-04-21 13:47:12 -07:00
Dan Mace
093b7c2e25
Add cleanup policy to RollingUpdater
...
* Support configurable cleanup policies in RollingUpdater. Downstream
library consumers don't necessarily have the same rules for post
deployment cleanup; making the behavior policy driven is more flexible.
* Refactor RollingUpdater to accept a config object during Update instead
of a long argument list.
* Add test coverage for cleanup policy.
2015-04-21 10:51:38 -04:00
Brian Grant
9dcf3e0a33
Merge pull request #7082 from fabioy/api-cs.fix
...
Fixed "componentstatuses" API object JSON descriptions.
2015-04-20 18:10:36 -07:00
Fabio Yeon
81ef0198f4
Fixed "componentstatuses" API object JSON descriptions.
2015-04-20 17:28:13 -07:00
Clayton Coleman
1bc4912f51
Merge pull request #7030 from liggitt/skip_fetch_delete
...
Skip fetching from server when deleting a named resource
2015-04-20 19:38:10 -04:00
Eric Paris
0620940d26
annotate required flags for bash_completions
...
some commands require that certain flags be set in order to function.
Annotate those flags so the bash completions will suggest to the user
that they be set.
2015-04-20 18:33:00 -04:00
Brendan Burns
d7b0b4a95b
Merge pull request #6834 from eparis/bash-4-kubectl-describe
...
Annotate kubectl describe with describable object for bash completions
2015-04-20 14:13:53 -07:00
Jordan Liggitt
feb8ba9c4e
Allow resource builder to avoid fetching objects
2015-04-20 15:00:52 -04:00
Clayton Coleman
545a5a865f
List output with differing types should be more resilient
...
kubectl get can output a series of objects as a List in versioned
form, but not all API objects are available in the same schema.
Make the act of converting a []runtime.Object to api.List more
robust and add a test to verify its behavior in Get.
Makes it easier for client code to output unified objects.
2015-04-20 14:44:16 -04:00
Brendan Burns
e079e23e47
Merge pull request #6597 from fabioy/kubectl-validate
...
Add "kubectl validate" command to do a cluster health check.
2015-04-20 11:21:06 -07:00
deads2k
d24b672aa0
allow multiple changes in kubeconfig modifyconfig
2015-04-17 16:02:36 -04:00
Fabio Yeon
951a125751
Add "componentstatus" to API for easier cluster health check.
2015-04-17 11:58:23 -07:00
Jeff Lowdermilk
97e4549170
Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
...
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
Tim Hockin
c2bacd588d
Stop using dockerfile/* images
...
As per
http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/
docker has stopped answering dockerfile/redis and dockerfile/nginx. Fix all
users in our tree. Sadly this means a lot of published examples are now broken.
2015-04-16 12:20:43 -07:00
deads2k
de4be5422c
change kubeconfig loading order
2015-04-16 13:05:09 -04:00
Dan Mace
bd7b719944
Make default impls private
2015-04-15 16:50:08 -04:00
Dan Mace
312ccad3c1
Use narrowly scoped interfaces for client access
...
Use custom narrowly scoped interfaces for client access from the
RollingUpdater and Resizer. This allows for more flexible downstream
integration and unit testing without imposing a burden to implement
the entire client.Interface for just a handful of methods.
2015-04-15 14:28:59 -04:00
Eric Paris
f272e836e0
Annotate kubectl describe with describable object for bash completions
2015-04-14 18:51:18 -04:00
Eric Paris
de3864a1c2
bash_completions: Generic function for --filename arguments
...
This generic function adds --filename= arguments to commands, and does
the magic so they get bash completions to find json, yaml, or yml files.
2015-04-14 18:25:52 -04:00
Jeff Lowdermilk
037407f49e
Merge pull request #6791 from eparis/bash-2-kubectl-get-resources
...
bash_completions: annotate kubectl get with resources
2015-04-14 15:02:34 -07:00
Jeff Lowdermilk
4f552053f1
Merge pull request #6789 from eparis/bash-custom-functions
...
Add bash completion custom functions
2015-04-14 11:54:22 -07:00
deads2k
bac5cbbe82
add flattening and minifying options to config view
2015-04-14 10:23:10 -04:00
Eric Paris
c75ecbd8e3
bash_completions: annotate kubectl get with resources which can be 'gotten'
...
A user types:
kubectl get $resource
This will cause the bash completions to suggest the possible objects the
user can ask for. The complete list right now is:
endpoints
event
limitrange
namespace
node
persistentvolume
persistentvolumeclaim
pod
replicationcontroller
resourcequota
secret
service
status
But this list should stay up2date as api objects are added or deleted
2015-04-13 19:11:26 -04:00
Fabio Yeon
e99141de0d
Merge pull request #6729 from smarterclayton/chaosclient
...
Add a new Chaos transport that can simulate network failure and add it to the kubelet
2015-04-13 16:06:53 -07:00
Dawn Chen
fb25f9e12c
Merge pull request #6768 from deads2k/deads-allow-flag-elimination
...
allow selective removal of kubeconfig override flags
2015-04-13 16:00:23 -07:00
Eric Paris
f6878aed3c
Add bash completion custom functions
...
These functions call out to kubectl to get information about running
resources. They give us completions which are kubernetes aware and thus
obviously better than just cobra subcommands and flags.
2015-04-13 18:49:28 -04:00
Clayton Coleman
ca335d7be9
Add support for chaos to Kubelet and hack/local-up-cluster.sh
2015-04-13 18:21:20 -04:00
deads2k
e7baa94404
allow selective removal of kubeconfig override flags
2015-04-13 13:14:23 -04:00
kargakis
ae960552c8
Remove deprecated call to ResourceFromArgs
...
Continuing from #6571
2015-04-11 08:14:25 +02:00
Dawn Chen
cf357dfa21
Merge pull request #6701 from dchen1107/podstatus
...
Fix a small regression on api server proxy after switch to v1beta3.
2015-04-10 14:22:54 -07:00
Dawn Chen
c1e13b3431
Fix a small regression on api server proxy after switch to v1beta3.
2015-04-10 13:42:46 -07:00
Daniel Smith
f591873af7
Add DeepCopy! Also-- optimize conversion for []byte
2015-04-10 13:26:46 -07:00
Jeff Lowdermilk
96076eb129
Merge pull request #6585 from deads2k/deads-config-takes-factory
...
make kubectl config behave more expectedly
2015-04-09 14:54:55 -07:00
Clayton Coleman
92a68ad7bf
The versioned printer should be initialized with the mapping apiversion
...
VersionedPrinter handles fallback when multiple different APIVersions
are present if multiple arguments are passed (for instance, both Kube
resources at v1beta3 and a third party's API objects which are only
at v1). The cmd PrinterForMapping should always include the current
object's "mapping version" as a fallback in the event the preferred
API version does not map to the actual object.
2015-04-09 15:45:06 -04:00
deads2k
b2e3f2185e
make kubectl config behave more expectedly
2015-04-09 15:43:57 -04:00
Vish Kannan
2215a64567
Merge pull request #6571 from kargakis/describe-fix
...
describe: Support resource type/name syntax
2015-04-09 10:54:24 -07:00
Jeff Lowdermilk
ca6f1a1bc7
Merge pull request #6476 from deads2k/deads-fix-kubeconfig-serialization
...
fix kubeconfig serialization
2015-04-09 09:41:26 -07:00
nikhiljindal
fe60be3179
Moving v1beta1 kubectl examples to v1beta3
2015-04-08 13:08:13 -07:00
kargakis
a8987b661a
describe: Support resource type/name syntax
...
This makes `kubectl describe` resource syntax consistent with `kubectl delete`
2015-04-08 16:03:22 +02:00
Clayton Coleman
bb137f0bba
Merge pull request #6534 from deads2k/deads-kubeconfig-cmd-factory
...
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 17:02:20 -04:00
deads2k
6344cf3c3a
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 14:43:50 -04:00
Clayton Coleman
31b7f75c60
Merge pull request #6516 from ncdc/fix-exec-portforward-proxy-resource
...
Fix exec/portforward minions->nodes
2015-04-07 11:47:46 -04:00
Andy Goldstein
1c92133b77
Fix exec/portforward minions->nodes
...
Exec and port forward weren't working with v1beta3 because they were
proxying minions. Change minions to nodes. This appears to work with
v1beta1 and v1beta2 as well.
2015-04-07 09:48:46 -04:00
Young
ad3712d07c
RunCreate don't need the cmd arg any more
2015-04-07 21:39:48 +08:00
deads2k
06c9dbd32f
add example for default view serialization
2015-04-07 08:07:24 -04:00
deads2k
5c4b6583e4
fix kubectl config view to respect serialization formats
2015-04-07 08:07:24 -04:00
Daniel Smith
44bc29631e
compute query parameter names in the client.
2015-04-06 16:54:26 -07:00
Rohit Jnagal
dbbfac3b54
Merge pull request #6479 from TamerTas/refactor
...
Refactor kubectl/cmd/config/getConfigFromFileOrDie
2015-04-06 13:43:44 -07:00
Tamer Tas
6d84838c0f
Refactor kubectl/cmd/config/getConfigFromFileOrDie
2015-04-06 22:50:07 +03:00
Yu-Ju Hong
dbd7b186a0
Merge pull request #6338 from smarterclayton/improve_config_error
...
Return a typed error for config validation, and make errors simple
2015-04-03 18:08:15 -07:00
nikhiljindal
f2b72931fc
Updating components to use v1beta3
2015-04-03 15:19:14 -07:00
Sam Ghods
ca18e86877
Make naming of kubectl subcommands consistent
2015-04-02 16:14:53 -07:00
Jeff Lowdermilk
96bdee8c28
Merge pull request #6312 from brendandburns/services
...
Make expose use introspection to grab the port value if possible.
2015-04-02 13:32:50 -07:00
Brendan Burns
674efe6de8
Make expose use introspection to grab the port value if possible.
...
Also improve service printing to include public IP addresses.
2015-04-02 13:08:47 -07:00
Piotr Szczesniak
5c6439d449
Removed PodStatus.Host
...
Fixes #6165
2015-04-02 16:38:45 +02:00
Clayton Coleman
323a44e54a
Make kubectl errors even more user-friendly
...
Omit glog prefix when v < 2, show multiline errors for configuration
problems, add new generic messages for server errors that hide some
complexity that is not relevant for users.
2015-04-02 01:40:15 -04:00
Rohit Jnagal
e0ff139279
Remove validation for Capacity as it got moved from Spec to Status.
...
Also fix breakage from ExternalID validation: Default ExternalID to node name when not specified.
2015-04-02 00:51:52 +00:00
kargakis
3c09d4d383
Update delete short usage message
2015-04-01 17:14:13 +02:00
Victor Marmol
2de37624e8
Merge pull request #6252 from krousey/string_format_cleanup
...
Fixing a lot of string formatting issues
2015-03-31 16:57:36 -07:00
Kris Rousey
6904c4d585
Fixing a lot of string formatting issues with regards to:
...
* Improper format specifier (e.g. %s for bools or %s for ints)
* More or less parameters than format specifiers
* Not calling a formatting function when it should have (e.g. Error() instead of Errorf())
2015-03-31 16:47:10 -07:00
Tim Hockin
186818d787
WIP: Implement multi-port Services
2015-03-30 19:28:11 -07:00
Victor Marmol
b9499b8c5b
Merge pull request #6126 from ghodss/reduce-some-kubectl-spacing
...
Reduce some tab spacing in kubectl
2015-03-27 18:34:36 -07:00
Sam Ghods
f8d8b09a0a
Reduce some tab spacing in kubectl
2015-03-27 18:05:20 -07:00
Victor Marmol
3bc933645b
Merge pull request #6083 from jlowdermilk/fix-log
...
Fix kubectl log for single-container pods
2015-03-27 17:51:33 -07:00
Jeff Lowdermilk
243de3a472
Fix kubectl log for single-container pods
2015-03-27 12:26:00 -07:00
Young
84bfda0587
remove cmd arg
...
related issue "Remove cmd from kubectl/cmd/factory arguments #4470 "
2015-03-27 21:46:17 +08:00
Tim Hockin
f928f52a4a
Alias --container-port to --target-port in kubectl
2015-03-26 17:59:46 -07:00
Jeff Lowdermilk
653b7e629d
Merge pull request #5977 from smarterclayton/allow_expose_to_handle_other_resources
...
Allow `kubectl expose` to be polymorphic to the source of the selector
2015-03-26 13:23:21 -07:00
Jeff Lowdermilk
fc2eb66d9f
Merge pull request #5976 from smarterclayton/support_resource_builder_on_label
...
`kubectl label` should support resource builder
2015-03-26 13:21:56 -07:00
Clayton Coleman
64f91f7dac
Allow kubectl expose
to be polymorphic to the source of the selector
...
Allows exposing new resource types to be exposed (OpenShift deployment
controllers, copying services, and other resources that will have
pod label selectors).
Also fixed a bug where the selector wasn't exposed because of parameter
defaulting.
2015-03-26 14:36:53 -04:00
Clayton Coleman
1e496696ca
Merge pull request #5903 from smarterclayton/support_resources_by_type_and_name
...
Allow resource.Builder commands to take arguments by type/name
2015-03-26 14:23:03 -04:00
Clayton Coleman
68c46e7f52
kubectl label
should support resource builder
...
Allow applying labels to all resources, by existing selector, and
soon allow multiple selection.
2015-03-26 14:01:05 -04:00
Clayton Coleman
0dd625ffd3
Order the commands in kubectl by importance and function
...
Move the client config commands towards the bottom, keep the primary
verbs near the top. Version goes at the bottom.
2015-03-26 10:19:06 -04:00
Clayton Coleman
581d7cd789
Allow resource.Builder commands to take arguments by type/name
...
Will allow xarg behavior to fetch resources across multiple types.
Changes 'create', 'get', 'update', 'stop', and 'delete' to output
<resourceType>/<name>.
2015-03-25 20:39:22 -04:00
Brendan Burns
99267d725c
Add validation of args for create.
2015-03-24 11:21:52 -07:00
Piotr Szczesniak
c06eecf7aa
Added colors to output of kubectl clusterinfo
...
Added warning about trailing slashes
Also I ran godeps as described at
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md
This fixes #5698
2015-03-24 11:46:04 +01:00
Clayton Coleman
022c103699
Update RollingUpdater to use resource.Builder
...
Remove last usage of ResourceFromFile
2015-03-20 00:03:54 -04:00
CJ Cullen
f6d8d5f800
Merge pull request #5522 from fabioy/expose-label.fix
...
Add "--labels" option to the "expose" kubectl command.
2015-03-19 14:40:15 -07:00
Jeff Lowdermilk
39211af25e
Declare kubectl validate flag once
2015-03-18 14:00:19 -07:00