diff --git a/pkg/virtual/framework/internalapis/fixtures/workspaces.yaml b/pkg/virtual/framework/internalapis/fixtures/workspaces.yaml index 9434e25112ba..86dacb096cf8 100644 --- a/pkg/virtual/framework/internalapis/fixtures/workspaces.yaml +++ b/pkg/virtual/framework/internalapis/fixtures/workspaces.yaml @@ -79,11 +79,13 @@ spec: items: type: string type: array + x-kubernetes-list-type: atomic required: - key - operator type: object type: array + x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string diff --git a/pkg/virtual/framework/internalapis/import_test.go b/pkg/virtual/framework/internalapis/import_test.go index 98f7a4c2a6f8..2457eebc5573 100644 --- a/pkg/virtual/framework/internalapis/import_test.go +++ b/pkg/virtual/framework/internalapis/import_test.go @@ -91,6 +91,6 @@ func TestImportInternalAPIs(t *testing.T) { require.NoError(t, err) actualContent, err := yaml.Marshal(schema) require.NoError(t, err) - require.Empty(t, cmp.Diff(strings.Split(string(expectedContent), "\n"), strings.Split(string(actualContent), "\n"))) + require.Emptyf(t, cmp.Diff(strings.Split(string(expectedContent), "\n"), strings.Split(string(actualContent), "\n")), "%s was not identical to the expected content", schema.Name) } }