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
Eric Paris
de3864a1c2
bash_completions: Generic function for --filename arguments
...
This generic function adds --filename= arguments to commands, and does
the magic so they get bash completions to find json, yaml, or yml files.
2015-04-14 18:25:52 -04:00
Jeff Lowdermilk
037407f49e
Merge pull request #6791 from eparis/bash-2-kubectl-get-resources
...
bash_completions: annotate kubectl get with resources
2015-04-14 15:02:34 -07:00
Jeff Lowdermilk
4f552053f1
Merge pull request #6789 from eparis/bash-custom-functions
...
Add bash completion custom functions
2015-04-14 11:54:22 -07:00
deads2k
bac5cbbe82
add flattening and minifying options to config view
2015-04-14 10:23:10 -04:00
Eric Paris
c75ecbd8e3
bash_completions: annotate kubectl get with resources which can be 'gotten'
...
A user types:
kubectl get $resource
This will cause the bash completions to suggest the possible objects the
user can ask for. The complete list right now is:
endpoints
event
limitrange
namespace
node
persistentvolume
persistentvolumeclaim
pod
replicationcontroller
resourcequota
secret
service
status
But this list should stay up2date as api objects are added or deleted
2015-04-13 19:11:26 -04:00
Fabio Yeon
e99141de0d
Merge pull request #6729 from smarterclayton/chaosclient
...
Add a new Chaos transport that can simulate network failure and add it to the kubelet
2015-04-13 16:06:53 -07: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
Eric Paris
f6878aed3c
Add bash completion custom functions
...
These functions call out to kubectl to get information about running
resources. They give us completions which are kubernetes aware and thus
obviously better than just cobra subcommands and flags.
2015-04-13 18:49:28 -04:00
Clayton Coleman
ca335d7be9
Add support for chaos to Kubelet and hack/local-up-cluster.sh
2015-04-13 18:21:20 -04: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
Dawn Chen
cf357dfa21
Merge pull request #6701 from dchen1107/podstatus
...
Fix a small regression on api server proxy after switch to v1beta3.
2015-04-10 14:22:54 -07:00
Dawn Chen
c1e13b3431
Fix a small regression on api server proxy after switch to v1beta3.
2015-04-10 13:42:46 -07:00
Daniel Smith
f591873af7
Add DeepCopy! Also-- optimize conversion for []byte
2015-04-10 13:26:46 -07:00
Jeff Lowdermilk
96076eb129
Merge pull request #6585 from deads2k/deads-config-takes-factory
...
make kubectl config behave more expectedly
2015-04-09 14:54:55 -07: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
b2e3f2185e
make kubectl config behave more expectedly
2015-04-09 15:43:57 -04:00
Vish Kannan
2215a64567
Merge pull request #6571 from kargakis/describe-fix
...
describe: Support resource type/name syntax
2015-04-09 10:54:24 -07:00
Jeff Lowdermilk
ca6f1a1bc7
Merge pull request #6476 from deads2k/deads-fix-kubeconfig-serialization
...
fix kubeconfig serialization
2015-04-09 09:41:26 -07:00
nikhiljindal
08d9e244f7
Removing some references to v1beta1 from test code
2015-04-08 17:28:06 -07:00
nikhiljindal
fe60be3179
Moving v1beta1 kubectl examples to v1beta3
2015-04-08 13:08:13 -07:00
kargakis
a8987b661a
describe: Support resource type/name syntax
...
This makes `kubectl describe` resource syntax consistent with `kubectl delete`
2015-04-08 16:03:22 +02:00
gmarek
72182735b9
Remove Node Controllers ability to pull status from Kubelet
2015-04-08 09:44:42 +02:00
Clayton Coleman
bb137f0bba
Merge pull request #6534 from deads2k/deads-kubeconfig-cmd-factory
...
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 17:02:20 -04:00
Clayton Coleman
51db3bd654
Create a new testclient package that can be backed by disk files
...
Standardize how our fakes are used so that a test case can use a
simpler mechanism for providing large, complex data sets, as well
as represent queries over time.
2015-04-07 14:56:15 -04:00
deads2k
6344cf3c3a
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 14:43:50 -04:00
Clayton Coleman
31b7f75c60
Merge pull request #6516 from ncdc/fix-exec-portforward-proxy-resource
...
Fix exec/portforward minions->nodes
2015-04-07 11:47:46 -04:00
Brian Grant
530fe89726
Merge pull request #6411 from gmarek/schedulable
...
Remove Schedulable Condition. Only Unschedulable bit from Spec will be used.
2015-04-07 08:38:30 -07:00
gmarek
ef56dca6b6
Remove ConditionSchedulable
2015-04-07 17:01:07 +02:00
Andy Goldstein
1c92133b77
Fix exec/portforward minions->nodes
...
Exec and port forward weren't working with v1beta3 because they were
proxying minions. Change minions to nodes. This appears to work with
v1beta1 and v1beta2 as well.
2015-04-07 09:48:46 -04:00
Young
ad3712d07c
RunCreate don't need the cmd arg any more
2015-04-07 21:39:48 +08:00
deads2k
06c9dbd32f
add example for default view serialization
2015-04-07 08:07:24 -04:00
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