Jeff Lowdermilk
b26dfacfff
Merge pull request #3316 from deads2k/deads-add-kubeconfig-file-properly
...
add kubeconfig file properly
2015-01-08 13:50:52 -08:00
deads2k
60a46e7d49
fixes e2e failure on gce with new .kubeconfig, kick travis
2015-01-08 16:31:25 -05:00
Clayton Coleman
8f65442c2f
Client should not include ns/ for non-namespaced calls in v1beta3
2015-01-08 12:44:07 -05:00
deads2k
480635bb72
Revert "Revert "add kubeconfig types""
...
This reverts commit 02dbad7094
.
2015-01-08 09:42:30 -05:00
Brendan Burns
5963c1735e
Merge pull request #3283 from GoogleCloudPlatform/revert-3273-fix_master_conflict
...
Revert "Fix inflight merge conflict by adapting rollingupdate to #2861"
2015-01-07 12:43:26 -08:00
Brendan Burns
cfffe7049c
Revert "Fix inflight merge conflict by adapting rollingupdate to #2861"
2015-01-07 12:42:28 -08:00
Brendan Burns
02dbad7094
Revert "add kubeconfig types"
2015-01-07 12:39:37 -08:00
Clayton Coleman
e0f0b9c588
Fix inflight merge conflict by adapting rollingupdate to #2861
...
ClientConfig changed right as rollingupdate was introduced.
2015-01-07 13:51:43 -05:00
Clayton Coleman
585d2c8cbd
Merge pull request #2861 from deads2k/deads-add-clicfg-types
...
add kubeconfig types
2015-01-07 13:35:50 -05:00
deads2k
0e688dc271
add kubeconfig file
2015-01-07 13:09:10 -05:00
Jeff Lowdermlk
0ab39df66b
Add a rollingupdate lib and command to kubectl
...
Also decouple conditions from client for testability.
2015-01-06 17:29:05 -08:00
Dawn Chen
e3c019128e
Add EventSource to api to have both Component and Host information.
2015-01-06 16:08:20 -08:00
Dawn Chen
2b91c1417c
Create selfLink for pods from config files and indicate hostname as part of event source.
2015-01-06 16:08:20 -08:00
Daniel Smith
9c2cd55528
Merge pull request #3181 from smarterclayton/cleanup_http_items
...
Minor cleanups to request - fix initialism on HTTPClientFunc
2014-12-30 17:34:00 -08:00
Clayton Coleman
8005c85e6c
Rename HttpClientFunc -> HTTPClientFunc
2014-12-30 19:34:06 -05:00
Daniel Smith
6156526d92
Merge pull request #3133 from smarterclayton/remove_request_path
...
Introduce Resource/ResourceName/Prefix/Suffix options to RESTClient
2014-12-30 15:33:11 -08:00
saadali
e8d30f019d
Modify "kubectl get events" to print FieldPath so BoundPod events for the same Pod but different containers can be differentiated
2014-12-29 21:32:49 -08:00
Clayton Coleman
e355f54eda
Update references from Path() to the appropriate segment use
2014-12-29 15:38:52 -05:00
Daniel Smith
998061677b
Merge pull request #2909 from smarterclayton/passversiontorestmapper
...
Allow --api-version to properly override various default behaviors in CLI
2014-12-29 12:14:32 -08:00
Daniel Smith
7f46d420dd
add existence func and unit test
2014-12-23 14:05:26 -08:00
Daniel Smith
16c624b2e6
improve error reporting for bad templates
2014-12-23 11:21:38 -08:00
Clayton Coleman
203246b7e0
Allow the api-version on the command to override the client builder
2014-12-22 14:52:03 -05:00
Clayton Coleman
158f322301
Use preferred resource version
2014-12-22 14:46:31 -05:00
Clayton Coleman
8bef68d475
RESTMapper should take into account multiple versions
...
When a CLI command `kubectl get rc --api-version=v1beta3` is called,
the API resource name should match v1beta3, not whatever the default
RESTMapper version is. This allows the correct resource name to be
returned ("replicationcontrollers", instead of "replicationControllers").
2014-12-22 14:46:31 -05:00
saadali
0db4b8e2ad
Fix Issue #3002 : kubectl get pods/log podname don't work well together
2014-12-18 18:15:47 -08:00
Daniel Smith
3ade280f89
Merge pull request #2813 from derekwaynecarr/ns_url
...
Move namespace from query param to path part
2014-12-18 13:31:45 -08:00
saadali
ae1db31a0f
Issue 2948: fix "kubectl get events" result not sorted
2014-12-18 11:02:12 -08:00
Salvatore Dario MINONNE
61ac2f7437
kubectl delete command: adding labelSelector
...
Add a Visitor pattern on top of ResourcesFromArgs
Allows ResourcesFromArgs to return an opaque list of items and have client
commands react to them.
Change request.go to return apiserver errors for arbitrary status codes to
better respond to generic actions that don't make sense (kubectl delete operations foo)
2014-12-17 18:15:03 +00:00
Joe Beda
93ed9173e3
Merge pull request #2781 from commonlisp/master
...
simplify util.ErrorList by eliminating errorListInternal
2014-12-16 15:43:55 -08:00
derekwaynecarr
7cf664439f
Move namespace from query param to path part
2014-12-16 15:55:47 -05:00
Clayton Coleman
88715cc6ef
Rename Event.Status to Event.Condition to match v1beta3 agreement
...
Question - should this be a phase? Seems like no, since phase implies
defined lifecycle and this field is explicitly not defined.
2014-12-16 09:43:10 -05:00
jhadvig
019ca75fc6
Streaming container logs
2014-12-15 12:12:11 +01:00
George Kuan
5e1fc1f4e0
Fixes #1605 : make ErrorList introspectable by replacing ErrorList and
...
ErrorList#ToError with []error and util.SliceToError() respectively
2014-12-12 10:56:31 -08:00
Dylan Carney
ba5c18816e
Updates kubectl log cmd per PR feedback
2014-12-11 17:44:44 -08:00
Dylan Carney
3f88f27d7b
Modifies kubectl log cmd to not require container arg for single-container pods (for #2847 )
2014-12-11 12:32:18 -08:00
Clayton Coleman
d1d7505272
Rename client Minions->Nodes, select the correct path for v1beta3
...
Replaces the client public interface but leaves old references to "minions"
for a later refactor. Selects the path "nodes" for v1beta3 and "minions"
for older versions.
2014-12-10 12:08:19 -05:00
Clayton Coleman
19379b5a38
Internal rename api.Minion -> api.Node
2014-12-10 12:08:18 -05:00
Brendan Burns
18cfac0d31
Make validation optional, handle YAML
2014-12-09 12:37:49 -08:00
Brendan Burns
c29f5db81c
Revert "Revert "Add optional validation to kubecfg/kubectl.""
...
This reverts commit 6590c66dd4
.
2014-12-09 12:37:48 -08:00
Clayton Coleman
ff173d013a
Merge pull request #2682 from mfojtik/cmd_public
...
Export kubectl/cmd methods
2014-12-03 08:52:04 -06:00
Michal Fojtik
17e24aed47
Export GetKubeNamespace function from kubectl
2014-12-03 13:15:48 +01:00
Sam Ghods
6399854240
Remove unused YAML tags and GetYAML/SetYAML methods
...
Unneeded after move to ghodss/yaml.
2014-12-02 16:25:28 -08:00
Sam Ghods
9a9a1e0939
Move from go-yaml/yaml to ghodss/yaml
2014-12-02 16:24:05 -08:00
Daniel Smith
3b2fa9618d
Relax search criteria to find both pod & bound pod events
2014-12-01 17:19:42 -08:00
Eric Tune
7eceafa656
Merge pull request #2437 from deads2k/deads-add-utility-to-bind-auth-flags
...
add utility for binding flags and building api server clients
2014-11-26 15:15:14 -08:00
Eric Tune
585afa1bae
Merge pull request #2610 from ddysher/node-namespace
...
Fix node namespace.
2014-11-26 13:02:21 -08:00
deads2k
2dbfb80349
add utility for binding flags and building api server clients
2014-11-26 07:50:51 -05:00
Joe Beda
6590c66dd4
Revert "Add optional validation to kubecfg/kubectl."
...
This reverts commit acf6d82800
.
2014-11-25 14:45:00 -08:00
Eric Tune
7ca611b1df
Merge pull request #2589 from ddysher/show-node-label
...
Use formatLabel instead of label.Set
2014-11-25 14:08:50 -08:00
Eric Tune
636ffed399
Merge pull request #2515 from thockin/why
...
Add details on Invalid validation errors
2014-11-25 14:04:27 -08:00
Deyuan Deng
c8c7a13ac6
Fix node namespace.
2014-11-25 16:30:55 -05:00
Clayton Coleman
a67912f937
Merge pull request #2517 from brendandburns/kubecfg
...
Add client side validation to kubecfg and kubectl.
2014-11-25 13:46:52 -06:00
derekwaynecarr
f41a44278d
Log function use namespace
2014-11-25 13:10:32 -05:00
Brendan Burns
acf6d82800
Add optional validation to kubecfg/kubectl.
2014-11-24 22:25:22 -08:00
Tim Hockin
ff8c5f9415
Add a Detail field to Validation Error
2014-11-24 17:28:42 -08:00
Deyuan Deng
ec7d544194
Use formatLabel instead of label.Set
2014-11-24 18:45:29 -05:00
bgrant0607
c0fb54b8ca
Merge pull request #2540 from mikedanese/kubectl-example-fix
...
Fixed kubectl example
2014-11-24 09:30:33 -08:00
Deyuan Deng
6a42b66369
Display node label
2014-11-22 11:33:02 -05:00
Mike Danese
39bdee387e
kubectl get format is specified with -o, not -f
2014-11-21 17:55:48 -08:00
markturansky
8159c8fd25
Refactor PodCondition to PodPhase
2014-11-21 15:28:38 -05:00
Tim Hockin
95a9098311
fix 'go vet' warnings
2014-11-21 09:45:28 +08:00
Tim Hockin
ea960711ff
Clean up error logs.
...
Use %v for errors, tidy some messages, make error messages start lowe-case
(as per go guidelines). Just accumulated nits.
2014-11-21 09:45:26 +08:00
bgrant0607
6b80abc78c
Merge pull request #2494 from bgrant0607/config
...
Create tool for resizing a replication controller via kubectl.
2014-11-20 16:30:22 -08:00
Daniel Smith
432cf39c0c
add test and more helpful error message
2014-11-20 14:11:19 -08:00
Brian Grant
e107da34d2
Create tools for resizing and stopping a replication controller via kubectl.
2014-11-20 18:49:44 +00:00
Haney Maxwell
bc29903146
Improve kubectl "get" error message
...
Previous behavior:
$ kubectl get hosts
F1119 11:47:44.787154 29017 resource.go:111] no resource "hosts" has been defined
2014-11-19 14:33:41 -08:00
Daniel Smith
298007b97e
Merge pull request #2447 from smarterclayton/revert_bundling_of_version
...
Ensure that kubectl get works with downstream resources
2014-11-19 10:39:52 -08:00
Clayton Coleman
487e5cd061
Make GetPrinter take the necessary conversion arguments
...
This fully encapsulates decisions about conversion within GetPrinter,
which prevents users from accidentally not converting.
2014-11-18 21:14:39 -05:00
Clayton Coleman
9eb4ca43d8
Move FakeRESTClient to client/fake.go
2014-11-18 20:22:05 -05:00
markturansky
8af4ccb111
v1beta3 Pod refactor
2014-11-18 09:25:42 -05:00
Brendan Burns
f05c4a69e8
Merge pull request #2326 from marianitadn/read-json-directories-as-object-streams
...
Add directory as option for createall command
2014-11-17 09:50:57 -08:00
Satnam Singh
fa0cb9a25e
Make the output kubectl.sh narrower
2014-11-14 17:20:01 -08:00
bgrant0607
cb8ca2d341
Merge pull request #2384 from lavalamp/fix3
...
Add events to kubectl describe
2014-11-14 13:29:40 -08:00
Daniel Smith
6a5da9ee19
Add events to kubectl describe
2014-11-14 11:56:59 -08:00
Clayton Coleman
c95b8694d6
Merge pull request #2340 from erictune/refactor_kube_auth
...
Refactor kube auth
2014-11-14 14:10:53 -05:00
Eric Tune
0727219c83
New package defines .kubernetes_auth format.
...
Refactored common code to that package.
Subsequent PRs will load and emit these files.
2014-11-14 10:36:25 -08:00
Brendan Burns
c25ef89b24
Merge pull request #2367 from lavalamp/fix3
...
Yet more non-controversial fixes from #2277
2014-11-14 10:25:04 -08:00
Daniel Smith
7df0f6d3bd
Merge pull request #2343 from erictune/tokens_need_private_comms
...
Use https when Insecure is selected.
2014-11-14 09:51:59 -08:00
Eric Tune
5c24855349
Rename Secure -> TLS; we may use TLS insecurely.
2014-11-13 21:42:36 -08:00
Daniel Smith
d153b98544
Simplify kubectl describe code
2014-11-13 20:25:50 -08:00
Daniel Smith
01048540bf
add --watch-only to kubectl, if you only want new messages
2014-11-13 17:02:36 -08:00
Daniel Smith
72c922668f
Improve error reporting
2014-11-12 15:22:09 -08:00
Maria Nita
874ce5d799
Add directory as option for createall command
2014-11-12 23:52:16 +01:00
Daniel Smith
02a0593df0
Add --watch to get command
2014-11-12 13:44:39 -08:00
Daniel Smith
0348a67413
Merge pull request #2195 from smarterclayton/prepare_pod_template_v1beta3
...
Allow an internal pod template reference or object
2014-11-12 10:55:08 -08:00
Eric Tune
cf21f97cd2
Merge pull request #2309 from lavalamp/fix3
...
Refactors of kubectl object printers.
2014-11-11 16:39:04 -08:00
Daniel Smith
a198a62064
refactor resource printer's version handling (to make adding --watch feature easier)
2014-11-11 16:15:22 -08:00
Daniel Smith
6fa6d3ee3e
kubectl resource printing: actually do versioned print
2014-11-11 15:32:13 -08:00
Clayton Coleman
94c873e7a4
Remaining refactor for PodTemplateSpec and fixing test cases
2014-11-11 17:03:20 -05:00
Clayton Coleman
9fb58029fe
Merge pull request #2287 from marianitadn/kubectl-create-factory
...
Kubectl create factory
2014-11-11 12:57:22 -05:00
Maria Nita
2295d4b2e9
kubectl createall command extends Factory
2014-11-11 17:23:39 +01:00
Michal Fojtik
0c76c44972
Make getKubeConfig public to allow it for external consumption
2014-11-11 16:02:39 +01:00
fabianofranz
c43637b73c
Extract several kubectl helpers from cmd/cmd.go
2014-11-10 15:09:32 -02:00
Daniel Smith
9bb0d33a3f
Fix kubectl -template to be versioned
2014-11-07 16:47:21 -08:00
Daniel Smith
9938254b63
Merge pull request #2226 from claire921/kubectl
...
Uncapitalize error message in pkg/kubectl
2014-11-07 11:30:39 -08:00
Claire Li
a4261d0f65
Use switch rather than ifs for getPodStatusForReplicationController in pkg/describe.go
2014-11-06 23:45:51 -08:00
Claire Li
9111f4fdbe
Uncapitalize error message in pkg/kubectl
2014-11-06 22:56:39 -08:00
Daniel Smith
5579f09792
Merge pull request #2148 from lavalamp/eventing3
...
Add events to kubectl (still need search function)
2014-11-05 17:26:05 -08:00
markturansky
119f654a13
Refactor PodStatus to PodCondition in internal API for v1beta3
2014-11-05 17:26:47 -05:00
Daniel Smith
0b924ed9d9
Add events to kubectl (still need search function)
2014-11-05 13:59:32 -08:00