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
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
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
192541824f
Check namespace on create of objects like update
...
A user should be allowed to create an object in a non-default namespace
if non is specified in the passed file.
2014-11-04 13:59:23 -05:00
Clayton Coleman
76648ffafb
Like update, allow CLI create to clear resourceVersion
2014-11-04 10:44:56 -05:00
Clayton Coleman
dbf28cbe51
Lock the output format version based on user input
2014-11-04 10:44:56 -05: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
70aa9cc62c
Add --template and --templatefile options for more flexibility
...
Allow directly entered templates for scripting flexibility.
Changes --output=template to mean "string" and --output=templatefile
to mean "from file"
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
Clayton Coleman
91d9a90e4e
Replace use of "id" in strings with "name"
2014-10-22 15:59:12 -04:00
derekwaynecarr
bce1c12e01
Fix typo in kubectl
2014-10-21 15:30:43 -04: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
a9a8c016f7
Add --no-headers to kubectl get
2014-10-15 19:05:36 -07:00
Sam Ghods
4b220f8b0a
kubectl: kubecfg rewrite for better modularity and improved UX
2014-10-15 15:29:54 -07:00