k8s

package
v0.0.0-...-d3c6771 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationDeploymentRevision = "deployment.kubernetes.io/revision"
)

Variables

View Source
var ErrTooManyKinds = errors.New("too many kinds")

Functions

func HasOwnerReference

func HasOwnerReference(object metav1.Object, reference metav1.OwnerReference) bool

func HasSameRevision

func HasSameRevision(obj1 metav1.Object, obj2 metav1.Object) bool

func NewControllerRef

func NewControllerRef(owner object) (*metav1.OwnerReference, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(namespace string, config *rest.Config) (*Client, error)

func (*Client) GetDeployment

func (c *Client) GetDeployment(ctx context.Context, name string) (*v1.Deployment, error)

func (*Client) GetDeploymentPods

func (c *Client) GetDeploymentPods(ctx context.Context, d *v1.Deployment) ([]v1Core.Pod, error)

func (*Client) GetObjectEvents

func (c *Client) GetObjectEvents(ctx context.Context, object metav1.Object) ([]v1Core.Event, error)

func (*Client) StreamPodLogs

func (c *Client) StreamPodLogs(ctx context.Context, name string) error

Jump to

Keyboard shortcuts

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