mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Moving verifyComponentConfigKindExists to verify internal package to support sparse external package versions
This commit is contained in:
parent
9c3cb6e66d
commit
6b4281d167
@ -56,11 +56,10 @@ const (
|
||||
)
|
||||
|
||||
var testingFuncs = map[string]testingFunc{
|
||||
verifyTagNaming: verifyTagNamingFunc,
|
||||
verifyGroupNameSuffix: verifyGroupNameSuffixFunc,
|
||||
verifyGroupNameMatch: verifyGroupNameMatchFunc,
|
||||
verifyCorrectGroupName: verifyCorrectGroupNameFunc,
|
||||
verifyComponentConfigKindExists: verifyComponentConfigKindExistsFunc,
|
||||
verifyTagNaming: verifyTagNamingFunc,
|
||||
verifyGroupNameSuffix: verifyGroupNameSuffixFunc,
|
||||
verifyGroupNameMatch: verifyGroupNameMatchFunc,
|
||||
verifyCorrectGroupName: verifyCorrectGroupNameFunc,
|
||||
}
|
||||
|
||||
// VerifyExternalTypePackage tests if external component config package is defined correctly
|
||||
@ -94,7 +93,8 @@ func VerifyInternalTypePackage(pkginfo *ComponentConfigPackage) error {
|
||||
return fmt.Errorf("test setup error: %v", err)
|
||||
}
|
||||
extraFns := map[string]testingFunc{
|
||||
verifyInternalAPIVersion: verifyInternalAPIVersionFunc,
|
||||
verifyInternalAPIVersion: verifyInternalAPIVersionFunc,
|
||||
verifyComponentConfigKindExists: verifyComponentConfigKindExistsFunc,
|
||||
}
|
||||
return runFuncs(scheme, pkginfo, extraFns)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user