workloads

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckReadyState

func CheckReadyState(r Resource) error

CheckReadyState will check every 1 second for 5 minutes to see if the resource is ready.

Types

type Deployment

type Deployment struct {
	v1.DeploymentInterface
	*appsv1.Deployment
}

func NewDeployment

func NewDeployment(client *helm.Client) (*Deployment, error)

func (*Deployment) Get

func (d *Deployment) Get() (*appsv1.Deployment, error)

func (*Deployment) IsReady

func (d *Deployment) IsReady() bool

func (*Deployment) Kind

func (d *Deployment) Kind() string

func (*Deployment) Name

func (d *Deployment) Name() string

type Ingress

type Ingress struct {
	*networkingv1.Ingress
	v1.IngressInterface
}

func NewIngress

func NewIngress(client *helm.Client) (*Ingress, error)

func (*Ingress) IsReady

func (i *Ingress) IsReady() bool

func (*Ingress) Kind

func (i *Ingress) Kind() string

func (*Ingress) Name

func (i *Ingress) Name() string

type Pod

type Pod struct {
	*v1.Pod
	v1typed.PodInterface
}

func NewPod

func NewPod(client *helm.Client) (*Pod, error)

func (*Pod) IsReady

func (p *Pod) IsReady() bool

func (*Pod) Kind

func (p *Pod) Kind() string

func (*Pod) Name

func (p *Pod) Name() string

type PodDisruptionBudget

type PodDisruptionBudget struct {
	PDBName                      string
	PodDisruptionBudget          *policyv1.PodDisruptionBudget
	PodDisruptionBudgetInterface v1.PodDisruptionBudgetInterface
}

func NewPodDisruptionBudget

func NewPodDisruptionBudget(client *helm.Client, name string) (*PodDisruptionBudget, error)

func (*PodDisruptionBudget) IsReady

func (p *PodDisruptionBudget) IsReady() bool

func (*PodDisruptionBudget) Kind

func (p *PodDisruptionBudget) Kind() string

func (*PodDisruptionBudget) Name

func (p *PodDisruptionBudget) Name() string

type Resource

type Resource interface {
	Name() string
	Kind() string
	IsReady() bool
}

type StatefulSet

type StatefulSet struct {
	*appsv1.StatefulSet
	v1.StatefulSetInterface
}

func NewStatefulSet

func NewStatefulSet(client *helm.Client) (*StatefulSet, error)

func (*StatefulSet) IsReady

func (s *StatefulSet) IsReady() bool

IsReady Will report if the stateful set has the correct number of replicas. If this is true then we also know the PVC/PV has been created and bound as this would not become ready until that is done.

func (*StatefulSet) Kind

func (s *StatefulSet) Kind() string

func (*StatefulSet) Name

func (s *StatefulSet) Name() string

Jump to

Keyboard shortcuts

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