flagutils

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
const (
	InventoryPolicyFlag       = "inventory-policy"
	InventoryPolicyStrict     = "strict"
	InventoryPolicyAdopt      = "adopt"
	InventoryPolicyForceAdopt = "force-adopt"
)

Variables

This section is empty.

Functions

func ConvertInventoryPolicy

func ConvertInventoryPolicy(policy string) (inventory.Policy, error)

func ConvertPropagationPolicy added in v0.26.0

func ConvertPropagationPolicy(propagationPolicy string) (metav1.DeletionPropagation, error)

ConvertPropagationPolicy converts a propagationPolicy described as a string to a DeletionPropagation type that is passed into the Applier.

func PathFromArgs added in v0.25.0

func PathFromArgs(args []string) string

PathFromArgs returns the path which is a positional arg from args list returns "-" if there is length of args is 0, which implies no path is provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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