statefulset

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatefulSetPods added in v1.6.1

func GetStatefulSetPods(client kubernetes.Interface, metricClient metricapi.MetricClient,
	dsQuery *dataselect.DataSelectQuery, name, namespace string) (*pod.PodList, error)

GetStatefulSetPods return list of pods targeting pet set.

Types

type StatefulSet added in v1.6.1

type StatefulSet struct {
	ObjectMeta api.ObjectMeta `json:"objectMeta"`
	TypeMeta   api.TypeMeta   `json:"typeMeta"`

	// Aggregate information about pods belonging to this Pet Set.
	Pods common.PodInfo `json:"pods"`

	// Container images of the Stateful Set.
	ContainerImages []string `json:"containerImages"`
}

StatefulSet is a presentation layer view of Kubernetes Stateful Set resource. This means it is Stateful Set plus additional augmented data we can get from other sources (like services that target the same pods).

type StatefulSetCell

type StatefulSetCell apps.StatefulSet

func (StatefulSetCell) GetProperty

func (StatefulSetCell) GetResourceSelector

func (self StatefulSetCell) GetResourceSelector() *metricapi.ResourceSelector

type StatefulSetDetail added in v1.6.1

type StatefulSetDetail struct {
	ObjectMeta      api.ObjectMeta   `json:"objectMeta"`
	TypeMeta        api.TypeMeta     `json:"typeMeta"`
	PodInfo         common.PodInfo   `json:"podInfo"`
	PodList         pod.PodList      `json:"podList"`
	ContainerImages []string         `json:"containerImages"`
	EventList       common.EventList `json:"eventList"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

StatefulSetDetail is a presentation layer view of Kubernetes Stateful Set resource. This means it is Stateful Set plus additional augmented data we can get from other sources (like services that target the same pods).

func GetStatefulSetDetail added in v1.6.1

func GetStatefulSetDetail(client kubernetes.Interface, metricClient metricapi.MetricClient, namespace,
	name string) (*StatefulSetDetail, error)

GetStatefulSetDetail gets Stateful Set details.

type StatefulSetList added in v1.6.1

type StatefulSetList struct {
	ListMeta api.ListMeta `json:"listMeta"`

	// Unordered list of Pet Sets.
	StatefulSets      []StatefulSet      `json:"statefulSets"`
	CumulativeMetrics []metricapi.Metric `json:"cumulativeMetrics"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

StatefulSetList contains a list of Stateful Sets in the cluster.

func GetStatefulSetList added in v1.6.1

func GetStatefulSetList(client kubernetes.Interface, nsQuery *common.NamespaceQuery,
	dsQuery *dataselect.DataSelectQuery, metricClient metricapi.MetricClient) (*StatefulSetList, error)

GetStatefulSetList returns a list of all Stateful Sets in the cluster.

func GetStatefulSetListFromChannels added in v1.6.1

func GetStatefulSetListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery,
	metricClient metricapi.MetricClient) (*StatefulSetList, error)

GetStatefulSetListFromChannels returns a list of all Stateful Sets in the cluster reading required resource list once from the channels.

Jump to

Keyboard shortcuts

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