github.com/verrazzano/verrazzano@v1.7.0/cluster-operator/controllers/quickcreate/ociocne/checks.go (about) 1 // Copyright (c) 2023, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 package ociocne 5 6 import ( 7 vmcv1alpha1 "github.com/verrazzano/verrazzano/cluster-operator/apis/clusters/v1alpha1" 8 vzstring "github.com/verrazzano/verrazzano/pkg/string" 9 ) 10 11 func isMissingFinalizer(q *vmcv1alpha1.OCNEOCIQuickCreate) bool { 12 return !vzstring.SliceContainsString(q.GetFinalizers(), finalizerKey) 13 } 14 15 func shouldProvision(q *vmcv1alpha1.OCNEOCIQuickCreate) bool { 16 return q.Status.Phase == "" 17 }