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
bgrant0607
fc0dab630c
Merge pull request #2086 from markturansky/v1beta3_refactor
...
Refactor internal API for Services to match v1beta3
2014-11-04 21:48:02 -08:00
markturansky
bd7643c033
refactor services to v1beta3
2014-11-04 14:23:53 -05: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
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