Documentation ¶
Index ¶
Constants ¶
View Source
const ( EvictionSubresource = "pods/eviction" EvictionKind = "Eviction" )
Variables ¶
This section is empty.
Functions ¶
func NewCmdEvict ¶
func NewCmdEvict(streams genericclioptions.IOStreams) *cobra.Command
NewCmdEvict provides a cobra command wrapping EvictOptions
Types ¶
type Client ¶
type Client interface {
EvictPod(ctx context.Context, pod corev1.Pod, opts *metav1.DeleteOptions) error
}
func NewEvictClient ¶
func NewEvictClient(clientset kubernetes.Interface) Client
type ClientV1beta1 ¶
type ClientV1beta1 struct {
// contains filtered or unexported fields
}
func (*ClientV1beta1) EvictPod ¶
func (c *ClientV1beta1) EvictPod(ctx context.Context, pod corev1.Pod, opts *metav1.DeleteOptions) error
type EvictOptions ¶
type EvictOptions struct { GracePeriodSeconds int64 DryRun bool ResourceArg string Selector string Object runtime.Object genericclioptions.IOStreams // contains filtered or unexported fields }
func NewEvictOptions ¶
func NewEvictOptions(streams genericclioptions.IOStreams) *EvictOptions
Click to show internal directories.
Click to hide internal directories.