mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Moving verifyComponentConfigKindExists to verify internal package to support sparse external package versions
This commit is contained in:
parent
9c3cb6e66d
commit
6b4281d167
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user