kube

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPDB

func NewPDB(workload *unstructured.Unstructured, ls *metav1.LabelSelector, minAvail, maxUnavail *intstr.IntOrString) *policyv1.PodDisruptionBudget

Types

type Clients

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

func (*Clients) GetClientset

func (c *Clients) GetClientset() kubernetes.Interface

func (*Clients) GetNamespacedPDBs

func (c *Clients) GetNamespacedPDBs(ns string) (map[string][]policyv1.PodDisruptionBudget, error)

func (*Clients) GetNamespacedPods

func (c *Clients) GetNamespacedPods(ns, podName string) (map[string][]corev1.Pod, error)

func (*Clients) GetPodParent

func (c *Clients) GetPodParent(podName, ns string) (metav1.Object, error)

func (*Clients) NewBuilder

func (c *Clients) NewBuilder() *resource.Builder

type Interface

type Interface interface {
	GetClientset() kubernetes.Interface
	NewBuilder() *resource.Builder

	GetPodParent(string, string) (metav1.Object, error)
	GetNamespacedPods(string, string) (map[string][]corev1.Pod, error)
	GetNamespacedPDBs(string) (map[string][]policyv1.PodDisruptionBudget, error)
}

Jump to

Keyboard shortcuts

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