poddisruptionbudget

package
v0.0.0-...-1fb7f3c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGVR

GetGVR returns the GroupVersionResource for the Pod Disruption Budget.

Types

type Builder

type Builder struct {
	// PodDisruptionBudget definition
	Definition *policyv1.PodDisruptionBudget

	// Created PodDisruptionBudget object
	Object *policyv1.PodDisruptionBudget
	// contains filtered or unexported fields
}

Builder provides a struct for the PodDisruptionBudget object and definition.

func NewBuilder

func NewBuilder(apiClient *clients.Settings, name, nsname string) *Builder

NewBuilder creates a new PodDisruptionBudget builder.

func Pull

func Pull(apiClient *clients.Settings, name, nsname string) (*Builder, error)

Pull retrieves the PodDisruptionBudget from the cluster.

func (*Builder) Create

func (builder *Builder) Create() (*Builder, error)

Create creates the PodDisruptionBudget in the cluster.

func (*Builder) Delete

func (builder *Builder) Delete() error

Delete deletes the PodDisruptionBudget from the cluster.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks if the PodDisruptionBudget exists in the cluster.

func (*Builder) Update

func (builder *Builder) Update(force bool) (*Builder, error)

Update updates the PodDisruptionBudget in the cluster.

func (*Builder) WithPDBSpec

func (builder *Builder) WithPDBSpec(spec policyv1.PodDisruptionBudgetSpec) *Builder

WithPDBSpec sets the PodDisruptionBudgetSpec for the PodDisruptionBudget.

Jump to

Keyboard shortcuts

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