MCPcopy
hub / github.com/FairwindsOps/polaris / applyTopLevelSchemaChecks

Function applyTopLevelSchemaChecks

pkg/validator/schema.go:285–294  ·  view source on GitHub ↗
(ctx context.Context, conf *config.Configuration, resources *kube.ResourceProvider, res kube.GenericResource, isController bool)

Source from the content-addressed store, hash-verified

283}
284
285func applyTopLevelSchemaChecks(ctx context.Context, conf *config.Configuration, resources *kube.ResourceProvider, res kube.GenericResource, isController bool) (ResultSet, error) {
286 test := schemaTestCase{
287 ResourceProvider: resources,
288 Resource: res,
289 }
290 if isController {
291 test.Target = config.TargetController
292 }
293 return applySchemaChecks(ctx, conf, test)
294}
295
296func applyPodSchemaChecks(ctx context.Context, conf *config.Configuration, resources *kube.ResourceProvider, controller kube.GenericResource) (ResultSet, error) {
297 test := schemaTestCase{

Callers 2

Calls 1

applySchemaChecksFunction · 0.85

Tested by

no test coverage detected