Commit Graph

339 Commits

Author SHA1 Message Date
deads2k
19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
kargakis
93dc839b19 Load input object for increased safety 2015-05-08 03:17:54 +02:00
kargakis
c9e79a3c28 Setup generators in factory 2015-05-05 12:00:13 +02: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
a17a26643b Update kube to support new pflag/cobra 2015-04-29 11:26:30 -04:00
kargakis
e6ee32a6c6 Fix getting services in expose cmd 2015-04-28 14:45:05 +03:00
Tim Hockin
6694eff020 Use pflags word separators to make - and _ equiv. 2015-04-27 15:10:52 -07:00
Jeff Lowdermilk
97e4549170 Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
deads2k
de4be5422c change kubeconfig loading order 2015-04-16 13:05:09 -04:00
Dan Mace
bd7b719944 Make default impls private 2015-04-15 16:50:08 -04:00
Dan Mace
312ccad3c1 Use narrowly scoped interfaces for client access
Use custom narrowly scoped interfaces for client access from the
RollingUpdater and Resizer. This allows for more flexible downstream
integration and unit testing without imposing a burden to implement
the entire client.Interface for just a handful of methods.
2015-04-15 14:28:59 -04:00
Dawn Chen
fb25f9e12c Merge pull request #6768 from deads2k/deads-allow-flag-elimination
allow selective removal of kubeconfig override flags
2015-04-13 16:00:23 -07:00
deads2k
e7baa94404 allow selective removal of kubeconfig override flags 2015-04-13 13:14:23 -04:00
kargakis
ae960552c8 Remove deprecated call to ResourceFromArgs
Continuing from #6571
2015-04-11 08:14:25 +02:00
Clayton Coleman
92a68ad7bf The versioned printer should be initialized with the mapping apiversion
VersionedPrinter handles fallback when multiple different APIVersions
are present if multiple arguments are passed (for instance, both Kube
resources at v1beta3 and a third party's API objects which are only
at v1). The cmd PrinterForMapping should always include the current
object's "mapping version" as a fallback in the event the preferred
API version does not map to the actual object.
2015-04-09 15:45:06 -04:00
deads2k
6344cf3c3a refactor to move kubectl.cmd.Factory to kubect/cmd/util 2015-04-07 14:43:50 -04: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
Tim Hockin
186818d787 WIP: Implement multi-port Services 2015-03-30 19:28:11 -07:00
Jeff Lowdermilk
243de3a472 Fix kubectl log for single-container pods 2015-03-27 12:26:00 -07: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
Clayton Coleman
022c103699 Update RollingUpdater to use resource.Builder
Remove last usage of ResourceFromFile
2015-03-20 00:03:54 -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
Jeff Lowdermilk
cd7d78b696 Make kubectl commands return errors and centralize exit handling 2015-03-10 10:19:43 -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
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
fb90b56bf6 Embed VolumeSource in v1beta3 and internal. 2015-03-04 02:25:40 -08:00
Mike Danese
25fac68ec4 validate api version in kubectl --patch and --override. 2015-03-02 13:00:45 -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
Mike Danese
88e1ab3cbe replace pkg/util/merge with evanphx/json-patch 2015-02-23 20:55:30 -08:00
Tim Hockin
607b736a3f Rename volume source types to be consistent. 2015-02-23 12:39:57 -08: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
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
Brendan Burns
f63cf05d21 Add some docs to the template format. 2015-02-12 18:29:11 -08:00
MikeJeffrey
e5459c8802 Clean up kubectl help for auto-gen'd kubectl.md 2015-02-10 12:02:05 -08:00
Jeff Lowdermilk
aff7f63d7f Explicitly send error string to Fatal log 2 2015-02-10 10:02: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