Documentation
¶
Index ¶
- Constants
- func AddDeploymentFlag(cmd *cobra.Command) *string
- func AddPodFlag(cmd *cobra.Command) *string
- func AddSelectorFlag(cmd *cobra.Command) *string
- func GetNamespace(flags *genericclioptions.ConfigFlags) string
- func InVersionRangeInclusive(start, v, stop string) bool
- func ParseVersionString(v string) (int, int, int, error)
- func PodInDeployment(pod apiv1.Pod, deployment string) bool
- func PrintError(e error)
Constants ¶
const ( DefaultIngressDeploymentName = "ingress-nginx-controller" DefaultIngressServiceName = "ingress-nginx-controller" )
The default deployment and service names for ingress-nginx
const IssuePrefix = "https://github.com/kubernetes/ingress-nginx/issues/"
IssuePrefix is the github url that we can append an issue number to to link to it
Variables ¶
This section is empty.
Functions ¶
func AddDeploymentFlag ¶
AddDeploymentFlag adds a --deployment flag to a cobra command
func AddPodFlag ¶
AddPodFlag adds a --pod flag to a cobra command
func AddSelectorFlag ¶
AddSelectorFlag adds a --selector flag to a cobra command
func GetNamespace ¶
func GetNamespace(flags *genericclioptions.ConfigFlags) string
GetNamespace takes a set of kubectl flag values and returns the namespace we should be operating in
func InVersionRangeInclusive ¶
InVersionRangeInclusive checks that the middle version is between the other two versions
func ParseVersionString ¶
ParseVersionString returns the major, minor, and patch numbers of a version string
func PodInDeployment ¶
PodInDeployment returns whether a pod is part of a deployment with the given name a pod is considered to be in {deployment} if it is owned by a replicaset with a name of format {deployment}-otherchars
func PrintError ¶
func PrintError(e error)
PrintError receives an error value and prints it if it exists
Types ¶
This section is empty.