finalizer

package
Version: v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Name    string
	Enabled bool
}

Manager encapsulates controller logic for dealing with finalizers.

func (*Manager) ShouldFinalize

func (m *Manager) ShouldFinalize(parent metav1.Object) bool

ShouldFinalize returns true if the controller should take action to manage children even though the parent is pending deletion (i.e. finalize).

func (*Manager) SyncObject

SyncObject adds or removes the finalizer on the given object as necessary.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL