Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHook

func IsHook(obj *unstructured.Unstructured) bool

func Weight

func Weight(obj *unstructured.Unstructured) int

note that we do not take into account if this is or is not a hook, caller should check

Types

type DeletePolicy

type DeletePolicy string
const (
	BeforeHookCreation DeletePolicy = "before-hook-creation"
	HookSucceeded      DeletePolicy = "hook-succeeded"
	HookFailed         DeletePolicy = "hook-failed"
)

func DeletePolicies

func DeletePolicies(obj *unstructured.Unstructured) []DeletePolicy

func NewDeletePolicy

func NewDeletePolicy(p string) (DeletePolicy, bool)

note that we do not take into account if this is or is not a hook, caller should check

func (DeletePolicy) DeletePolicy

func (p DeletePolicy) DeletePolicy() common.HookDeletePolicy

type Type

type Type string
const (
	PreInstall  Type = "pre-install"
	PreUpgrade  Type = "pre-upgrade"
	PostUpgrade Type = "post-upgrade"
	PostInstall Type = "post-install"
)

func NewType

func NewType(t string) (Type, bool)

func Types

func Types(obj *unstructured.Unstructured) []Type

func (Type) HookType

func (t Type) HookType() common.HookType