deads2k
5c4b6583e4
fix kubectl config view to respect serialization formats
2015-04-07 08:07:24 -04:00
Daniel Smith
44bc29631e
compute query parameter names in the client.
2015-04-06 16:54:26 -07:00
Rohit Jnagal
dbbfac3b54
Merge pull request #6479 from TamerTas/refactor
...
Refactor kubectl/cmd/config/getConfigFromFileOrDie
2015-04-06 13:43:44 -07:00
Tamer Tas
6d84838c0f
Refactor kubectl/cmd/config/getConfigFromFileOrDie
2015-04-06 22:50:07 +03:00
markturansky
95bd170ca2
PV & PVC Client implementation
2015-04-06 08:46:43 -04:00
Yu-Ju Hong
dbd7b186a0
Merge pull request #6338 from smarterclayton/improve_config_error
...
Return a typed error for config validation, and make errors simple
2015-04-03 18:08:15 -07:00
nikhiljindal
f2b72931fc
Updating components to use v1beta3
2015-04-03 15:19:14 -07:00
Quinton Hoole
40e2eae5b4
Retry replication controller rolling updates on version mismatch.
...
When kubectl does rolling updates of replication controllers, retry updates that
fail due to version mismatches (caused by concurrent updates by other clients).
These failed rolling updates were causing intermittent e2e test failures
(e.g. issue 5821)
2015-04-02 17:53:34 -07:00
Sam Ghods
ca18e86877
Make naming of kubectl subcommands consistent
2015-04-02 16:14:53 -07:00
Prashanth B
620af16892
Merge pull request #6097 from derekwaynecarr/limit_range_default_value
...
Limit range supporting a default resource limits value
2015-04-02 16:04:09 -07:00
Jeff Lowdermilk
96bdee8c28
Merge pull request #6312 from brendandburns/services
...
Make expose use introspection to grab the port value if possible.
2015-04-02 13:32:50 -07:00
Brian Grant
414be101b6
Merge pull request #6352 from piosz/api
...
Removed PodStatus.Host
2015-04-02 13:16:24 -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
Brendan Burns
fdf7ccbcfe
Merge pull request #6361 from vmarmol/describe
...
Include ContainerStatus in "describe pod".
2015-04-02 09:23:21 -07:00
Victor Marmol
657bc33500
Include ContainerStatus in "describe pod".
...
Fixes #6076 .
2015-04-02 08:51:41 -07:00
Piotr Szczesniak
5c6439d449
Removed PodStatus.Host
...
Fixes #6165
2015-04-02 16:38:45 +02:00
Clayton Coleman
323a44e54a
Make kubectl errors even more user-friendly
...
Omit glog prefix when v < 2, show multiline errors for configuration
problems, add new generic messages for server errors that hide some
complexity that is not relevant for users.
2015-04-02 01:40:15 -04:00
Rohit Jnagal
e0ff139279
Remove validation for Capacity as it got moved from Spec to Status.
...
Also fix breakage from ExternalID validation: Default ExternalID to node name when not specified.
2015-04-02 00:51:52 +00:00
Alex Robinson
2db427a34a
Merge pull request #6293 from kargakis/delete-short-msg
...
Update delete short usage message
2015-04-01 14:20:14 -07:00
derekwaynecarr
c2b670513c
Introduce concept of a default limit
2015-04-01 16:31:25 -04:00
Deyuan Deng
6bb9701489
Remove Reachable Condition
2015-04-01 13:56:43 -04:00
kargakis
3c09d4d383
Update delete short usage message
2015-04-01 17:14:13 +02:00
Victor Marmol
2de37624e8
Merge pull request #6252 from krousey/string_format_cleanup
...
Fixing a lot of string formatting issues
2015-03-31 16:57:36 -07:00
Kris Rousey
6904c4d585
Fixing a lot of string formatting issues with regards to:
...
* Improper format specifier (e.g. %s for bools or %s for ints)
* More or less parameters than format specifiers
* Not calling a formatting function when it should have (e.g. Error() instead of Errorf())
2015-03-31 16:47:10 -07:00
Brian Grant
3354cffbf0
Merge pull request #6182 from thockin/plural_services_20
...
Implement multi-port Services
2015-03-31 12:55:21 -07:00
Dawn Chen
b8de2f00ce
kubectl describe nodes id shows node components version info.
2015-03-31 09:32:29 -07:00
Tim Hockin
b420871a11
fixes from testing
2015-03-31 09:30:56 -07:00
Tim Hockin
186818d787
WIP: Implement multi-port Services
2015-03-30 19:28:11 -07:00
Victor Marmol
b9499b8c5b
Merge pull request #6126 from ghodss/reduce-some-kubectl-spacing
...
Reduce some tab spacing in kubectl
2015-03-27 18:34:36 -07:00
Sam Ghods
f8d8b09a0a
Reduce some tab spacing in kubectl
2015-03-27 18:05:20 -07:00
Victor Marmol
3bc933645b
Merge pull request #6083 from jlowdermilk/fix-log
...
Fix kubectl log for single-container pods
2015-03-27 17:51:33 -07:00
Tim Hockin
8ae203825b
Implement multi-port endpoints
...
Instead of endpoints being a flat list, it is now a list of "subsets"
where each is a struct of {Addresses, Ports}. To generate the list of
endpoints you need to take union of the Cartesian products of the
subsets. This is compact in the vast majority of cases, yet still
represents named ports and corner cases (e.g. each pod has a different
port number).
This also stores subsets in a deterministic order (sorted by hash) to
avoid spurious updates and comparison problems.
This is a fully compatible change - old objects and clients will
keepworking as long as they don't need the new functionality.
This is the prep for multi-port Services, which will add API to produce
endpoints in this new structure.
2015-03-27 12:36:32 -07:00
Jeff Lowdermilk
243de3a472
Fix kubectl log for single-container pods
2015-03-27 12:26:00 -07:00
Jeff Lowdermilk
803086c2c6
Merge pull request #6034 from thockin/target_port_flag
...
Alias --container-port to --target-port in kubectl
2015-03-27 09:56:33 -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
feihujiang
6b79dcaa4d
add source filename in error message
2015-03-27 09:28:48 +08:00
Tim Hockin
f928f52a4a
Alias --container-port to --target-port in kubectl
2015-03-26 17:59:46 -07:00
Vish Kannan
f2c7dda6da
Merge pull request #6026 from dchen1107/clean
...
kubectl describe nodes id reports related events
2015-03-26 17:39:21 -07:00
Dawn Chen
688363ad53
Kubectl describe nodes id with events.
2015-03-26 16:43:29 -07: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
Jeff Lowdermilk
fc2eb66d9f
Merge pull request #5976 from smarterclayton/support_resource_builder_on_label
...
`kubectl label` should support resource builder
2015-03-26 13:21:56 -07:00
Brian Grant
3b0db99692
Merge pull request #5915 from piosz/api
...
Changed PodInfo to be a list
2015-03-26 12:46:50 -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
1e496696ca
Merge pull request #5903 from smarterclayton/support_resources_by_type_and_name
...
Allow resource.Builder commands to take arguments by type/name
2015-03-26 14:23:03 -04:00
Clayton Coleman
80aa498ba5
Merge pull request #5978 from smarterclayton/order_commands
...
Order the commands in kubectl by importance and function
2015-03-26 14:22:04 -04:00
Clayton Coleman
68c46e7f52
`kubectl label` should support resource builder
...
Allow applying labels to all resources, by existing selector, and
soon allow multiple selection.
2015-03-26 14:01:05 -04:00
gmarek
5a11748018
Move Capacity from NodeSpec to NodeStatus
2015-03-26 15:28:48 +01: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
Piotr Szczesniak
31901ed9d0
Changed PodInfo to be a list
...
This change is to make API consistent with our convention.
Fixes #3622
2015-03-26 10:15:25 +01:00
Clayton Coleman
581d7cd789
Allow resource.Builder commands to take arguments by type/name
...
Will allow xarg behavior to fetch resources across multiple types.
Changes 'create', 'get', 'update', 'stop', and 'delete' to output
<resourceType>/<name>.
2015-03-25 20:39:22 -04:00
Brian Grant
d75291dbe7
Merge pull request #5838 from nikhiljindal/clientTests
...
Updating unit tests so that they pass with v1beta3 api
2015-03-24 17:30:50 -07:00
Deyuan Deng
ca68f4a9d1
Rename ConditionFull->ConditionTrue, ConditionNone->ConditionFalse
2015-03-24 17:28:59 -04:00
nikhiljindal
7e3b7f9673
Updating unit tests so that they pass with v1beta3 api
2015-03-24 12:13:53 -07:00
Brendan Burns
99267d725c
Add validation of args for create.
2015-03-24 11:21:52 -07:00
Piotr Szczesniak
c06eecf7aa
Added colors to output of kubectl clusterinfo
...
Added warning about trailing slashes
Also I ran godeps as described at
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md
This fixes #5698
2015-03-24 11:46:04 +01:00
Deyuan Deng
4939c1137c
Add node describe labels, creationTimestamp
2015-03-23 17:13:45 -04:00
Clayton Coleman
d19aac80ea
Merge pull request #5533 from smarterclayton/burn_yaml_with_fire
...
Burn YAML with fire (kind of)
2015-03-23 13:45:52 -04:00
Saad Ali
f57540c7a0
Merge pull request #5532 from nikhiljindal/event
...
Adding GetFieldSelector() to client.EventInterface
2015-03-20 15:05:14 -07:00
nikhiljindal
1b87060aec
Adding GetFieldSelector() to client.EventInterface
2015-03-20 13:58:23 -07:00
Tim Hockin
4375376e9c
Rename Service.ContainerPort to TargetPort in v1b3
...
Fix all callers and examples. Part of multi-port service cleanup.
2015-03-20 13:50:06 -07:00
Clayton Coleman
6918a4d32e
Replace automatic YAML decoding with opt-in YAML decoding
...
Base codecs no longer automically handle YAML. Instead, clients
must convert to JSON first via yaml.ToJSON and runtime.YAMLDecoder.
2015-03-20 00:03:56 -04:00
Clayton Coleman
022c103699
Update RollingUpdater to use resource.Builder
...
Remove last usage of ResourceFromFile
2015-03-20 00:03:54 -04:00
CJ Cullen
f6d8d5f800
Merge pull request #5522 from fabioy/expose-label.fix
...
Add "--labels" option to the "expose" kubectl command.
2015-03-19 14:40:15 -07: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
Jeff Lowdermilk
faab509a23
Merge pull request #5543 from you-n-g/master
...
add get available versions commmand
2015-03-17 17:34:33 -07:00
Salvatore Dario Minonne
31ddefc347
Finalize fields.Selector
2015-03-17 22:55:43 +01:00
fabioy
401451c510
Add "--labels" option to the "expose" kubectl command.
2015-03-17 09:47:57 -07: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
Wojciech Tyczynski
e6d188fca8
Remove BoundPod structure
2015-03-17 10:27:41 +01:00
Brian Grant
2f9a41b898
Merge pull request #5233 from brendandburns/labels
...
Make label and field selector query strings versionable.
2015-03-16 16:01:37 -07:00
Nikhil Jindal
d1dc17120d
Merge pull request #4880 from smarterclayton/better_describe
...
Make Describe functions available to local objects
2015-03-16 12:19:22 -07:00
Clayton Coleman
85d96f9e7a
Make describe able to be invoked on local resources
...
Support a more flexible access mechanism for getting a describer given
only an object.
2015-03-16 00:09:20 -04:00
Dawn Chen
34e9c82c70
Convert RestartPolicy to string for v1beta3.
...
Fixed #3607 and spiritually support #5475
2015-03-13 18:38:07 -07:00
Ravi Sankar Penta
f6ecec5880
Allow admin user to explicitly unschedule the node
...
Setting Unschedulable on the node will not touch any existing pods
on the node but will block scheduling of new pods on the node.
2015-03-12 14:27:27 -07:00
Brendan Burns
266234f3b9
Make label and field selector query strings versionable.
2015-03-12 12:24:07 -07:00
Satnam Singh
a3fd0a9fd5
Merge pull request #5284 from piosz/guestbook_bug
...
Rewrite guestbook example to use kube-dns instead of host:port
2015-03-11 23:14:18 -07:00
Jeff Lowdermilk
a5746c9a0e
Fix md generation for kubectl docs
...
Display usage string, not long help, as code, remove angle brackets from
output (.md interprets as tags and hides).
2015-03-11 16:42:40 -07:00
Nikhil Jindal
9baa261728
Merge pull request #5219 from jlowdermilk/kubectl-err-handling
...
Make kubectl commands return errors and centralize exit handling
2015-03-11 10:06:52 -07:00
Piotr Szczesniak
4679a37b38
Rewrite guestbook example to use kube-dns instead of host:port
...
This fixes #5091
2015-03-11 09:51:47 +01:00
Jerzy Szczepkowski
110ab79f05
Added support for labels to "kubectl stop".
...
Added support for labels and --all to "kubectl stop". Fixes #5178 .
2015-03-11 09:43:29 +01:00
Brian Grant
827a92316c
Merge pull request #5251 from derekwaynecarr/namespace_lifecycle
...
Add a NamespacePhase to Namespace
2015-03-10 15:21:07 -07:00
derekwaynecarr
7de138a9bb
Add a NamespacePhase to Namespace
2015-03-10 14:11:54 -04:00
Jeff Lowdermilk
cd7d78b696
Make kubectl commands return errors and centralize exit handling
2015-03-10 10:19:43 -07:00
Deyuan Deng
58776da6a4
Add more information to node describe
2015-03-09 18:56:59 -04:00
Daniel Smith
6de2e615cb
Merge pull request #5193 from bprashanth/e2e_stop_controller
...
Properly reap replication controllers in e2e test
2015-03-09 15:38:26 -07:00
Brendan Burns
0ad6e5b48c
Fix the test by using an even more bogus tld.
2015-03-09 14:31:39 -07:00
Alex Mohr
37bfb0d7cf
Merge pull request #5159 from brendandburns/coverage
...
Expand test coverage in master.
2015-03-09 13:26:37 -07:00
Prashanth Balasubramanian
0e484f25b1
Properly reap replication controllers in e2e test
2015-03-09 13:08:12 -07:00
Brendan Burns
7c654a3d1b
Expand test coverage in master, kubectl/cmd/util, pkg/registry/resourcequota, and api/rest.
2015-03-07 15:24:39 -08:00
Brendan Burns
f505a33998
Differentiate between server error messages and client error messages in kubectl
2015-03-07 11:39:23 +01:00
Brendan Burns
2700871b04
Merge pull request #5013 from smarterclayton/misc_fixup
...
Small cleanups to a number of client behaviors
2015-03-06 15:41:34 +01:00
Salvatore Dario Minonne
75f2efb500
moving ParseSelector to Parse for labels only.
2015-03-05 22:39:36 +01:00
Tim Hockin
fdea7252a4
Merge pull request #5001 from brendandburns/api3
...
Embed VolumeSource in v1beta3 and internal.
2015-03-04 09:50:14 -08:00
Eric Tune
662189ebc2
Merge pull request #4967 from jlowdermilk/kubeconfig
...
Simplify generating kubeconfig with embeded cert data
2015-03-04 08:38:43 -08:00
Clayton Coleman
17f7dd8d6d
Only insert outputversion as a preferred mapping type if no error occurs
...
Some types will be looked up based on their internal type, which is passed
directly to RESTMapping(). RESTMapping() will search the entire version
list if no external types are passed, but OutputVersionMapper was bypassing
that because the default type was always present.
Change OutputVersionMapper to collapse empty versions, and when no external
type is specified, try with the preferred version and then try without.
2015-03-04 10:48:05 -05:00
Clayton Coleman
a97635e643
Use IsListType instead of checking ItemPtr in resourcebuilder
2015-03-04 10:48:05 -05:00
Clayton Coleman
b799e8cd3a
Enumerate all versions when looking for an output conversion
...
Ensures that all objects can be printed, even if they don't
match output-version (because they are only implemented in
a newer API version).
2015-03-04 10:48:05 -05:00
Brendan Burns
fb90b56bf6
Embed VolumeSource in v1beta3 and internal.
2015-03-04 02:25:40 -08:00
Jeff Lowdermilk
6e704d174d
Simplify generating kubeconfig with embeded cert data
2015-03-03 12:18:07 -08:00
Satnam Singh
709476cb5b
Merge pull request #4657 from piosz/kubectl
...
Added new command clusterinfo to kubectl
2015-03-03 11:34:17 -08: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
Prashanth Balasubramanian
1970c2d201
Retry resizing replication controllers in kubectl
2015-03-02 20:26:41 -08:00
Mike Danese
25fac68ec4
validate api version in kubectl --patch and --override.
2015-03-02 13:00:45 -08:00
Dawn Chen
93c0052263
Merge pull request #4952 from rjnagal/kubectl
...
Add capacity information to 'kubectl describe minion'
2015-03-02 13:09:52 -08:00
Rohit Jnagal
c63f4635a4
Add capacity information to 'kubectl describe minion'
2015-03-02 19:51:30 +00:00
Tim Hockin
ea548b8260
Rename type Port to ContainerPort
...
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-27 21:05:59 -08:00
Brendan Burns
ceac670eae
Add a human readable created since column to kubectl.
2015-02-26 22:16:23 -08:00
Brian Grant
3f69112e02
Merge pull request #4766 from mikedanese/remove-util-merge
...
Remove pkg/util/merge and replace with evanphx/json-patch
2015-02-25 09:22:01 -08:00
Deyuan Deng
f2698e5905
Merge pull request #4267 from rsokolowski/guestbook-doc
...
Update guestbook example to use replication controller instead of a naked pod.
2015-02-24 15:57:27 -05:00
Jeff Lowdermilk
be124b3cd0
Merge pull request #4786 from GoogleCloudPlatform/revert-4660-deads-make-default-display-yaml
...
Revert "fix kubectl config view to respect serialization formats"
2015-02-24 12:18:31 -08:00
Vish Kannan
68c4ae7f0c
Merge pull request #4776 from brendandburns/log
...
Prompt the user to select a container if they don't provide one
2015-02-24 12:10:18 -08:00
Jeff Lowdermilk
8cfe099af1
Revert "fix kubectl config view to respect serialization formats"
2015-02-24 12:06:24 -08:00
rsokolowski
635281ebe3
Update guestbook example to use replication controller.
2015-02-24 20:21:13 +01:00
Rohit Jnagal
a0722376ee
Merge pull request #4760 from ddysher/kubectl-endpoint-list
...
kubectl print endpoint list
2015-02-24 10:11:23 -08:00
Rohit Jnagal
590a62ffe5
Merge pull request #4767 from mikedanese/kind-to-type
...
Rename {Node,Pod}ConditionKind -> {Node,Pod}ConditionType
2015-02-24 10:10:57 -08:00
Clayton Coleman
76926ec314
Merge pull request #4660 from deads2k/deads-make-default-display-yaml
...
fix kubectl config view to respect serialization formats
2015-02-24 07:56:57 -08:00
Brendan Burns
eefaafc214
Prompt the user to select a container if they don't provide one
...
and we can't infer it.
2015-02-24 06:50:22 -08:00
deads2k
6358bf2e30
add example for default view serialization
2015-02-24 08:54:03 -05:00
Mike Danese
5267127af1
api: rename conditionkind -> conditiontype
2015-02-23 22:13:21 -08:00
Mike Danese
88e1ab3cbe
replace pkg/util/merge with evanphx/json-patch
2015-02-23 20:55:30 -08:00
Deyuan Deng
515314fb8a
Fix kubectl print endpoint list
2015-02-23 21:20:10 -05:00
Daniel Smith
650f6cb826
Revert "Multi-port Endpoints"
2015-02-23 13:53:21 -08:00
Tim Hockin
eed36455a7
Merge pull request #4653 from thockin/secret_fixups
...
Secrets fixups
2015-02-23 13:49:19 -08:00
Daniel Smith
502f040129
Merge pull request #4712 from thockin/plural_30_endpoints
...
Multi-port Endpoints
2015-02-23 13:48:37 -08:00
Tim Hockin
607b736a3f
Rename volume source types to be consistent.
2015-02-23 12:39:57 -08:00
Rohit Jnagal
28dd73dd8c
Merge pull request #4667 from endocode/kbeecher/multi-resource
...
Adds support for multiple resources to kubectl
2015-02-23 10:29:32 -08:00
Rohit Jnagal
33855c2286
Merge pull request #4696 from kazegusuri/rollingupdate-namespace-aware
...
use default namespace to do rollingupdate
2015-02-23 10:15:03 -08:00
Rohit Jnagal
efc4db280d
Merge pull request #4703 from smarterclayton/describe_portal_on_service
...
Add PortalIP to Service describe
2015-02-23 10:07:51 -08:00
Victor Marmol
3bfc07fcd3
Merge pull request #4697 from ddysher/node-describe-pod
...
Add pod name to node describe
2015-02-23 08:21:56 -08:00
Victor Marmol
bc564576cf
Merge pull request #4704 from smarterclayton/add_svc_shorthand
...
'svc' is a much clearer shorthand for "Service" than "se"
2015-02-23 08:21:40 -08:00
Tim Hockin
160f288832
Implement multi-port Endpoints
...
This is a part of multi-port services.
2015-02-22 09:35:12 -08:00
Tim Hockin
e0fd83096c
Rename type Port to ContainerPort
...
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-21 22:26:38 -08:00
Clayton Coleman
36f19f77ec
Add PortalIP to Service describe
2015-02-22 01:07:33 -05:00
Clayton Coleman
a8ba77f23b
Remove unused flag helpers
2015-02-21 18:25:55 -05:00
Clayton Coleman
35cc1b0c15
Mark old kubectl/resource.go methods as deprecated
...
Every command should use resource.Builder instead to have consistent
behavior.
2015-02-21 18:22:07 -05:00
Clayton Coleman
09dcec57fb
'svc' is a much clearer shorthand for "Service" than "se"
2015-02-21 18:17:52 -05:00
Deyuan Deng
aec068f7ef
Add pod name to node describe
2015-02-21 12:07:09 -05:00
Masahiro Sano
5c1c84f6c0
use default namespace to do rollingupdate
2015-02-21 20:22:26 +09:00
Brendan Burns
86a0193f51
Merge pull request #4311 from kazegusuri/update_nil_label
...
kubectl label command crashes when a resource has no labels
2015-02-20 15:52:05 -08:00
Brendan Burns
9829128a75
Merge pull request #4580 from thockin/plural_20_endpoints
...
Part 2 of plural ports: make endpoints a struct
2015-02-20 15:42:19 -08:00
Eric Paris
d508395828
Change all cobra commands to use the example section
...
This will output the examples in their own section, rather than as part
of the 'long' synposis.
2015-02-20 16:41:31 -05:00
deads2k
2b25c48b1f
fix kubectl config view to respect serialization formats
2015-02-20 14:28:23 -05:00
Satnam Singh
1704319edb
Merge pull request #4662 from deads2k/deads-global-local-override-merge
...
prevent default merging when specifying a specific kubeconfig for config view
2015-02-20 09:51:44 -08:00
Karl Beecher
ecbb91cc08
Adds support for multiple resources to kubectl
...
You can specify multiple resources by name when using the delete, get
and stop commands.
2015-02-20 16:18:57 +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
deads2k
885d88f274
prevent default merging when specifying a specific kubeconfig for config view
2015-02-20 09:27:34 -05:00
Jordan Liggitt
abb38cf793
Let .kubeconfig populate ca/cert/key data, and basic-auth username/password in client configs
2015-02-19 11:29:42 -05:00
Tim Hockin
ae0062d001
Part 2 of plural ports: make endpoints a struct
...
Includes conversions for v1b[12] and tests and fixups for call sites.
2015-02-18 19:54:15 -08:00
Paul Morie
fb001ada21
Secret API resource
2015-02-18 11:54:56 -05:00
Brendan Burns
62c4187e78
Fix rolling update if namespace is empty.
2015-02-17 20:16:49 -08:00
Jeff Lowdermilk
b786c116b6
Make kubectl stop take -f flag (for filename|url|directory)
2015-02-17 11:27:47 -08:00
Brian Grant
e1b07efd36
Merge pull request #4450 from mikedanese/update-fix
...
fix error where we can't use kubectl update patch
2015-02-17 09:58:18 -08:00
Alex Robinson
962b7b4295
Merge pull request #4448 from mikedanese/merge-patch
...
Fix --override and --patch flags in kubectl
2015-02-17 09:44:51 -08:00
Brian Grant
876d651737
Merge pull request #4395 from smarterclayton/split_naming
...
Fix cross-namespace LIST and WATCH
2015-02-17 09:40:09 -08:00
Clayton Coleman
0e07e61a53
Merge pull request #4381 from sdminonne/bug_fix
...
kubectl delete resource : remove all resources
2015-02-17 12:25:56 -05:00
Mike Danese
a4eca69e6c
added previously failing unit test and fix using pkg/util/merge.go instead of mergo to apply patch.
2015-02-17 07:43:21 -08:00
Clayton Coleman
3e2e4714a2
Always set ?namespace in query if specified
...
Revise our code to only call Request.Namespace() if a namespace
*should* be present. For root scoped resources, namespace should
be ignored. For namespaced resources, it is an error to have
Namespace=="".
2015-02-16 00:23:38 -05:00
Mike Danese
9f9153256d
fix error where we can't use patch and add cmd-test for patch and file
...
update
2015-02-15 10:43:35 -08:00
Jeff Lowdermilk
b23230e616
Merge pull request #4296 from deads2k/deads-allow-dots
...
allow dots in config set
2015-02-13 12:27:36 -08:00
deads2k
941461044b
guard against unexpected type during config manipulation
2015-02-13 13:15:47 -05:00
deads2k
2dcaab75f5
allow dots in config set
2015-02-13 13:11:42 -05:00
Salvatore Dario Minonne
fda17c1b7a
kubectl delete resource : remove all resources
2015-02-13 18:25:41 +01:00
Brendan Burns
f63cf05d21
Add some docs to the template format.
2015-02-12 18:29:11 -08:00
MikeJeffrey
ca1e9f8061
Comments go above the sample line in kubectl docs.
2015-02-12 15:49:25 -08:00
Clayton Coleman
0b3162b3f4
Merge pull request #4306 from saad-ali/eventCompression1
...
Compress recurring events in to a single event to optimize etcd storage
2015-02-12 16:59:19 -05:00
saadali
033577efa2
Optimize etcd storage by compressing recurring events in to a single event
2015-02-11 22:57:44 -08:00
Victor Marmol
d158bbd62a
Print client version before evaluating server's.
...
This will allow the client version to be printed even if the server
version is not available.
Fixes #4098 .
2015-02-11 17:11:25 -08:00
Victor Marmol
6a80553d7b
Don't include port in config when not specified.
...
When no port is specified the flag default of "-1" is taken.
Fixes #4305
2015-02-11 13:20:51 -08:00
Jeff Lowdermilk
8276a9e03d
Merge pull request #4295 from MikeJeffrey/kubectldocs
...
Clean up kubectl help for auto-gen'd kubectl.md
2015-02-11 09:41:30 -08:00
Masahiro Sano
a841b91aed
allocate map if Labels is not initialized
2015-02-11 20:05:41 +09:00
Mike Danese
dac5e9b4d0
add NodeCondition and PodCondition to kubectl describe node/pod
2015-02-10 14:17:31 -08:00
MikeJeffrey
e5459c8802
Clean up kubectl help for auto-gen'd kubectl.md
2015-02-10 12:02:05 -08:00
Clayton Coleman
dce4cd8b1d
Merge pull request #3613 from derekwaynecarr/namespace_as_kind
...
Namespace as kind
2015-02-10 14:49:58 -05:00
roberthbailey
3f90de3f80
Merge pull request #4289 from jlowdermilk/cleanup
...
Explicitly send error string to Fatal log 2
2015-02-10 11:37:26 -08:00
roberthbailey
ef71b43056
Merge pull request #4281 from brendandburns/fixer
...
Add some error checking to prevent obscure failures.
2015-02-10 11:22:58 -08:00
Jeff Lowdermilk
96c9a15ed5
Merge pull request #4279 from jimmidyson/proxy-tweaks
...
Configurable API prefix for kubectl proxy
2015-02-10 11:21:22 -08:00
Jeff Lowdermilk
aff7f63d7f
Explicitly send error string to Fatal log 2
2015-02-10 10:02:16 -08: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
derekwaynecarr
0bd0e12bbc
Add support for Namespace as Kind
...
Add example for using namespaces
2015-02-10 09:50:50 -05:00
Brendan Burns
e7b11d09de
Add some error checking to prevent obscure failures.
2015-02-10 06:32:26 -08:00
Jimmi Dyson
f4a9b62d06
Configurable API prefix for kubectl proxy
2015-02-10 13:58:46 +00:00
Brendan Burns
ac35aa5e32
Add a label command.
2015-02-09 20:09:02 -08:00
Jeff Lowdermilk
6021dcba30
Merge pull request #4213 from smarterclayton/use_name_from_server
...
Use name from server when displaying create/update
2015-02-09 09:41:20 -08:00
Clayton Coleman
52c6c60b15
Use name from server when displaying create/update
...
Allows generated names from files to be displayed so users can
interact with them.
2015-02-08 21:40:47 -05:00
saadali
79cbcf918e
Modify Event struct to allow compressing multiple recurring events in to a single event.
...
# *** ERROR: *** Some API files are missing the required field descriptions
# Add description tags to all non-inline fields in the following files:
# pkg/api/v1beta1/types.go
# pkg/api/v1beta2/types.go
#
# Your commit will be aborted unless you fix these.
# COMMIT_BLOCKED_ON_DESCRIPTION
2015-02-05 21:50:29 -08:00
Brian Grant
d2feaade9e
Merge pull request #4195 from smarterclayton/add_endpoints_to_service
...
Kubectl should be able to display endpoints directly and for service
2015-02-05 17:22:34 -08:00
Clayton Coleman
698e8dd06f
Kubectl should be able to display endpoints directly and for service
...
kubectl get endpoints <servicename>
kubectl describe service <servicename>
should have printers for endpoints
2015-02-05 18:46:09 -05:00
Jeff Lowdermilk
5a702ad123
Allow --output formatting of kubectl config view, make merge default
2015-02-05 10:44:16 -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
42fec8ec4e
Merge pull request #4110 from jimmidyson/proxy-tweaks
...
kubectl proxy: make static prefix configurable
2015-02-05 07:08:07 -08:00
Nikhil Jindal
63c07ad58b
Merge pull request #4129 from smarterclayton/add_user_agent
...
Add user agent string to all client requests
2015-02-04 15:05:31 -08:00
Clayton Coleman
0307d7ba98
Set a default user agent on all client.Client calls
...
Form:
kube-controller-manager/v0.10.0 (linux/amd64) kubernetes/550b98e
<basename(os.Argv)>/<gitVersion> (<GOOS>/<GOARCH>) kubernetes/<shortGitCommit>
Can be set by other clients
2015-02-04 17:45:53 -05:00
Tim Hockin
e6e67e2662
Merge pull request #4124 from brendandburns/e2e2
...
Fix service generation and add tests I should have included in the first place.
2015-02-04 12:52:51 -08:00
Brendan Burns
fa6ddf13e5
Fix service generation and add tests I should have included in the first place.
2015-02-04 12:14:53 -08:00
Brian Grant
3f28badae3
Merge pull request #3854 from yujuhong/defaults
...
Migrate API defaulting to a centralized location
2015-02-04 11:41:23 -08:00
Jeff Lowdermilk
6acac8f761
Merge pull request #3754 from deads2k/deads-remove-ns-path
...
remove --ns-path option from .kubeconfig file
2015-02-04 08:10:21 -08:00
Jimmi Dyson
e2baf049c0
kubectl proxy: make static prefix configurable
2015-02-04 15:57:21 +00:00
Jeff Lowdermilk
1f2c907991
Merge pull request #4053 from deads2k/deads-add-envvar-flag
...
add flag to manage $KUBCONFIG files
2015-02-03 14:49:05 -08:00
deads2k
affa85fab0
add flag to manage $KUBECONFIG files
2015-02-03 16:12:02 -05:00
deads2k
bc93de314a
remove --ns-path option from .kubeconfig file, kick tests
2015-02-03 14:22:55 -05: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
Martin Nagy
e18fc8e840
Add TODO comment for kubectl update patching
2015-02-03 13:56:39 +01:00
Yu-Ju Hong
4a72addaeb
Factor out API defaulting from validation logic
...
Currently, the validation logic validates fields in an object and supply default
values wherever applies. This change factors out defaulting to a set of
defaulting callback functions for decoding (see #1502 for more discussion).
* This change is based on pull request 2587.
* Most defaulting has been migrated to defaults.go where the defaulting
functions are added.
* validation_test.go and converter_test.go have been adapted to not testing the
default values.
* Fixed all tests with that create invalid objects with the absence of
defaulting logic.
2015-02-03 00:55:42 -08:00
Clayton Coleman
8b2eeafd49
Merge pull request #3944 from derekwaynecarr/rest_mapper_scope_support
...
Make RESTMapper scope aware, use it to inform kubectl and swagger behavior
2015-02-02 13:13:11 -05:00
Alex Robinson
8fc228700a
Merge pull request #4023 from fabianofranz/master
...
Fix typos
2015-02-02 09:57:38 -08:00
Satnam Singh
61c4a04ad2
Merge pull request #3805 from mnagy/allow_multiple_files_in_update
...
Use new resource builder in kubectl update
2015-02-02 08:40:24 -08:00
fabianofranz
de14a6ff08
Fix typos
2015-02-02 14:25:00 -02:00
derekwaynecarr
0851ca9522
Do not provide a namespace on request url if resource does not require it
2015-02-02 10:26:19 -05:00
derekwaynecarr
a8449732e0
Make the FilterNamespace function the last visitor
2015-02-02 10:26:19 -05:00
derekwaynecarr
4c33e36a88
Plumb restmapper properly through apiserver and tests
2015-02-02 10:26:19 -05:00
derekwaynecarr
f911784c98
Cherry pick test from #3901
2015-02-02 10:26:19 -05:00
derekwaynecarr
71ec444d63
Make a RESTMapper scope aware
2015-02-02 10:26:19 -05:00
Brendan Burns
7e48b26ff5
Address comments, fix tests.
2015-01-30 20:51:40 -08:00
Brian Grant
207d0f5d40
Merge pull request #3878 from thockin/infra_name
...
Use a constant for the pod infra container name
2015-01-30 09:18:00 -08:00
Satnam Singh
a6fd7204b6
Merge pull request #3940 from jlowdermilk/fix-client-for-version
...
Fix client for version
2015-01-30 07:58:13 -08:00
Martin Nagy
364774e7b8
Add tests for the reworked update command
2015-01-30 16:05:20 +01:00
Martin Nagy
b6ddd6548c
Use new resource builder in kubectl update
2015-01-30 16:05:20 +01: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
Tim Hockin
d01ea11a6e
Merge pull request #3856 from smarterclayton/validation_logic_needs_cleanup
...
Validation of ObjectMeta is inconsistently applied
2015-01-29 14:12:44 -08:00
Jeff Lowdermlk
6e98ce34ca
Fix kubectl proxy
...
Port flag was being ignored. Fixed now.
2015-01-28 15:07:00 -08:00
derekwaynecarr
829fa69527
Introduce a ResourceQuota object
2015-01-28 15:03:19 -05:00
Tim Hockin
70ab406751
Use a constant for the pod infra container name
...
This is an implementation detail that has leaked out of kubelet. Use a
constant to prevent divergence, for now. Plan to get rid of it.
@dchen1107
2015-01-28 10:13:02 -08:00
Tim Hockin
60119db5d5
More e2e damage from renaming "net" to "POD"
...
This stops the bleeding. Will followup with a constant.
2015-01-28 09:58:19 -08:00
Brian Grant
02717b8ffa
Merge pull request #3846 from ddysher/0-fix-0
...
Remove extra format in kubectl describe
2015-01-27 16:14:22 -08:00
Tim Hockin
a480794efc
Tighten validation of Name and Namespace
2015-01-27 17:04:59 -05:00
derekwaynecarr
759335ab69
Fix gofmt complaint
2015-01-27 16:41:28 -05:00
derekwaynecarr
74f368f50e
Modified LimitRangeItem.Kind to LimitRangeItem.Type, added example files
2015-01-27 16:41:28 -05:00
derekwaynecarr
091cbe5fa2
Add a limit range resource
2015-01-27 16:41:27 -05:00
Deyuan Deng
1330cc340b
Remove extra format in kubectl describe
2015-01-27 15:45:55 -05:00
Brendan Burns
250b9ccd74
Address comments. Rebase.
2015-01-27 10:23:28 -08:00
Brendan Burns
09166f5252
Add a service generator and a command to easily expose services.
2015-01-27 10:06:08 -08:00
Mike Danese
d77743a07c
gimports nits
2015-01-26 22:42:29 -08:00
deads2k
05bc508a13
make all kubectl config set-* easier to use
2015-01-26 15:16:54 -05: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
Filipe Brandenburger
b2aabc540e
Fix kubectl version to match client and server version output
...
Before this fix, the server version was printed from a pointer, making
the Go formatter prefix it with a &.
Before this patch:
$ kubectl version
Client Version: version.Info{Major:"0", Minor:"8+", GitVersion:"v0.8.0-509-g8537a73264b836", GitCommit:"8537a73264b836226cfca745ed37d65916e3b16f", GitTreeState:"clean"}
Server Version: &version.Info{Major:"0", Minor:"8+", GitVersion:"v0.8.0-509-g8537a73264b836", GitCommit:"8537a73264b836226cfca745ed37d65916e3b16f", GitTreeState:"clean"}
After this patch:
$ kubectl version
Client Version: version.Info{Major:"0", Minor:"8+", GitVersion:"v0.8.0-509-g8537a73264b836-dirty", GitCommit:"8537a73264b836226cfca745ed37d65916e3b16f", GitTreeState:"dirty"}
Server Version: version.Info{Major:"0", Minor:"8+", GitVersion:"v0.8.0-509-g8537a73264b836", GitCommit:"8537a73264b836226cfca745ed37d65916e3b16f", GitTreeState:"clean"}
2015-01-21 08:44:53 -08: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
Andrew Seidl
6dee1d7fa4
Fix typos in user-facing strings
2015-01-18 01:32:34 -06:00
Dawn Chen
a71588dc89
Merge pull request #3504 from ddysher/kubectl-node-status
...
Include node status in kubectl get output
2015-01-16 12:01:29 -08:00
Deyuan Deng
616feac25b
Include node status in kubectl get output
2015-01-16 14:28:35 -05:00
Dawn Chen
7b457fd33f
Separate colume for PodIP from kubectl get pods
2015-01-16 11:10:30 -08:00
bgrant0607
52cd620da8
Merge pull request #3537 from brendandburns/cli
...
Add inline JSON patching to kubectl update ...
2015-01-15 17:08:51 -08:00
Brendan Burns
3572ed1828
Addressed comments.
2015-01-15 16:08:12 -08:00
Brendan Burns
ae88521739
Add inline patching to kubectl update.
2015-01-15 16:08:12 -08:00
Brendan Burns
e8489264cf
Addressed comments.
2015-01-15 16:07:56 -08:00
Jeff Lowdermlk
f7b0a92932
Fail rollingupdate if replacement rc schema has same name as existing
2015-01-15 15:52:53 -08:00
Brendan Burns
4209bd4888
Add add a utility for merging JSON fragments, and use it in run-container.
2015-01-15 14:44:26 -08:00
bgrant0607
fc24ca7044
Merge pull request #3524 from jlowdermilk/fix-cmd-printing
...
Fix nil dereference in kubectl run-container
2015-01-15 13:44:26 -08:00
Jeff Lowdermlk
e6e6092904
Fix nil dereference in kubectl run-container
2015-01-15 11:39:50 -08:00
Joe Beda
224ffa4567
Merge pull request #3480 from jbeda/all_pflag
...
Convert all main binaries to pflag library
2015-01-15 11:26:41 -08:00
Joe Beda
1d0b6ee5f5
Fix up logging flags for kubectl.
2015-01-15 09:12:20 -08:00
Anthony Yeh
5090dcbc62
Fix example usage of kubectl resize command.
2015-01-14 23:39:23 -08:00
Jeff Lowdermilk
4cd345b8a6
Merge pull request #3377 from brendandburns/cli
...
Add a resize command to kubectl.
2015-01-14 22:20:18 -08:00
Brendan Burns
d3a07adb38
Add a resize command to kubectl.
2015-01-14 21:36:08 -08:00
saadali
90dfdcecd5
Remove CONDITION from event object completely
...
# *** ERROR: *** Some files have not been gofmt'd. To fix these
# errors, run gofmt -s -w <file>, or cut and paste the following:
# gofmt -s -w pkg/kubecfg/resource_printer.go pkg/proxy/config/config.go pkg/runtime/types.go
#
# Your commit will be aborted unless you override this warning. To
# commit in spite of these format errors, delete the following line:
# COMMIT_BLOCKED_ON_GOFMT
2015-01-14 14:17:16 -08:00
Joe Beda
ddcd2e1d2b
Merge pull request #3463 from jlowdermilk/gendocs
...
Autogenerate markdown docs for kubectl
2015-01-14 13:32:38 -08:00
Jeff Lowdermlk
250c948ae7
Autogenerate markdown docs for kubectl
...
Add test to verify generated docs are up to date.
2015-01-14 13:21:14 -08:00
Daniel Smith
36320f02fb
Merge pull request #3471 from brendandburns/shell
...
Add tests for run command and generate.
2015-01-14 12:39:41 -08:00
bgrant0607
6459b1a1f3
Merge pull request #3468 from smarterclayton/better_log_on_empty_delete
...
Write to STDERR when Delete contains no resources
2015-01-14 11:46:55 -08:00
Clayton Coleman
da2b03d8d8
Write to STDERR when Delete contains no resources
...
Also test that this occurs
2015-01-14 14:10:15 -05:00
Clayton Coleman
6894d4feed
Merge pull request #3460 from mnagy/handle-selector-error
...
Fix panic if selector uses malformed syntax
2015-01-14 13:49:22 -05:00
Zach Loafman
e14d5f3416
Merge pull request #3464 from smarterclayton/fix_invalid_json_in_services.sh
...
Fix e2e invalid JSON, ensure CLI communicates invalid JSON errors effectively
2015-01-14 10:26:34 -08:00
Clayton Coleman
ccdc20d90c
Ignore empty objects from streams and error when nothing passed to create
...
Passing zero objects to create should be an error
2015-01-14 13:12:33 -05:00
bgrant0607
78d18aa70c
Merge pull request #3424 from brendandburns/run
...
Basic "Run" command
2015-01-14 10:08:53 -08:00
Clayton Coleman
31413c8727
Add more tests around JSON/YAML decoding from the CLI
...
Switch the ignore stream errors behavior to print a Warningf on
failure to parse, not v(2)
2015-01-14 12:38:36 -05:00
Martin Nagy
9340781d21
Fix panic if selector uses malformed syntax
2015-01-14 17:13:58 +01:00
Brendan Burns
de886591b5
Add tests for run command and generate.
2015-01-14 07:12:32 -08:00
Clayton Coleman
ec803cb809
Allow resource.Builder to stream YAML from the CLI
...
Add both JSON and YAML STDIN tests in test-cmd
2015-01-14 00:50:13 -05:00
Brendan Burns
1ce6c27f3d
Add an initial run command
2015-01-13 20:00:29 -08:00
Clayton Coleman
30743b8195
The get command should properly handle users providing invalid apiversions
...
Add more guards against bad behavior. A follow up commit will ensure that
when the flags for api-version are specified, they default to the correct
values that client.SetKubernetesDefaults would use.
2015-01-13 18:51:55 -05:00
Clayton Coleman
b5c33e1c8c
Prevent internal conversion in the printer directly (as per implicit contract)
2015-01-13 18:51:33 -05:00
Clayton Coleman
87970bc356
Use the new client.SetKubernetesDefaults methods to properly default config object
2015-01-13 18:50:36 -05:00
bgrant0607
662a72d476
Merge pull request #3198 from smarterclayton/allow_delete_to_span_resources
...
Allow delete to work from directories and multiple sources
2015-01-13 14:41:24 -08:00
deads2k
b51a717f6e
add kubectl config
2015-01-13 16:19:57 -05:00
bgrant0607
de2e298fa9
Merge pull request #3196 from smarterclayton/allow_create_to_span_resources
...
Allow create to handle multiple resources, remove createall
2015-01-13 12:23:50 -08:00
bgrant0607
bb140d636a
Merge pull request #3004 from smarterclayton/allow_get_to_span_resources
...
Allow kubectl get to fetch multiple resource types by label
2015-01-13 11:07:34 -08:00
Eric Tune
e930aa33ac
Merge pull request #3370 from dchen1107/clean
...
Print PodIP along with Pod.Name for kubectl get pod <id>
2015-01-09 15:54:26 -08:00
Dawn Chen
a7ad7f8207
Print PodIP along with Pod.Name for kubectl get pod <id>
2015-01-09 14:18:10 -08:00
Clayton Coleman
a3ff55e478
Allow delete to work from directories, files, multiple resources
...
Simple refactoring reusing the resource builder changes.
2015-01-09 13:31:24 -05:00
Clayton Coleman
d24c5b145e
Allow errors to be ignored by the builder
2015-01-09 13:31:24 -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
Clayton Coleman
a1ee782df5
Use resource package, delete older code
2015-01-09 11:59:11 -05:00
Clayton Coleman
d75a3d5021
Move Resource functionality to its own package
...
Create a unified Builder object for working with files, selectors,
types, and items that makes it easier to get multi-object functionality.
Supports all of the behaviors previously in resource.go, but with
additional flexibility to allow multi-type retrieval and access, directories,
URLs, nested objects, and lists.
2015-01-09 11:59:06 -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
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
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
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