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
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
ymqytw
4487cc5e15
switch some commands to use its own scheme
2017-10-27 18:31:42 -07:00
Solly Ross
eac2049fc9
[client-go] avoid Registry in fake REST client
...
Previously, the fake RESTClient in client-go required a Registry. It
used the Registry to fetch the GroupVersion for the fake client.
However, the way it did so was dubious in some cases (it hard-coded the
default API group in places), and not strictly necssary.
This updates the fake client to just recieve the GroupVersion and
internal group name directly, instead of requiring a Registry, so that
it can be consumed in unit tests where a Registry isn't necessarily
readily available (e.g. elsewhere in client-go).
2017-10-19 11:01:44 -04:00
Dr. Stefan Schimanski
7773a30f67
pkg/api/legacyscheme: fixup imports
2017-10-18 17:23:55 +02:00
Di Xu
be0cadde2e
enforce include-uninitialized in several kubectl commands
2017-08-31 16:30:56 +08:00
deads2k
e91716a2db
orphan when kubectl delete --cascade=false
2017-05-11 09:11:07 -04:00
nikhiljindal
20aa573865
Adding a unit test for verifying OrphanDependents in kubectl delete requests
2017-02-23 12:04:13 -08:00
Jordan Liggitt
9013e8a7cf
Test cascading delete without client-side reaper does not GET
2017-01-27 09:18:48 -05:00
Jordan Liggitt
a82c4481f3
Distinguish between client and unstructuredclient in fake factory
2017-01-26 19:59:16 -05:00
deads2k
2734f8f892
move dynamic and discovery clients
2017-01-26 08:37:06 -05:00
deads2k
502bfdf944
client/restclient/fake move to client-go
2017-01-25 08:29:48 -05:00
Clayton Coleman
be6d2933df
refactor: Move *Options references to metav1
2017-01-24 13:41:51 -05:00
deads2k
ee6752ef20
find and replace
2017-01-20 08:04:53 -05:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
Kubernetes Submit Queue
6fe8ed738d
Merge pull request #39401 from AdoHe/delete_refactor
...
Automatic merge from submit-queue (batch tested with PRs 39806, 39887, 39401)
refactor delete to remove cobra dependency
FYI. As part of CLI Q1 roadmap, we would like to reduce the dependency of Cobra from actual commands implementations. In this PR, I tried to refactor delete command to achieve this. @kubernetes/sig-cli-misc a quick review is quite welcome, and I am just working on more PRs.
2017-01-16 13:41:36 -08:00
deads2k
77b4d55982
mechanical
2017-01-16 09:35:12 -05:00
AdoHe
d6d82425a4
refactor delete to remove cobra dependency
2017-01-15 15:30:06 +08:00
deads2k
f1176d9c5c
mechanical repercussions
2017-01-13 08:27:14 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Clayton Coleman
3454a8d52c
refactor: update bazel, codec, and gofmt
2016-12-03 19:10:53 -05:00
Clayton Coleman
5df8cc39c9
refactor: generated
2016-12-03 19:10:46 -05:00
Clayton Coleman
7cdb6b169d
When --grace-period=0 is provided, wait for deletion
...
The grace-period is automatically set to 1 unless --force is provided,
and the client waits until the object is deleted.
This preserves backwards compatibility with 1.4 and earlier. It does not
handle scenarios where the object is deleted and a new object is created
with the same name.
2016-11-23 15:02:43 -06:00
deads2k
61673c4b39
make kubectl get generic with respect to objects
2016-11-04 09:04:57 -04:00
deads2k
7fe9bd4c30
make kubectl delete generic
2016-11-04 07:50:31 -04:00
Chao Xu
fd2fdfba89
move client/unversioned/fake to client/restclient/fake
2016-10-29 14:22:02 -07:00
Angus Salkeld
d58554a647
Move the common test functions from cmd_test.go to cmd/testing/fake.go
...
This is so that we can use NewAPIFactory() from cmd/set/*test.go
Up until now we would get a import loop error.
This commit also adds a basic unit test case for cmd/set/set_image.go
2016-10-19 08:53:26 +10:00
deads2k
518d5500c7
remove testapi.Default.GroupVersion
2016-10-07 10:10:54 -04:00
ymqytw
c67a62da49
Fixes #30562 : Refactor kubectl command options to use common struct for common file params
2016-09-12 11:01:37 -07:00
Brendan Burns
d1fa7ff7a8
Address comments.
2016-08-31 21:16:46 -07:00
Wojciech Tyczynski
7403564366
Remove Codec from ContentConfig.
2016-07-08 13:53:09 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
k8s-merge-robot
42a5654383
Merge pull request #25612 from mbohlool/fix_error_msg
...
Automatic merge from submit-queue
Fixed misleading error message when a resource with no selector or na…
Commit:
- Fixed misleading error message when a resource with no selector or name is provided to kubectl delete or label command
This commit fixes #25541
2016-06-29 10:52:25 -07:00
Clayton Coleman
e5fbf86157
Allow StatusErrors to be modified after creation
2016-05-19 09:08:53 -04:00
amehdy
0c5713084b
Fixed misleading error message when a resource with no selector or name is provided to kubectl delete or label command
2016-05-14 02:04:35 -07:00
Wojciech Tyczynski
5d046fed41
Fix tests for renegotiation
2016-05-12 08:21:11 +02:00
Janet Kuo
c1596e6711
Update guestbook examples; replace RC concepts with Deployment
2016-03-30 14:16:52 -07:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
Kris
eacf65ddce
Renaming HTTPClientFunc to CreateHTTPClient
2015-11-11 11:54:58 -08:00
Chao Xu
cbb3deb182
run goimports
2015-10-12 13:31:45 -07:00
Chao Xu
50a2c4c643
grep-sed
2015-10-12 13:31:45 -07:00
Chao Xu
ac5481d089
move client/unversioned/fake.go to its own package
2015-09-11 17:33:54 -07:00
Chao Xu
9fc79e9d99
refactor testapi and test scripts to prepare for multiple API groups.
2015-09-04 18:01:32 -07:00
deads2k
f1b81ff678
bind filenames var instead of looking up
2015-09-01 08:35:57 -04:00
feihujiang
943c57ff4e
Allow delete multiple resources with the same name
2015-08-24 15:14:01 +08:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Eric Paris
7cbb52ce04
Use the pflag StringSlice instead of implementing it ourselves
...
Saves code and makes our code easier to read because we just use normal
[]string instead of custom type.
2015-08-06 19:16:13 -04:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00