diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json
index 905cdbbb615..d7a21d27cef 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 a3c5447002c..adce1db0a05 100644
--- a/api/swagger-spec/apps_v1beta1.json
+++ b/api/swagger-spec/apps_v1beta1.json
@@ -4921,6 +4921,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -4928,7 +4929,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 73c4b10aa5f..5b5294c58c0 100644
--- a/api/swagger-spec/batch_v1.json
+++ b/api/swagger-spec/batch_v1.json
@@ -3386,6 +3386,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -3393,7 +3394,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 a1c2278eb8a..c8105c7e9c9 100644
--- a/api/swagger-spec/extensions_v1beta1.json
+++ b/api/swagger-spec/extensions_v1beta1.json
@@ -9940,6 +9940,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -9947,7 +9948,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 0a95ec4c538..0a52a786ccf 100644
--- a/api/swagger-spec/v1.json
+++ b/api/swagger-spec/v1.json
@@ -20872,6 +20872,7 @@
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
+ "singularName",
"namespaced",
"kind",
"verbs"
@@ -20879,7 +20880,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 cb818fa258a..c993a20f793 100755
--- a/docs/api-reference/apps/v1beta1/definitions.html
+++ b/docs/api-reference/apps/v1beta1/definitions.html
@@ -5331,7 +5331,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