kubectl/pkg
CaiyuhangC 1fa4fffb96 Remove the dependency between create namespace command and generators (#96556)
* Remove the dependency between create namespace command and generators

* Update create_namespace.go

format the file

rename "kruntime" package to "runtime"

remove the reliance of generators

replace dynamic client with typed client

rename "options" to "o" in "NewNamespaceOptions" fun for better reading and comparison with other create cmd

remove Namespace and EnforceNamespace from NamespaceOptions

remove Mapper from NamespaceOptions

refactory the "Run" fun

refactory the "Run" fun

Update create_namespace.go and create_namespace_test.go

* Update create_namespace.go and create_namespace_test.go

* fix createNamespace function

* fix createNamespace function

* fix createNamespace function

* remove the wrong comment in NamespaceOptions

* add validate operation for cobra.Command

* add some unit tests

* add some unit tests

* remove the call of Validate() from createNamespace() and update return type of createNamespace()

* update test suite for the new createNamespace()

Kubernetes-commit: 6990d75625b6aaa32c1aa5a99a174775868263bc
2021-02-05 17:33:15 +00:00
..
apply Rename test/data directory to testdata 2019-10-31 13:40:02 -07:00
apps Move pkg/kubectl/apps to staging 2019-07-24 20:02:05 -07:00
cmd Remove the dependency between create namespace command and generators (#96556) 2021-02-05 17:33:15 +00:00
describe fix problem that NewReplicaSet shows <none> when describing deployments 2021-01-06 11:05:31 +08:00
drain add ignore-errors flag, support none break drain in group 2021-01-20 15:02:00 +08:00
explain Improve kubectl explain formatting-preservation 2020-06-05 00:46:51 -04:00
generate Remove dependency of generators from create configmap 2021-01-10 18:47:32 -05:00
generated Add sigs for root folders 2020-08-11 10:35:20 -04:00
metricsutil Sort kubectl top output when --sort-by and --containers are used together 2020-08-06 11:47:09 -04:00
polymorphichelpers Add tests for daemonset view history 2020-09-05 22:10:28 +05:30
proxy Add NewProxyHandler func 2021-01-04 15:58:23 +08:00
rawhttp refactor 2020-01-27 18:19:44 -08:00
scale Support kubectl scale --dry-run=server|client 2020-03-30 17:33:15 -04:00
scheme remove pod presets 2020-08-18 16:31:46 -04:00
util Downward API hugepages 2020-11-06 14:22:53 -05:00
validation Move pkg/kubectl/validation to staging 2019-06-26 12:56:28 -07:00