Documentation
¶
Index ¶
- func AddFailureRetryWrapper(config *rest.Config, failureRetryCount int, failureRetryPeriodSeconds int) *rest.Config
- func GetAppInstanceAnnotation(un *unstructured.Unstructured, key string) (string, error)
- func GetAppInstanceLabel(un *unstructured.Unstructured, key string) (string, error)
- func IsValidResourceName(name string) bool
- func ManageServerSideDiffDryRuns(config *rest.Config, onKubectlRun kube.OnKubectlRunFunc) (diff.KubeApplier, func(), error)
- func NewKubeUtil(ctx context.Context, client kubernetes.Interface) *kubeUtil
- func NewKubectl() kube.Kubectl
- func PortForward(targetPort int, namespace string, overrides *clientcmd.ConfigOverrides, ...) (int, error)
- func RemoveAnnotation(un *unstructured.Unstructured, key string) error
- func RemoveLabel(un *unstructured.Unstructured, key string) error
- func SetAppInstanceAnnotation(target *unstructured.Unstructured, key, val string) error
- func SetAppInstanceLabel(target *unstructured.Unstructured, key, val string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFailureRetryWrapper ¶ added in v1.8.8
func AddFailureRetryWrapper(config *rest.Config, failureRetryCount int, failureRetryPeriodSeconds int) *rest.Config
AddFailureRetryWrapper adds a transport wrapper which wraps a function call around each kubernetes request
func GetAppInstanceAnnotation ¶ added in v1.8.8
func GetAppInstanceAnnotation(un *unstructured.Unstructured, key string) (string, error)
GetAppInstanceAnnotation returns the application instance name from annotation
func GetAppInstanceLabel ¶ added in v0.11.0
func GetAppInstanceLabel(un *unstructured.Unstructured, key string) (string, error)
GetAppInstanceLabel returns the application instance name from labels
func IsValidResourceName ¶ added in v1.8.8
IsValidResourceName returns true if given string a valid Kubernetes resource name
func ManageServerSideDiffDryRuns ¶ added in v1.8.8
func ManageServerSideDiffDryRuns(config *rest.Config, onKubectlRun kube.OnKubectlRunFunc) (diff.KubeApplier, func(), error)
func NewKubeUtil ¶ added in v1.8.8
func NewKubeUtil(ctx context.Context, client kubernetes.Interface) *kubeUtil
NewKubeUtil NewUtil returns a new kubeUtil receiver
func NewKubectl ¶ added in v1.8.8
func PortForward ¶ added in v1.8.8
func RemoveAnnotation ¶ added in v1.8.8
func RemoveAnnotation(un *unstructured.Unstructured, key string) error
RemoveAnnotation removes annotation with the specified name
func RemoveLabel ¶ added in v1.8.8
func RemoveLabel(un *unstructured.Unstructured, key string) error
RemoveLabel removes label with the specified name
func SetAppInstanceAnnotation ¶ added in v1.8.8
func SetAppInstanceAnnotation(target *unstructured.Unstructured, key, val string) error
SetAppInstanceAnnotation the recommended app.kubernetes.io/instance annotation against an unstructured object Uses the legacy labeling if environment variable is set
func SetAppInstanceLabel ¶ added in v0.11.0
func SetAppInstanceLabel(target *unstructured.Unstructured, key, val string) error
SetAppInstanceLabel the recommended app.kubernetes.io/instance label against an unstructured object Uses the legacy labeling if environment variable is set
Types ¶
This section is empty.