mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 20:20:27 +00:00
Previously, only a single embedded Kubernetes API version could be specified, resulting in a lack of support for certain GVKs. To address this, the goal is to create and utilize a unified scheme that consolidates Kubernetes API definitions. As a preliminary step, the current method of loading API definitions will be improved.
18 lines
433 B
Go
18 lines
433 B
Go
// Copyright 2026 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package kubernetesapi
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
"sigs.k8s.io/kustomize/kyaml/openapi"
|
|
)
|
|
|
|
func TestLegacyMetadataMatchesBuiltinBundle(t *testing.T) {
|
|
require.Equal(t, openapi.DefaultOpenAPI, DefaultOpenAPI)
|
|
require.Equal(t, openapi.BuiltinSchemaInfo, Info)
|
|
require.Contains(t, OpenAPIMustAsset, DefaultOpenAPI)
|
|
}
|