kubectl/pkg/cmd/create
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
..
create.go Add `create ingress` command to `cmd/kubectl` 2020-10-13 16:54:17 +02:00
create_clusterrole.go Warn when creating roles with custom verbs kubectl 2020-06-24 16:20:13 -06:00
create_clusterrole_test.go test: Fix deprecated --dry-run parameter 2020-10-14 10:00:08 +09:00
create_clusterrolebinding.go Remove the dependency between create clusterrolebinding command and generators 2020-05-15 00:07:01 +02:00
create_clusterrolebinding_test.go Fix int->string casts 2020-07-24 11:13:07 -04:00
create_configmap.go Remove dependency of generators from create configmap 2021-01-10 18:47:32 -05:00
create_configmap_test.go Remove dependency of generators from create configmap 2021-01-10 18:47:32 -05:00
create_cronjob.go Fix typos and add comments in functions for `kubectl create` subcommands 2020-12-02 03:35:34 +05:30
create_cronjob_test.go Move pkg/kubectl/cmd/{command} to staging 2019-08-01 11:01:40 -07:00
create_deployment.go Fix typos and add comments in functions for `kubectl create` subcommands 2020-12-02 03:35:34 +05:30
create_deployment_test.go Support kubectl create deployment with replicas 2020-05-29 14:52:07 +08:00
create_ingress.go Fix catch all regex and missing DryRun Options 2020-10-16 15:45:15 -03:00
create_ingress_test.go Fix catch all regex and missing DryRun Options 2020-10-16 15:45:15 -03:00
create_job.go Fix --save-config for kubectl create commands, where it was missing 2020-06-08 14:02:33 +02:00
create_job_test.go Set appropriate owner references when creating a job from cronjob 2020-05-13 12:59:49 +02:00
create_namespace.go Remove the dependency between create namespace command and generators (#96556) 2021-02-05 17:33:15 +00:00
create_namespace_test.go Remove the dependency between create namespace command and generators (#96556) 2021-02-05 17:33:15 +00:00
create_pdb.go Remove the dependency between create poddisruptionbudget and generators 2020-12-22 01:50:52 +05:30
create_pdb_test.go Remove the dependency between create poddisruptionbudget and generators 2020-12-22 01:50:52 +05:30
create_priorityclass.go Fixed typo in create_priorityclass 2021-02-03 21:46:10 -05:00
create_priorityclass_test.go test: Fix deprecated --dry-run parameter 2020-10-14 10:00:08 +09:00
create_quota.go remove debug print from create quota 2020-10-15 11:07:19 -03:00
create_quota_test.go Remove the dependency between create quota command and generators 2020-10-03 03:04:09 +05:30
create_role.go Warn when creating roles with custom verbs kubectl 2020-06-24 16:20:13 -06:00
create_role_test.go test: Fix deprecated --dry-run parameter 2020-10-14 10:00:08 +09:00
create_rolebinding.go Fix typos and add comments in functions for `kubectl create` subcommands 2020-12-02 03:35:34 +05:30
create_rolebinding_test.go Update staging/src/k8s.io/kubectl/pkg/cmd/create/create_rolebinding_test.go 2020-11-04 11:50:03 +01:00
create_secret.go cleanup: use i18n.T on all command descriptions 2020-10-09 13:16:13 +02:00
create_secret_test.go test: kubectl unit tests should be using codecs without conversion 2019-11-03 15:20:10 -05:00
create_service.go remove generator from service in kubectl 2020-10-02 18:16:28 +02:00
create_service_test.go remove generator from service in kubectl 2020-10-02 18:16:28 +02:00
create_serviceaccount.go Remove debug print 2021-01-19 17:21:50 -03:00
create_serviceaccount_test.go remove generator dependency in create service account 2020-11-12 07:21:46 +05:30
create_test.go Rename test/data directory to testdata 2019-10-31 13:40:02 -07:00