Antoine Pelisse
f2b7501e42
Mark the kubectl flag as alpha
2019-01-24 16:53:32 -08:00
Antoine Pelisse
68d20c27ab
Merge 'master' into feature-serverside-apply
2019-01-17 22:09:23 -08:00
Jordan Liggitt
ef4983fb52
Update generated files
2019-01-15 13:33:06 -05:00
jennybuckley
7c607d4ff6
Merge remote-tracking branch 'upstream/master' into sync-with-master-6
2019-01-07 10:23:53 -08:00
Jordan Liggitt
fd9e9b01b1
Remove uses of extensions/v1beta1 clients
2018-12-19 11:18:53 -05:00
Antoine Pelisse
e96b1cb5a1
Add --force-conflicts flag to kubectl
...
The flag allows force on apply so that you can re-acquire ownership of
fields when you have a conflict.
2018-12-14 18:33:36 -08:00
Antoine Pelisse
7cbb87802e
Make server side apply flag consistent with dry-run
2018-12-14 18:33:36 -08: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
a24ce24d6d
Merge master into feature-serverside-apply
2018-11-15 13:52:33 -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
Antoine Pelisse
e2c1e1bafc
Merge 'master' into feature-serverside-apply
2018-11-06 14:37:54 -08: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
Antoine Pelisse
9448d85d8b
Merge master into feature-serverside-apply
2018-10-24 16:05: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
Antoine Pelisse
97049da172
Merge master into feature-serverside-apply
2018-07-31 20:52:22 -07: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
jennybuckley
0f9f0907d6
Merge remote-tracking branch 'upstream/master' into sync-with-master-2
2018-07-02 12:47:58 -07: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
Sean Sullivan
d0b874e459
Adds unit test for serverside apply
2018-06-11 18:01:21 -07:00
Sean Sullivan
84995e15c0
Initial version of server-side apply
2018-06-07 15:31:54 -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