github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/update/conditions.go (about) 1 package update 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 RequiresReconcilerUpdate(op internal.Operation) bool { 9 // preview plan does not need any interaction with the Reconciler 10 return op.RequiresReconcilerUpdate && !broker.IsPreviewPlan(op.ProvisioningParameters.PlanID) 11 } 12 13 func ForBTPOperatorCredentialsProvided(op internal.Operation) bool { 14 return op.ProvisioningParameters.ErsContext.SMOperatorCredentials != nil 15 } 16 17 func CheckReconcilerStatus(op internal.Operation) bool { 18 return op.CheckReconcilerStatus 19 } 20 21 func SkipForOwnClusterPlan(op internal.Operation) bool { 22 return !broker.IsOwnClusterPlan(op.ProvisioningParameters.PlanID) 23 } 24 25 func RequiresBTPOperatorCredentials(op internal.Operation) bool { 26 return ForBTPOperatorCredentialsProvided(op) && !broker.IsPreviewPlan(op.ProvisioningParameters.PlanID) 27 }