David Eads
6fbcbc994f
remove unnecessarily flexibiliy to simplify the resource builder
2018-04-27 09:27:51 -04:00
David Eads
b8177bb9af
tighten .Info for kubectl to avoid unpredictable conversion
2018-04-26 12:47:25 -04:00
David Eads
6900f8856f
rest mappings cannot logically be object converters
2018-04-26 12:47:25 -04:00
David Eads
f01e16bb3e
remove flags deprecated in 1.5
2018-04-19 08:08:44 -04:00
Di Xu
cda7f95d46
flag value bindings for kubectl label/patch/taint/top commands
2018-02-24 16:37:19 +08:00
David Eads
be04e7c1b1
collapse printing paths
2018-02-21 08:15:22 -05:00
David Eads
dd6405681f
cleanup printers some more
2018-02-20 12:59:40 -05:00
juanvallejo
beb5ea641a
remove mapper dependency - PrintSuccess
2018-02-07 10:10:45 -05:00
Di Xu
1c715d51c4
some code change
...
fix wrong required flags
disable the addition of [flags] to the usage, use customized useline
fix function rename
2017-12-25 16:23:38 +08:00
Clayton Coleman
8f4b6c8771
All commands must declare Unstructured or Internal
...
Callers must take a dependency on one or the other set of conversions
and default client behavior. Future changes may add a Versioned() type,
but this is an accurate reflection of current code state.
2017-11-19 20:41:02 -05:00
Kubernetes Submit Queue
fa3047880d
Merge pull request #54867 from juanvallejo/jvallejo/move-print-success-cmdutil-factory
...
Automatic merge from submit-queue (batch tested with PRs 55233, 55927, 55903, 54867, 55940). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md ">here</a>.
move cmd/util/printing.go#PrintSuccess to factory_builder.go
**Release note**:
```release-note
NONE
```
This patch is one in a series of patches that aims to move all
printing functions to the `cmdutil.Factory` in order to make
the factory the one-stop shop for accessing printers in the client.
This PR is related to https://github.com/kubernetes/kubernetes/pull/50113 and aims to break that set of changes
by introducing a portion of them in this commit in order to make
them easier to review.
@fabianofranz @mengqiy @shiywang @seans3
2017-11-18 12:26:15 -08:00
juanvallejo
701d6536a2
move cmd/util/printing.go#PrintSuccess to factory_builder.go
2017-11-15 10:46:39 -05:00
Michael Venezia
53b3b5b6c5
Adding documentation on using domains and / in taint/label keys; Also clarified both key and value to labels can be 63 characters long
2017-11-07 20:09:52 -05:00
Di Xu
057b7bf767
rename selector to labelSelector
2017-11-06 14:30:20 +08:00
juanvallejo
90d76adb4b
add Local and Unstructured builder attributes
...
Moves DisabledClientMapperForMapping wrapper to new Local attribute.
Removes Factory#NewUnstructuredBuilder in favor of new Unstructured
builder attribute.
2017-09-05 11:57:00 -04:00
zhengjiajin
43e3044b73
fix issue( #49883 ) Add selector example
2017-08-17 20:27:11 +08:00
ymqytw
b776df8a20
move i18n to kubectl/util
2017-08-16 12:27:36 -07:00
tcharding
be04ad4aca
Correct case for starting character of option string
2017-08-11 07:24:08 +10:00
ravisantoshgudimetla
9dbf1a5644
Refactoring taints to reduce sprawl
2017-07-19 18:36:07 -04:00
Alexander Campbell
6fd36c10ad
kubectl/cmd: many small refactors
...
* Rename variables and functions to match Go convention.
For example, UsageError --> UsageErrorf.
* Remove redundant or unreachable code.
* Simplify some utility functions (no functionality changes).
* Fix hanging 'if { return } else { return }' constructs.
* Fix several incorrect printf verbs.
2017-06-27 16:25:20 -07:00
Alexander Campbell
ef9ae61240
kubectl: simplify code with help of linter
2017-06-23 09:49:30 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
juanvallejo
d036686185
fix --local flag for `kubectl set` commands
2017-06-13 12:57:05 -04:00
Kubernetes Submit Queue
cc1f9f7254
Merge pull request #44740 from ravisantoshgudimetla/kubectl_taints_label_selector#44522
...
Automatic merge from submit-queue
Kubectl taint node based on label selector
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #44522
**Release note**:
```
Taints the node based on label selector
```
2017-05-05 09:25:02 -07:00
ravisantoshgudimetla
081ba02fa5
Changes to kubectl taint to respect selector flag
2017-04-28 10:28:26 -04:00
bruceauyeung
ab4029c85b
Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn>
...
rename variables to make sure that they conform to golang variable name convention
2017-04-25 15:07:01 +08:00
ravisantoshgudimetla
5bdf79baf2
Small changes suggested by reviewers for comments and rebase
2017-04-17 12:57:27 -04:00
Chao Xu
d4850b6c2b
move pkg/api/v1/helpers.go to subpackage
2017-04-14 14:25:11 -07:00
Kubernetes Submit Queue
19d722671b
Merge pull request #43297 from mvdan/kubectl-params
...
Automatic merge from submit-queue
kubectl/cmd: remove a bunch of unused parameters
Found with github.com/mvdan/unparam.
**Release note**: NONE
2017-04-13 04:07:21 -07:00
Brendan Burns
79f51923d3
Extract a bunch more strings from kubectl
2017-04-06 20:12:50 -07:00
Daniel Martí
810dbc5e98
kubectl/cmd: remove a bunch of unused parameters
...
Found with github.com/mvdan/unparam.
2017-04-04 10:36:30 +01:00
deads2k
8895f314b4
move category expansion out of restmapper
2017-03-27 13:54:05 -04:00
Guangya Liu
ab94015ee8
`kubectl taint` update for `NoExecute`.
2017-03-14 18:24:40 +08:00
Avesh Agarwal
9b640838a5
Change taint/toleration annotations to api fields.
2017-02-22 09:27:42 -05:00
gmarek
e1e4370ecd
Promote taint addition/removal to api/v1/helpers.go
2017-02-16 09:25:27 +01:00
Brendan Burns
d9c4a289a6
Extract strings for translation.
2017-02-06 22:32:01 -08:00
Kevin
36dcb57407
forgiveness library changes
2017-01-31 21:39:17 +08:00
Dr. Stefan Schimanski
d7eb3b6870
pkg/util: move uuid and strategicpatch into k8s.io/apimachinery
2017-01-25 19:45:09 +01:00
Jordan Liggitt
e49554501f
Use versioned Taint/Toleration/AllowPods objects when marshalling
2017-01-18 12:52:14 -05:00
Clayton Coleman
bcde05753b
Correct import statements
2017-01-17 16:18:18 -05:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
Clayton Coleman
36acd90aba
Move APIs and core code to use metav1.ObjectMeta
2017-01-17 16:17:18 -05:00
deads2k
26c46971f2
move PatchType to apimachinery
2017-01-17 08:32:05 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
xilabao
a8b15492b4
fix wrong help message for taint
2017-01-04 11:14:25 +08:00
Mike Danese
e225625a80
add a configuration for kubelet to register as a node with taints
...
and deprecate register-schedulable
2016-12-06 10:32:54 -08:00
xilabao
b95dcfb424
update label filter prompt
2016-12-05 11:03:21 +08:00
ymqytw
3cc294b1e0
Revert "support patch list of primitives"
...
This reverts commit 34891ad9f6
.
2016-11-22 21:06:36 -08:00
ymqytw
d248843b65
Revert "try old patch after new patch fails"
...
This reverts commit f32696e734
.
2016-11-22 21:02:30 -08:00