SataQiu
d413e3f18d
fix golint failures of pkg/kubectl/cmd/help pkg/kubectl/cmd/proxy pkg/kubectl/cmd/util/openapi
2019-05-05 23:40:09 +08:00
Maciej Szulik
825cb677bf
Make the error slightly more readable
2019-04-24 15:14:17 +02:00
Clayton Coleman
7f9dfe58f4
Use CodecFactory.WithoutConversion() everywhere
...
Clarifies that requesting no conversion is part of the codec factory, and
future refactors will make the codec factory less opionated about conversion.
2019-04-03 22:19:13 -04:00
Sean Sullivan
d4d6e19f1e
kubectl: removes pkg/version dependency
2019-03-28 16:08:34 -07:00
Antoine Pelisse
eb904d8fa8
Add "fieldManager" to flag to PATCH/CREATE/UPDATE
...
And add a corresponding flag in kubectl (for apply), even though the
value is defaulted in kubectl with "kubectl".
The flag is required for Apply patch-type, and optional for other PATCH,
CREATE and UPDATE (in which case we fallback on the user-agent).
2019-03-08 16:03:03 -08:00
Ilya Dmitrichenko
6d7a9048b6
Move printers & resources packages
...
These packages deserve to live at the top level of `k8s.io/cli-runtime`,
as they are potentially of wider use than genericclioptions.
2019-03-07 23:00:24 +00:00
Jingfang Liu
0c026bfac1
add -k flags to kubectl subcommands
2019-02-25 16:30:27 -08:00
Kubernetes Prow Robot
b50c643be0
Merge pull request #73540 from rlenferink/patch-5
...
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Antoine Pelisse
b55417f429
Plugin FieldManager in CRD handler, change to API
2019-02-04 13:51:49 -08:00
Antoine Pelisse
0e1d50e70f
API Machinery, Kubectl and tests
2019-02-04 13:51:48 -08:00
Roy Lenferink
b43c04452f
Updated OWNERS files to include link to docs
2019-02-04 22:33:12 +01:00
Jordan Liggitt
17aa60686e
Deprecate and remove use of alpha metadata.initializers field, remove IncludeUninitialized options
2019-01-23 16:34:43 -05:00
Jordan Liggitt
ef4983fb52
Update generated files
2019-01-15 13:33:06 -05:00
Jordan Liggitt
fd9e9b01b1
Remove uses of extensions/v1beta1 clients
2018-12-19 11:18:53 -05:00
Yang Li
141d33a2a5
Fix some golint errors for packages in pkg/kubectl/cmd
...
Co-authored-by: Arijit Basu <sayanarijit@gmail.com>
2018-11-22 22:09:08 +08:00
Antoine Pelisse
d3d4d268ac
Add test for CRD server-dry-run and fix bug
...
Add a new test to make sure we can server-dry-run CRDs and also fix a
typo now that we have a test, we could notice that it doesn't work.
2018-11-12 11:06:27 -08:00
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
Sean Sullivan
68cea87cfd
kubectl: remove unnecessary internal->external conversion before PrintObj
2018-11-02 10:03:52 -07:00
Sean Sullivan
1e161bb329
kubectl: change legacyscheme codecs to direct codecs (no conversion)
2018-10-31 15:24:22 -07:00
Clayton Coleman
c21774e9de
Remove defaulting from test that uses kubectl.Scheme
...
The dependency on printers/internalversion was causing kubectl/scheme
to have defaulters registered, which should not be the case. Remove
defaults from the test.
2018-10-16 12:54:41 -04:00
Clayton Coleman
5e905f1f5f
Move versioned generators into their own package
...
pkg/kubectl has a lot of files. Move everything generator related
into pkg/kubectl/generate (generic) or pkg/kubectl/generate/versioned
(type specific).
Move the DescriberFn and GeneratorFn out of kubectl/cmd/util and into
the respective versioned packages, along with tests.
2018-10-16 12:54:40 -04:00
k8s-ci-robot
6fc89ae92d
Merge pull request #69633 from soltysh/move_templates
...
Move pkg/kubectl/cmd/templates -> pkg/kubectl/util/templates
2018-10-12 10:07:07 -07:00
Maciej Szulik
61899e1654
Generated changes
2018-10-11 22:01:06 +02:00
Maciej Szulik
21789b85a6
Move pkg/kubectl/cmd/templates -> pkg/kubectl/util/temlpates
2018-10-11 22:01:03 +02:00
Antoine Pelisse
a0460a5238
dry-run: Create class to find if a type is a CRD
...
Finding out if a Group-version-kind is a CRD is useful, since we want to
detect dry-run ability differently for CRDs.
2018-10-10 08:56:09 -07:00
Antoine Pelisse
ae735282ad
Create a method to check dryRun is supported
...
We don't want to run dryRun requests against servers that don't support
dry-run, since they might ignore the flag and just persist the unwanted
changes.
This creates a new method that checks in the OpenAPI if the dryRun
parameter can be used.
2018-10-10 08:55:33 -07:00
Sean Sullivan
54a73630f1
kubectl factory client access: Moves remaining internal references into callers
2018-10-09 13:34:30 -07:00
k8s-ci-robot
5589c5b3cb
Merge pull request #69401 from seans3/helpers-test-fix
...
kubectl helpers test: remove core dependencies
2018-10-04 10:09:55 -07:00
k8s-ci-robot
7136a3e4b2
Merge pull request #67880 from chenyb4/kubectl_openapi
...
Add kubectl openapi doc import comment
2018-10-04 01:05:15 -07:00
Sean Sullivan
b4d513b1f9
kubectl helpers test: remove core dependencies
2018-10-03 14:15:52 -07:00
Sean Sullivan
9e2b995b54
kubectl validation test: remove unused testapi dependency
2018-10-02 13:09:29 -07:00
Sean Sullivan
fe8a261cd6
Replaces dependency on internal version of resource with external version
2018-09-26 14:56:32 -07:00
k8s-ci-robot
98748d1a1b
Merge pull request #68697 from seans3/editoptions-fix
...
Replace internal version Encoder with external version Encoder
2018-09-25 22:57:35 -07:00
Brad Hoekstra
a596030cb3
Update bazel
2018-09-22 00:10:08 -04:00
Brad Hoekstra
42da186b62
Address review comments
2018-09-21 20:06:32 -04:00
Brad Hoekstra
ac8799a80d
kubelet: Make service environment variables optional
2018-09-17 16:27:36 -04:00
Sean Sullivan
731b985184
Replace internal version Encoder with external version Encoder
2018-09-14 15:24:18 -07:00
Antoine Pelisse
967280b58e
Add --server-dry-run flag to kubectl apply
2018-09-02 13:13:46 -07:00
Yuanbin.Chen
d6482d6fd0
Add kubectl openapi doc import comment
...
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-08-27 15:20:38 +08:00
Maciej Szulik
5b55e1f8ed
Create cli-runtime staging repository
2018-08-21 17:08:30 +02:00
David Eads
8b20ee1d4e
remove internal factory client
2018-08-03 07:47:05 -04:00
juanvallejo
5e79a25e0c
add support for "success" output for edit command
...
Adds support for the "success" printer in the "edit" command, while
ensuring outputFormat constraints for the in-editor printer.
2018-07-16 12:06:32 -04:00
Chao Wang
a87b82c0ad
fix error binding of edit output format
2018-07-16 14:27:20 +08:00
interma
7a130caa33
unify log messages
2018-06-27 15:46:35 +08:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Jeff Grafton
a725660640
Update to gazelle 0.12.0 and run hack/update-bazel.sh
2018-06-22 16:22:18 -07:00
Antoine Pelisse
000510d9b7
Replace openapi Fake with kube-openapi version
...
There are two version of this fake class, let's just use that one
version.
2018-06-01 09:50:05 -07:00
Antoine Pelisse
178a8f87f3
openapi: Remove FakeClient from testing library
...
And make a simplified version of it where needed.
2018-05-31 13:44:08 -07:00
David Eads
207e9d1d90
cleanup some dead kubectl code and narrow scope of helpers
2018-05-29 12:44:53 -04:00
David Eads
c85e69aeb9
remove unnecessary factory delegation for RESTClientGetter method
2018-05-28 15:12:41 +02:00