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() v1alpha1.HookDeletePolicy
Click to show internal directories.
Click to hide internal directories.