state

package
v1.13.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CastaiConfig

type CastaiConfig struct {
	RemoteConfigSyncDuration time.Duration `validate:"required"`
}

type CastaiController

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

func NewCastaiController

func NewCastaiController(log *logging.Logger, cfg CastaiConfig, appProtoConfig *castaipb.ControllerConfig, kubeClient *kube.Client, castaiClient *castai.Client) *CastaiController

func (*CastaiController) Enabled

func (c *CastaiController) Enabled() bool

func (*CastaiController) Run

func (c *CastaiController) Run(ctx context.Context) error

type ContainerStatusStats

type ContainerStatusStats struct {
	Value string `json:"value"`
	Text  string `json:"text"`
	Count int    `json:"count"`
}

type FlowsFilter

type FlowsFilter struct {
	Namespaces []string `json:"namespaces"`
	IDs        []string `json:"ids"`
	// If set to true filtering by IDs will try to filter by WorkloadKey or ID.
	TryWorkloadIDs bool `json:"-"`
}

type JobsCleanupConfig

type JobsCleanupConfig struct {
	CleanupInterval time.Duration `validate:"required"`
	CleanupJobAge   time.Duration `validate:"required"`
	Namespace       string        `validate:"required"`
}

type JobsCleanupController

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

func NewJobsCleanupController

func NewJobsCleanupController(log *logging.Logger, clientset kubernetes.Interface, cfg JobsCleanupConfig) *JobsCleanupController

func (*JobsCleanupController) Run

type Namespace

type Namespace struct {
	Name string `json:"name"`
}

type PodPhaseStats

type PodPhaseStats struct {
	Value string `json:"value"`
	Text  string `json:"text"`
	Count int    `json:"count"`
}

type PodsStats

type PodsStats struct {
	ContainerStatuses []ContainerStatusStats `json:"containerStatuses"`
	Phases            []PodPhaseStats        `json:"phases"`
	TrafficTypes      []TrafficTypeStats     `json:"trafficTypes"`
}

type TrafficType

type TrafficType string
const (
	TrafficTypeInternet     TrafficType = "internet"
	TrafficTypePrivate      TrafficType = "private"
	TrafficTypeControlPlane TrafficType = "control_plane"
	TrafficTypeCrossZone    TrafficType = "cross_zone"
	TrafficTypeWorkload     TrafficType = "workload"
	TrafficTypeService      TrafficType = "service"
)

type TrafficTypeStats

type TrafficTypeStats struct {
	Value string `json:"value"`
	Text  string `json:"text"`
	Count int    `json:"count"`
}

Jump to

Keyboard shortcuts

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