statefulsets

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinalPieChart

type FinalPieChart struct {
	ChartOpts chart.Opts `json:"chartOptions"`
	Series    []int64    `json:"series"`
	Total     int64      `json:"total"`
}

func AssembleStatefulSetPieChart

func AssembleStatefulSetPieChart(
	logger *log.Logger,
	clientSet *kubernetes.Clientset,
) (FinalPieChart, error)

AssembleStatefulSetPieChart is used to assemble data to be returned to the API

type MetaDataDeploymentsTable

type MetaDataDeploymentsTable struct {
	Name            string `json:"name"`
	Namespace       string `json:"ns"`
	Ready           bool   `json:"ready"`
	Progressing     bool   `json:"progressing"`
	ReplicasDesired int32  `json:"replicas"`
	ReplicasUpdated int32  `json:"replicas_updated"`
	ReplicasCurrent int32  `json:"replicas_current"`
}

MetaDataDeploymentsTable is some metadata to be used to represent traffic

func AssembleDeploymentsTable

func AssembleDeploymentsTable(
	logger *log.Logger,
	clientSet *kubernetes.Clientset,
) []MetaDataDeploymentsTable

AssembleDeploymentsTable preps some data about deployments

type StatefulSetStats

type StatefulSetStats struct {
	Bad     int `json:"bad"`
	Good    int `json:"good"`
	Unknown int `json:"unknown"`
}

StatefulSetStats is a simple slice/list of deployment pod numbers

Jump to

Keyboard shortcuts

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