diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json
index 0ee974c6df9..9f7bd2cecc1 100644
--- a/api/openapi-spec/swagger.json
+++ b/api/openapi-spec/swagger.json
@@ -36855,6 +36855,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -36865,7 +36866,7 @@
"type": "string"
},
"name": {
- "description": "name is the name of the resource.",
+ "description": "name is the plural name of the resource.",
"type": "string"
},
"namespaced": {
@@ -36879,6 +36880,10 @@
"type": "string"
}
},
+ "singularName": {
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.",
+ "type": "string"
+ },
"verbs": {
"description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)",
"type": "array",
diff --git a/api/swagger-spec/apps_v1beta1.json b/api/swagger-spec/apps_v1beta1.json
index 3a53213acf1..d46666e3218 100644
--- a/api/swagger-spec/apps_v1beta1.json
+++ b/api/swagger-spec/apps_v1beta1.json
@@ -4925,6 +4925,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -4932,7 +4933,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/authentication.k8s.io_v1.json b/api/swagger-spec/authentication.k8s.io_v1.json
index fda24581602..4e69c633769 100644
--- a/api/swagger-spec/authentication.k8s.io_v1.json
+++ b/api/swagger-spec/authentication.k8s.io_v1.json
@@ -303,6 +303,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -310,7 +311,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/authentication.k8s.io_v1beta1.json b/api/swagger-spec/authentication.k8s.io_v1beta1.json
index 064b5ea4460..cdab34ae37f 100644
--- a/api/swagger-spec/authentication.k8s.io_v1beta1.json
+++ b/api/swagger-spec/authentication.k8s.io_v1beta1.json
@@ -303,6 +303,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -310,7 +311,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/authorization.k8s.io_v1.json b/api/swagger-spec/authorization.k8s.io_v1.json
index 02745de2e5d..873d330635b 100644
--- a/api/swagger-spec/authorization.k8s.io_v1.json
+++ b/api/swagger-spec/authorization.k8s.io_v1.json
@@ -516,6 +516,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -523,7 +524,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/authorization.k8s.io_v1beta1.json b/api/swagger-spec/authorization.k8s.io_v1beta1.json
index b94a5b07f84..574ce66b8af 100644
--- a/api/swagger-spec/authorization.k8s.io_v1beta1.json
+++ b/api/swagger-spec/authorization.k8s.io_v1beta1.json
@@ -516,6 +516,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -523,7 +524,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/autoscaling_v1.json b/api/swagger-spec/autoscaling_v1.json
index d136687feff..c7f5beeb84f 100644
--- a/api/swagger-spec/autoscaling_v1.json
+++ b/api/swagger-spec/autoscaling_v1.json
@@ -1464,6 +1464,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -1471,7 +1472,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/autoscaling_v2alpha1.json b/api/swagger-spec/autoscaling_v2alpha1.json
index d9fe1bb2868..bb58aadf8ed 100644
--- a/api/swagger-spec/autoscaling_v2alpha1.json
+++ b/api/swagger-spec/autoscaling_v2alpha1.json
@@ -67,6 +67,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -74,7 +75,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/batch_v1.json b/api/swagger-spec/batch_v1.json
index ed4229ab690..8e1ff0a8cd1 100644
--- a/api/swagger-spec/batch_v1.json
+++ b/api/swagger-spec/batch_v1.json
@@ -3390,6 +3390,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -3397,7 +3398,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/batch_v2alpha1.json b/api/swagger-spec/batch_v2alpha1.json
index 904850abbb9..5cbe13273cf 100644
--- a/api/swagger-spec/batch_v2alpha1.json
+++ b/api/swagger-spec/batch_v2alpha1.json
@@ -67,6 +67,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -74,7 +75,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/certificates.k8s.io_v1beta1.json b/api/swagger-spec/certificates.k8s.io_v1beta1.json
index 64d7e1bbbe1..25c5a41bee0 100644
--- a/api/swagger-spec/certificates.k8s.io_v1beta1.json
+++ b/api/swagger-spec/certificates.k8s.io_v1beta1.json
@@ -1169,6 +1169,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -1176,7 +1177,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/extensions_v1beta1.json b/api/swagger-spec/extensions_v1beta1.json
index 8a83edeaa22..96890ff6db8 100644
--- a/api/swagger-spec/extensions_v1beta1.json
+++ b/api/swagger-spec/extensions_v1beta1.json
@@ -9944,6 +9944,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -9951,7 +9952,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/policy_v1beta1.json b/api/swagger-spec/policy_v1beta1.json
index a7bfcedf389..ac764e8ce14 100644
--- a/api/swagger-spec/policy_v1beta1.json
+++ b/api/swagger-spec/policy_v1beta1.json
@@ -1474,6 +1474,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -1481,7 +1482,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/rbac.authorization.k8s.io_v1alpha1.json b/api/swagger-spec/rbac.authorization.k8s.io_v1alpha1.json
index bb5699c670a..054d65432e2 100644
--- a/api/swagger-spec/rbac.authorization.k8s.io_v1alpha1.json
+++ b/api/swagger-spec/rbac.authorization.k8s.io_v1alpha1.json
@@ -3402,6 +3402,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -3409,7 +3410,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/rbac.authorization.k8s.io_v1beta1.json b/api/swagger-spec/rbac.authorization.k8s.io_v1beta1.json
index dbe707eacf0..bdc327d79e6 100644
--- a/api/swagger-spec/rbac.authorization.k8s.io_v1beta1.json
+++ b/api/swagger-spec/rbac.authorization.k8s.io_v1beta1.json
@@ -3402,6 +3402,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -3409,7 +3410,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/settings.k8s.io_v1alpha1.json b/api/swagger-spec/settings.k8s.io_v1alpha1.json
index 37b849bae11..1379b0dcd08 100644
--- a/api/swagger-spec/settings.k8s.io_v1alpha1.json
+++ b/api/swagger-spec/settings.k8s.io_v1alpha1.json
@@ -2390,6 +2390,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -2397,7 +2398,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/storage.k8s.io_v1.json b/api/swagger-spec/storage.k8s.io_v1.json
index 8a66b591f35..b2275221244 100644
--- a/api/swagger-spec/storage.k8s.io_v1.json
+++ b/api/swagger-spec/storage.k8s.io_v1.json
@@ -987,6 +987,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -994,7 +995,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/storage.k8s.io_v1beta1.json b/api/swagger-spec/storage.k8s.io_v1beta1.json
index ab6b6533804..51ff822111f 100644
--- a/api/swagger-spec/storage.k8s.io_v1beta1.json
+++ b/api/swagger-spec/storage.k8s.io_v1beta1.json
@@ -987,6 +987,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -994,7 +995,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json
index e1dd6d6c530..f3c49d9eab0 100644
--- a/api/swagger-spec/v1.json
+++ b/api/swagger-spec/v1.json
@@ -20876,6 +20876,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -20883,7 +20884,11 @@
"properties": {
"name": {
"type": "string",
- "description": "name is the name of the resource."
+ "description": "name is the plural name of the resource."
+ },
+ "singularName": {
+ "type": "string",
+ "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."
},
"namespaced": {
"type": "boolean",
diff --git a/docs/api-reference/apps/v1beta1/definitions.html b/docs/api-reference/apps/v1beta1/definitions.html
index 1646fe980cc..7cf1b45087e 100755
--- a/docs/api-reference/apps/v1beta1/definitions.html
+++ b/docs/api-reference/apps/v1beta1/definitions.html
@@ -5338,7 +5338,14 @@ Examples:
name
name is the name of the resource.
name is the plural name of the resource.
true
string
singularName
singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.
true
string