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