1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-20 11:00:25 +00:00

Adjust output to match request in issue, update tests to match reality

This commit is contained in:
Chad Roberts
2025-01-29 07:09:36 -05:00
parent b7afe7bdb3
commit cd74bc3deb
3 changed files with 17 additions and 16 deletions

View File

@@ -305,11 +305,11 @@ func Test_byID(t *testing.T) {
Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
},
"binaryData": {
Type: "map[string]string",
Type: "map[string]",
Description: "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.",
},
"data": {
Type: "map[string]string",
Type: "map[string]",
Description: "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.",
},
"immutable": {
@@ -321,7 +321,7 @@ func Test_byID(t *testing.T) {
"io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": {
ResourceFields: map[string]definitionField{
"annotations": {
Type: "map[string]string",
Type: "map[string]",
Description: "annotations of the resource",
},
"name": {
@@ -390,7 +390,7 @@ func Test_byID(t *testing.T) {
"io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": {
ResourceFields: map[string]definitionField{
"annotations": {
Type: "map[string]string",
Type: "map[string]",
Description: "annotations of the resource",
},
"name": {
@@ -439,7 +439,7 @@ func Test_byID(t *testing.T) {
"io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": {
ResourceFields: map[string]definitionField{
"annotations": {
Type: "map[string]string",
Type: "map[string]",
Description: "annotations of the resource",
},
"name": {
@@ -512,7 +512,7 @@ func Test_byID(t *testing.T) {
"io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": {
ResourceFields: map[string]definitionField{
"annotations": {
Type: "map[string]string",
Type: "map[string]",
Description: "annotations of the resource",
},
"name": {
@@ -560,7 +560,7 @@ func Test_byID(t *testing.T) {
"io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": {
ResourceFields: map[string]definitionField{
"annotations": {
Type: "map[string]string",
Type: "map[string]",
Description: "annotations of the resource",
},
"name": {