Documentation
¶
Index ¶
- type Client
- func (c *Client) Apply(ctx context.Context, manifest []byte) error
- func (c *Client) DeleteNode(ctx context.Context, nodeName string) error
- func (c *Client) DrainNode(ctx context.Context, nodeName string) error
- func (c *Client) LabelNode(ctx context.Context, nodeName string, labels map[string]string) error
- func (c *Client) PatchDeployment(ctx context.Context, namespace, name string, patch []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewFromKubeconfig ¶
func NewFromKubeconfig(ctx context.Context, kubeconfigBytes []byte, serverURL string) (*Client, error)
NewFromKubeconfig creates a Client from raw kubeconfig bytes. If serverURL is non-empty, it overrides the server in the kubeconfig (e.g. "https://localhost:12345" when connecting through a published port).
func (*Client) Apply ¶
Apply parses a multi-document YAML manifest and applies each resource to the cluster using server-side apply.
func (*Client) DeleteNode ¶
DeleteNode removes the node object from Kubernetes.
Click to show internal directories.
Click to hide internal directories.