github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/provisioning/conditions.go (about) 1 package provisioning 2 3 import ( 4 "github.com/kyma-project/kyma-environment-broker/internal" 5 "github.com/kyma-project/kyma-environment-broker/internal/broker" 6 ) 7 8 func WhenBTPOperatorCredentialsProvided(op internal.Operation) bool { 9 return op.ProvisioningParameters.ErsContext.SMOperatorCredentials != nil 10 } 11 12 func SkipForOwnClusterPlan(operation internal.Operation) bool { 13 return !broker.IsOwnClusterPlan(operation.ProvisioningParameters.PlanID) 14 } 15 16 func DoForOwnClusterPlanOnly(operation internal.Operation) bool { 17 return !SkipForOwnClusterPlan(operation) 18 }