зеркало из https://github.com/Azure/ARO-RP.git
22 строки
463 B
Go
22 строки
463 B
Go
package cluster
|
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the Apache License 2.0.
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/Azure/ARO-RP/pkg/validate"
|
|
)
|
|
|
|
func (m *manager) validateResources(ctx context.Context) error {
|
|
ocDynamicValidator := validate.NewOpenShiftClusterDynamicValidator(
|
|
m.log, m.env, m.doc.OpenShiftCluster, m.subscriptionDoc, m.fpAuthorizer,
|
|
)
|
|
err := ocDynamicValidator.Dynamic(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return err
|
|
}
|