Moving verifyComponentConfigKindExists to verify internal package to support sparse external package versions
This commit is contained in:
@@ -60,7 +60,6 @@ var testingFuncs = map[string]testingFunc{
|
|||||||
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
|
||||||
@@ -95,6 +94,7 @@ func VerifyInternalTypePackage(pkginfo *ComponentConfigPackage) error {
|
|||||||
}
|
}
|
||||||
extraFns := map[string]testingFunc{
|
extraFns := map[string]testingFunc{
|
||||||
verifyInternalAPIVersion: verifyInternalAPIVersionFunc,
|
verifyInternalAPIVersion: verifyInternalAPIVersionFunc,
|
||||||
|
verifyComponentConfigKindExists: verifyComponentConfigKindExistsFunc,
|
||||||
}
|
}
|
||||||
return runFuncs(scheme, pkginfo, extraFns)
|
return runFuncs(scheme, pkginfo, extraFns)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user