Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct {
*genericclioptions.ConfigFlags
}
Flags represents the common configuration flags to create a client that interact with a Kubernetes cluster.
func DefaultFlags ¶
func DefaultFlags() *Flags
DefaultFlags returns a new set client configuration flags with default values.
func (*Flags) RegisterCompletionFunc ¶
RegisterCompletionFunc registers the completion functions related to client configuration flags. Copied from the official `kubectl` command source: https://github.com/kubernetes/kubectl/blob/v0.23.1/pkg/cmd/cmd.go#L471-L492
type Interface ¶
type Interface interface { GetRESTMapper() (meta.RESTMapper, error) IsClusterReachable() error HasGroupVersion(version schema.GroupVersion) (bool, error) ListVPAResources(context.Context, ListOptions) ([]*vpav1.VerticalPodAutoscaler, error) GetVPATarget(context.Context, *autoscalingv1.CrossVersionObjectReference, string) (*unstructuredv1.Unstructured, error) ListDependentPods(ctx context.Context, targetMeta metav1.ObjectMeta, labelSelector string) ([]*corev1.Pod, error) }
Interface captures the methods of a client used to interact with a Kubernetes cluster.
Click to show internal directories.
Click to hide internal directories.