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 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 Object, hook func() error) error
- func OnUpgrade(o Object, hook func() error) error
- func Patch(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, ...) error
- func SetCurrentVersion(o Object)
- 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 UnsetControllerReference(ctx context.Context, r Reconciler, owner client.Object, ...) error
- type Dependency
- type JobManager
- type LabelOpts
- type Object
- 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 Patch ¶
func Patch(ctx context.Context, r Reconciler, patcher *patch.SerialPatcher, obj conditions.Setter, opts PatchOpts) error
func SetCurrentVersion ¶
func SetCurrentVersion(o Object)
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)
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 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.