Fix regression 4388

This commit is contained in:
Katrina Verey
2022-02-02 11:45:40 -05:00
parent 01d7fae382
commit a86723c3a3
7 changed files with 110 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ type PrefixTransformerPlugin struct {
FieldSpecs types.FsSlice `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`
}
// TODO: Make this gvk skip list part of the config.
var prefixFieldSpecsToSkip = types.FsSlice{
{Gvk: resid.Gvk{Kind: "CustomResourceDefinition"}},
{Gvk: resid.Gvk{Group: "apiregistration.k8s.io", Kind: "APIService"}},

View File

@@ -19,6 +19,7 @@ type SuffixTransformerPlugin struct {
FieldSpecs types.FsSlice `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`
}
// TODO: Make this gvk skip list part of the config.
var suffixFieldSpecsToSkip = types.FsSlice{
{Gvk: resid.Gvk{Kind: "CustomResourceDefinition"}},
{Gvk: resid.Gvk{Group: "apiregistration.k8s.io", Kind: "APIService"}},