...

Package flagutils

import "sigs.k8s.io/cli-utils/cmd/flagutils"
Overview
Index

Overview ▾

Constants

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

func ConvertInventoryPolicy

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

func ConvertPropagationPolicy

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

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