kubernetes

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(kubeConfig string) (*Client, error)

func (*Client) CordonNode added in v0.0.1

func (c *Client) CordonNode(ctx context.Context, node *v1.Node) (*v1.Node, error)

func (*Client) DeletePod added in v0.0.1

func (c *Client) DeletePod(ctx context.Context, pod v1.Pod, deleteOptions metav1.DeleteOptions) error

func (*Client) Deployments

func (c *Client) Deployments(ctx context.Context) (*appv1.DeploymentList, error)

func (*Client) DetermineNewPod added in v0.0.1

func (c *Client) DetermineNewPod(ctx context.Context, oldPod v1.Pod) (*v1.Pod, error)

func (*Client) Node added in v0.0.1

func (c *Client) Node(ctx context.Context, nodeName string) (*v1.Node, error)

func (*Client) Nodes added in v0.0.3

func (c *Client) Nodes(ctx context.Context, labelSelector fields.Selector) (*v1.NodeList, error)

func (*Client) PatchDeployment added in v0.0.5

func (c *Client) PatchDeployment(ctx context.Context, d *appv1.Deployment, patch map[string]interface{}) error

func (*Client) PatchRollout added in v0.1.0

func (c *Client) PatchRollout(ctx context.Context, r *v1alpha1.Rollout, patch map[string]interface{}) error

func (*Client) PatchStatefulSet added in v0.0.5

func (c *Client) PatchStatefulSet(ctx context.Context, s *appv1.StatefulSet, patch map[string]interface{}) error

func (*Client) PodsOnNode added in v0.0.1

func (c *Client) PodsOnNode(ctx context.Context, nodeName string) (*v1.PodList, error)

func (*Client) Rollouts added in v0.1.0

func (c *Client) Rollouts(ctx context.Context) (*v1alpha1.RolloutList, error)

func (*Client) StatefulSets

func (c *Client) StatefulSets(ctx context.Context) (*appv1.StatefulSetList, error)

func (*Client) UpdateDeployment

func (c *Client) UpdateDeployment(ctx context.Context, d *appv1.Deployment) error

func (*Client) UpdateStatefulSet

func (c *Client) UpdateStatefulSet(ctx context.Context, s *appv1.StatefulSet) error

func (*Client) WaitForPodToBeReady added in v0.0.1

func (c *Client) WaitForPodToBeReady(ctx context.Context, pod *v1.Pod) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL