Documentation
¶
Index ¶
Constants ¶
View Source
const (
DeleteProtectionAnnotation = "syn.tools/protected-delete"
)
Variables ¶
This section is empty.
Functions ¶
func GetDefaultDeletionPolicy ¶
func GetDefaultDeletionPolicy() synv1alpha1.DeletionPolicy
Types ¶
type Context ¶
type Context struct {
Context context.Context
FinalizerName string
Client client.Client
Log logr.Logger
Deleted bool
Reconciler reconcile.Reconciler
CreateSATokenSecret bool
DefaultCreationPolicy synv1alpha1.CreationPolicy
// contains filtered or unexported fields
}
Context contains additional data about the CRD being processed.
type Object ¶
type Object interface {
client.Object
GetGitTemplate() *synv1alpha1.GitRepoTemplate
GroupVersionKind() schema.GroupVersionKind
GetTenantRef() corev1.LocalObjectReference
GetDeletionPolicy() synv1alpha1.DeletionPolicy
GetCreationPolicy() synv1alpha1.CreationPolicy
GetDisplayName() string
SetGitRepoURLAndHostKeys(URL, hostKeys string)
GetMeta() metav1.ObjectMeta
GetSpec() interface{}
GetStatus() interface{}
}
Object defines an interface to extract necessary information from the CRs
type Result ¶
Result indicates whether the current execution should be aborted and if there was an error.
func AddTenantLabel ¶
AddTenantLabel adds the tenant label to an object.
func CheckIfDeleted ¶
func DeepCopyOriginal ¶
Click to show internal directories.
Click to hide internal directories.