Documentation
      ¶
    
    
  
    
  
    Index ¶
- func ApplyLabels(parent client.Object, resource client.Object, opts *LabelOpts)
 - func Complete(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, o Object, ...) error
 - func ComputeReadyCondition(obj conditions.Setter, t ...string)
 - func CreateOrPatch(ctx context.Context, r Reconciler, obj client.Object, ...) error
 - func ExtractLabelSelector(resource client.Object) map[string]string
 - func FilterLabelSelector(labels map[string]string) map[string]string
 - func Finalize(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, ...) (ctrl.Result, error)
 - func GetLabelSelector(parent client.Object, opts *LabelOpts) map[string]string
 - func GetLabels(parent client.Object, opts *LabelOpts) map[string]string
 - func GetResourceName(parent client.Object, suffixes ...string) string
 - func InitKey(data map[string][]byte, key string)
 - func IsDependencyNotReady(o conditions.Getter) bool
 - func IsFinalizing(o client.Object) bool
 - func IsHookJobNotComleted(o conditions.Getter) bool
 - func IsImporting(o conditions.Getter) bool
 - func IsJobNotComleted(o conditions.Getter) bool
 - func LabelOwned(scheme *runtime.Scheme, owner client.Object) (handler.EventHandler, builder.Predicates)
 - func ObserveGenerationChange(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, ...) error
 - func OnInstall(o ObjectVersioned, hook func() error) error
 - func OnUpgrade(o ObjectVersioned, hook func() error) error
 - func Patch(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, ...) error
 - func SetCurrentVersion(o ObjectVersioned)
 - func SetDependencyCondition(to conditions.Setter, dependencies ...Dependency)
 - func SetFinalize(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, ...) error
 - func SetHookJobCondition(to conditions.Setter, jobs ...*batchv1.Job)
 - func SetResourceNamespacedName(parent client.Object, resource client.Object, suffixes ...string)
 - func SetWorkloadCondition(to conditions.Setter, workloads ...client.Object) error
 - func UnsetControllerReference(ctx context.Context, r Reconciler, owner client.Object, ...) error
 - type Dependency
 - type JobManager
 - type LabelOpts
 - type Object
 - type ObjectVersioned
 - type PatchOpts
 - type Reconciler
 - type Result
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complete ¶
func Complete(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, o Object, opts PatchOpts) error
func ComputeReadyCondition ¶
func ComputeReadyCondition(obj conditions.Setter, t ...string)
func CreateOrPatch ¶
func CreateOrPatch(ctx context.Context, r Reconciler, obj client.Object, mutate controllerutil.MutateFn) error
func Finalize ¶
func Finalize(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, o conditions.Setter, finalize func() error) (ctrl.Result, error)
func GetLabelSelector ¶
func IsDependencyNotReady ¶
func IsDependencyNotReady(o conditions.Getter) bool
func IsFinalizing ¶
func IsHookJobNotComleted ¶
func IsHookJobNotComleted(o conditions.Getter) bool
func IsImporting ¶
func IsImporting(o conditions.Getter) bool
func IsJobNotComleted ¶
func IsJobNotComleted(o conditions.Getter) bool
func LabelOwned ¶
func LabelOwned(scheme *runtime.Scheme, owner client.Object) (handler.EventHandler, builder.Predicates)
func ObserveGenerationChange ¶
func ObserveGenerationChange(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, o conditions.Setter) error
func OnInstall ¶
func OnInstall(o ObjectVersioned, hook func() error) error
func OnUpgrade ¶
func OnUpgrade(o ObjectVersioned, hook func() error) error
func Patch ¶
func Patch(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, obj conditions.Setter, opts PatchOpts) error
func SetCurrentVersion ¶
func SetCurrentVersion(o ObjectVersioned)
func SetDependencyCondition ¶
func SetDependencyCondition(to conditions.Setter, dependencies ...Dependency)
func SetFinalize ¶
func SetFinalize(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, o conditions.Setter) error
func SetHookJobCondition ¶
func SetHookJobCondition(to conditions.Setter, jobs ...*batchv1.Job)
func SetWorkloadCondition ¶ added in v1.0.0
func SetWorkloadCondition(to conditions.Setter, workloads ...client.Object) error
Types ¶
type Dependency ¶
type Dependency interface {
	// client.Object
	conditions.Setter
}
    type JobManager ¶
func NewJobManager ¶
func NewJobManager(reconciler Reconciler, object conditions.Setter, patcher *patch.SerialPatcher) JobManager
type Object ¶
type Object interface {
	conditions.Setter
	// version.Object
	GetSuspend() bool
	SetSuspend(bool)
}
    type ObjectVersioned ¶
type Reconciler ¶
type Result ¶
type Result struct {
	// contains filtered or unexported fields
}
    func Initialize ¶
func Initialize(ctx context.Context, r Reconciler, req ctrl.Request, o Object) (*patch.SerialPatcher, *Result)
 Click to show internal directories. 
   Click to hide internal directories.