poddisruptionbudgets

package
v0.0.0-...-ed75ec7 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodDisruptionBudgetRouteHandler

func NewPodDisruptionBudgetRouteHandler(container container.Container, routeType base.RouteType) echo.HandlerFunc

Types

type PodDisruptionBudget

type PodDisruptionBudget struct {
	Namespace string    `json:"namespace"`
	Name      string    `json:"name"`
	Spec      Spec      `json:"spec"`
	Status    Status    `json:"status"`
	Age       time.Time `json:"age"`
}

func TransformPodDisruptionBudget

func TransformPodDisruptionBudget(items []policyV1.PodDisruptionBudget) []PodDisruptionBudget

func TransformPodDisruptionBudgetItem

func TransformPodDisruptionBudgetItem(item policyV1.PodDisruptionBudget) PodDisruptionBudget

type PodDisruptionBudgetHandler

type PodDisruptionBudgetHandler struct {
	BaseHandler base.BaseHandler
}

func NewPodDisruptionBudgetHandler

func NewPodDisruptionBudgetHandler(c echo.Context, container container.Container) *PodDisruptionBudgetHandler

type Spec

type Spec struct {
	MinAvailable   string `json:"minAvailable"`
	MaxUnavailable string `json:"maxUnavailable"`
}

type Status

type Status struct {
	CurrentHealthy int32 `json:"currentHealthy"`
}

Jump to

Keyboard shortcuts

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