mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +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{
|
var testingFuncs = map[string]testingFunc{
|
||||||
verifyTagNaming: verifyTagNamingFunc,
|
verifyTagNaming: verifyTagNamingFunc,
|
||||||
verifyGroupNameSuffix: verifyGroupNameSuffixFunc,
|
verifyGroupNameSuffix: verifyGroupNameSuffixFunc,
|
||||||
verifyGroupNameMatch: verifyGroupNameMatchFunc,
|
verifyGroupNameMatch: verifyGroupNameMatchFunc,
|
||||||
verifyCorrectGroupName: verifyCorrectGroupNameFunc,
|
verifyCorrectGroupName: verifyCorrectGroupNameFunc,
|
||||||
verifyComponentConfigKindExists: verifyComponentConfigKindExistsFunc,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// VerifyExternalTypePackage tests if external component config package is defined correctly
|
// 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)
|
return fmt.Errorf("test setup error: %v", err)
|
||||||
}
|
}
|
||||||
extraFns := map[string]testingFunc{
|
extraFns := map[string]testingFunc{
|
||||||
verifyInternalAPIVersion: verifyInternalAPIVersionFunc,
|
verifyInternalAPIVersion: verifyInternalAPIVersionFunc,
|
||||||
|
verifyComponentConfigKindExists: verifyComponentConfigKindExistsFunc,
|
||||||
}
|
}
|
||||||
return runFuncs(scheme, pkginfo, extraFns)
|
return runFuncs(scheme, pkginfo, extraFns)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user