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
Brendan Burns
5d4d60783d
Add requirements based scheduling.
2014-10-25 22:08:00 -07:00
derekwaynecarr
580cb5ea4f
Rework client.Interface
2014-10-24 11:47:30 -04:00
Clayton Coleman
644eb70085
Refactor tests to split ObjectMeta from TypeMeta
2014-10-24 11:22:21 -04:00
Clayton Coleman
3df1c2f29d
Use meta.Interface and meta.Accessor
2014-10-23 18:01:25 -04:00
Clayton Coleman
1ccb86c760
Rename methods in api/meta to be cleaner
2014-10-22 22:59:12 -04:00
Clayton Coleman
64d98cba73
Move typemeta.go to api/meta/meta.go
...
Prepares for the meta object to front multiple underlying types
when TypeMeta and ObjectMeta is split in internal and v1beta3, but
combined in v1beta1 and v1beta2
2014-10-22 22:28:06 -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
Clayton Coleman
bb77a5d15f
Rename ID -> Name
2014-10-22 15:00:26 -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
Eric Paris
3cd74bb8a8
Fix typo "replicationContollers"
2014-10-17 15:44:31 -04:00
bgrant0607
641f72096f
Merge pull request #1824 from ghodss/no_headers_kubectl
...
Add --no-headers to kubectl get
2014-10-16 13:37:25 -07:00
Tim Hockin
e907011111
Core support for ip-per-service
2014-10-16 08:36:47 -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