daemonset

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCells added in v1.5.0

func FromCells(cells []dataselect.DataCell) []extensions.DaemonSet

func GetDaemonSetPods added in v1.1.1

func GetDaemonSetPods(client k8sClient.Interface, metricClient metricapi.MetricClient,
	dsQuery *dataselect.DataSelectQuery, daemonSetName, namespace string) (*pod.PodList, error)

GetDaemonSetPods return list of pods targeting daemon set.

func GetDaemonSetServices added in v1.1.1

func GetDaemonSetServices(client client.Interface, dsQuery *dataselect.DataSelectQuery,
	namespace, name string) (*service.ServiceList, error)

GetDaemonSetServices returns list of services that are related to daemon set targeted by given name.

func GetServicesForDSDeletion added in v1.5.0

func GetServicesForDSDeletion(client client.Interface, labelSelector labels.Selector,
	namespace string) ([]v1.Service, error)

Based on given selector returns list of services that are candidates for deletion. Services are matched by daemon sets' label selector. They are deleted if given label selector is targeting only 1 daemon set.

func ToCells added in v1.5.0

func ToCells(std []extensions.DaemonSet) []dataselect.DataCell

Types

type DaemonSet

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

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

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

DaemonSet plus zero or more Kubernetes services that target the Daemon Set.

type DaemonSetCell added in v1.4.0

type DaemonSetCell extensions.DaemonSet

func (DaemonSetCell) GetProperty added in v1.4.0

func (DaemonSetCell) GetResourceSelector added in v1.4.0

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

type DaemonSetDetail

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

	// Label selector of the Daemon Set.
	LabelSelector *v1.LabelSelector `json:"labelSelector,omitempty"`

	// Container image list of the pod template specified by this Daemon Set.
	ContainerImages []string `json:"containerImages"`

	// Aggregate information about pods of this daemon set.
	PodInfo common.PodInfo `json:"podInfo"`

	// Detailed information about Pods belonging to this Daemon Set.
	PodList pod.PodList `json:"podList"`

	// Detailed information about service related to Daemon Set.
	ServiceList resourceService.ServiceList `json:"serviceList"`

	// True when the data contains at least one pod with metrics information, false otherwise.
	HasMetrics bool `json:"hasMetrics"`

	// List of events related to this daemon set
	EventList common.EventList `json:"eventList"`

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

DaemonSeDetail represents detailed information about a Daemon Set.

func GetDaemonSetDetail

func GetDaemonSetDetail(client k8sClient.Interface, metricClient metricapi.MetricClient,
	namespace, name string) (*DaemonSetDetail, error)

Returns detailed information about the given daemon set in the given namespace.

type DaemonSetList

type DaemonSetList struct {
	ListMeta          api.ListMeta       `json:"listMeta"`
	DaemonSets        []DaemonSet        `json:"daemonSets"`
	CumulativeMetrics []metricapi.Metric `json:"cumulativeMetrics"`

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

DaemonSetList contains a list of Daemon Sets in the cluster.

func GetDaemonSetList

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

GetDaemonSetList returns a list of all Daemon Set in the cluster.

func GetDaemonSetListFromChannels

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

GetDaemonSetListFromChannels returns a list of all Daemon Seet 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