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
Eric Paris
87613eee87
Minor bash update found by shellcheck.net
2015-05-04 14:52:50 -04:00
Kenjiro Nakayama
c3485ca85c
Add kubectl_label to custom functions of bash completion
2015-05-04 20:57:56 +09: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
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
deads2k
b2e3f2185e
make kubectl config behave more expectedly
2015-04-09 15:43:57 -04:00
deads2k
6344cf3c3a
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 14:43:50 -04:00
Sam Ghods
ca18e86877
Make naming of kubectl subcommands consistent
2015-04-02 16:14:53 -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
Young
84bfda0587
remove cmd arg
...
related issue "Remove cmd from kubectl/cmd/factory arguments #4470"
2015-03-27 21:46:17 +08: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
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
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
Jeff Lowdermilk
39211af25e
Declare kubectl validate flag once
2015-03-18 14:00:19 -07:00
Jeff Lowdermilk
72699606a9
Merge pull request #5541 from deads2k/deads-expose-resolve-local-paths
...
allow any number of kubeconfig files
2015-03-18 10:46:47 -07:00
Tamer Tas
b39e31d8a3
Remove cmd from kubectl/cmd/factory
2015-03-18 14:23:14 +02:00
Young
97b647207e
add get available versions commmand
2015-03-17 13:51:18 +00:00
deads2k
8555ed3ede
allow any number of kubeconfig files
2015-03-17 08:49:34 -04:00
Jeff Lowdermilk
cd7d78b696
Make kubectl commands return errors and centralize exit handling
2015-03-10 10:19:43 -07:00
Brendan Burns
f505a33998
Differentiate between server error messages and client error messages in kubectl
2015-03-07 11:39:23 +01:00
Piotr Szczesniak
e92192d379
Added new command clusterinfo to kubectl
...
This is first version of the command. It prints IPs of master and cluster
services. Should be improved once generalized labels are implemented #341 .
It requires label kubernet.io/cluster-service=true set for cluster services.
Follow up cl after discussion in #4417 .
2015-03-03 20:14:24 +01:00
Andy Goldstein
5bd0e9ab05
Add streaming command execution & port forwarding
...
Add streaming command execution & port forwarding via HTTP connection
upgrades (currently using SPDY).
2015-02-20 09:57:02 -05:00
Clayton Coleman
8811fd2971
Merge pull request #4284 from brendandburns/cleanup
...
Explicitly send the error string to the Fatal log.
2015-02-10 12:48:30 -05:00
Brendan Burns
8f3136cd37
Explicitly send the error string to the Fatal log.
2015-02-10 07:12:13 -08:00
Brendan Burns
ac35aa5e32
Add a label command.
2015-02-09 20:09:02 -08:00
Jeff Lowdermilk
d46ae5d841
Refactor kubectl/cmd helpers into pkg/kubectl/cmd/util
...
Allows helpers to be used by config commands.
2015-02-05 09:39:42 -08:00
Brian Grant
4eb41b2330
Merge pull request #3592 from brendandburns/cli
...
Add a service generator and a command to easily expose services.
2015-02-03 09:07:05 -08:00
Jeff Lowdermilk
93ef8b8bcb
Make kubectl factory build clients for version
...
Fix ClientConfigForVersion to actually use provided version.
2015-01-29 17:04:14 -08:00
Brendan Burns
09166f5252
Add a service generator and a command to easily expose services.
2015-01-27 10:06:08 -08:00
Jeff Lowdermilk
201e99e0ee
Add a kubectl stop command
2015-01-22 09:46:53 -08:00
Filipe Brandenburger
b1727b0330
Revert "Add a kubectl stop command"
2015-01-22 09:00:50 -08:00
Brian Grant
a921086507
Merge pull request #3662 from jlowdermilk/kubectl-stop
...
Add a kubectl stop command
2015-01-22 06:58:29 -08:00
Tim Hockin
7dd0400065
Merge pull request #3470 from deads2k/deads-add-kubecfg-ns
...
respect namespace from .kubeconfig file
2015-01-21 12:58:06 -08:00
Clayton Coleman
3c15427b2d
Merge pull request #3647 from deads2k/deads-make-factory-flag-binding-optional
...
make kubectl factory flag binding optional
2015-01-21 15:23:37 -05:00
Jeff Lowdermilk
b1aa037990
Add a kubectl stop command
2015-01-20 19:01:32 -08:00
deads2k
500bb3a7fa
make kubectl factory flag binding optional
2015-01-20 18:12:24 -05:00
deads2k
8c01729f38
make shorthand flags optional
2015-01-20 16:21:27 -05:00
deads2k
dd01137138
add namespace to kubeconfig file
2015-01-20 16:07:54 -05:00
Joe Beda
1d0b6ee5f5
Fix up logging flags for kubectl.
2015-01-15 09:12:20 -08:00
Brendan Burns
d3a07adb38
Add a resize command to kubectl.
2015-01-14 21:36:08 -08:00
Brendan Burns
1ce6c27f3d
Add an initial run command
2015-01-13 20:00:29 -08:00
Clayton Coleman
87970bc356
Use the new client.SetKubernetesDefaults methods to properly default config object
2015-01-13 18:50:36 -05:00
deads2k
b51a717f6e
add kubectl config
2015-01-13 16:19:57 -05:00
Clayton Coleman
bc86b31a8b
Remove createall now that create supports directories and sources
2015-01-09 13:30:31 -05:00
Clayton Coleman
d1ab27762b
Create should be able to accept multiple resources
2015-01-09 13:30:31 -05:00
Clayton Coleman
2151afe334
Allow kubectl get to fetch multiple resource types
...
Like Delete, which can now run over multiple types:
kubectl delete pods,services -l name=foo
Get should be able to span items for label selection
kubectl get pods,services -l name=foo
2015-01-09 13:30:14 -05:00
Clayton Coleman
8a4f225941
Make expandResourceShortcuts part of RESTMapper on client
2015-01-09 11:59:11 -05:00
Joe Beda
7abd90e9df
Generic way to import 'flag' flags into the 'pflag' system.
...
Start with kubectl but with an eye toward switching everything over to pflag.
2015-01-08 15:25:31 -08:00
deads2k
480635bb72
Revert "Revert "add kubeconfig types""
...
This reverts commit 02dbad7094
.
2015-01-08 09:42:30 -05:00
Brendan Burns
02dbad7094
Revert "add kubeconfig types"
2015-01-07 12:39:37 -08: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
Clayton Coleman
e355f54eda
Update references from Path() to the appropriate segment use
2014-12-29 15:38:52 -05:00
Clayton Coleman
203246b7e0
Allow the api-version on the command to override the client builder
2014-12-22 14:52:03 -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
Michal Fojtik
17e24aed47
Export GetKubeNamespace function from kubectl
2014-12-03 13:15:48 +01: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
Brendan Burns
acf6d82800
Add optional validation to kubecfg/kubectl.
2014-11-24 22:25:22 -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
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
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
72c922668f
Improve error reporting
2014-11-12 15:22:09 -08: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
0b924ed9d9
Add events to kubectl (still need search function)
2014-11-05 13:59:32 -08:00
Clayton Coleman
a8ccb0f99f
Display an external version of the object for --output
...
Use the version of the API the RESTMapper prefers (currently)
2014-11-04 10:44:56 -05:00
Clayton Coleman
e46adc4cd0
kubectl should error when namespace doesn't match file for update
...
A user who runs `kubectl update -f foo.json` where foo.json is a
resource in a namespace that does not match $(kubectl namespace)
may not intend to update the resource in that other namespace.
For now, return an error when the user does not explicitly set
the namespace via the CLI:
# foo.json in 'one', current is 'two'
$ kubectl update -f foo.json # FAILS
$ kubectl update --namespace=one -f foo.json # SUCCEEDS
2014-11-04 10:44:56 -05:00
Clayton Coleman
09cfa364c5
Refactor Get and Describe to allow extension of types
...
Get should use ResourceMapper, allow Printer to be abstracted,
and extract Describe as *Describer types.
2014-11-04 10:44:56 -05:00
Clayton Coleman
39882a3555
Allow Create/Update/Delete kubectl commands to handle arbitrary objects
...
* Ensure kubectl uses abstractions from other parts of Kube
* Begin adding abstractions that allow arbitrary objects
* Refactor "update" to more closely match allowed behavior
2014-11-04 10:44:56 -05:00
Michal Fojtik
c8f88a3ae8
Add support for creating a bulk of resources via kubectl apply
2014-11-04 14:52:29 +01:00
Brendan Burns
b0c5d3b022
Add support for a 'log' command to kubectl.
2014-11-02 19:54:19 -08:00
derekwaynecarr
5a7aced7b0
Kubectl namespace support
...
Add unit test for load namespace info
Different message on display of namespace versus setting namespace
2014-10-30 11:05:30 -04:00
Daniel Smith
6ef6ff5bc5
Merge pull request #1893 from crhym3/fix-1149-req-body
...
Replace custom ProxyServer (kubecfg/kubectl -proxy) with httputil.ReverseProxy
2014-10-22 15:29:59 -07:00
alex
fb2b15a797
Replace custom proxy with httputil.ReverseProxy for kubecfg/kubectl.
...
Fixes #1149 - kubecfg proxy "411 Length Required" error on POST/PUT.
2014-10-21 18:52:18 +01:00
Eric Tune
21dae01005
Handle auth files with BearerToken sections.
2014-10-20 17:02:03 -07:00
Sam Ghods
4b220f8b0a
kubectl: kubecfg rewrite for better modularity and improved UX
2014-10-15 15:29:54 -07:00