Documentation ¶
Index ¶
- func FromCells(cells []dataselect.DataCell) []apps.DaemonSet
- func GetDaemonSetPods(client k8sClient.Interface, metricClient metricapi.MetricClient, ...) (*pod.PodList, error)
- func GetDaemonSetServices(client client.Interface, dsQuery *dataselect.DataSelectQuery, ...) (*service.ServiceList, error)
- func GetServicesForDSDeletion(client client.Interface, labelSelector labels.Selector, namespace string) ([]v1.Service, error)
- func ToCells(std []apps.DaemonSet) []dataselect.DataCell
- type DaemonSet
- type DaemonSetCell
- type DaemonSetDetail
- type DaemonSetList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDaemonSetPods ¶
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 ¶
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 ¶
func GetServicesForDSDeletion(client client.Interface, labelSelector labels.Selector, namespace string) ([]v1.Service, error)
GetServicesForDSDeletion is 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.
Types ¶
type DaemonSet ¶
type DaemonSet struct { ObjectMeta api.ObjectMeta `json:"objectMeta"` TypeMeta api.TypeMeta `json:"typeMeta"` Pods common.PodInfo `json:"podInfo"` ContainerImages []string `json:"containerImages"` InitContainerImages []string `json:"initContainerImages"` }
DaemonSet plus zero or more Kubernetes services that target the Daemon Set.
type DaemonSetCell ¶
func (DaemonSetCell) GetProperty ¶
func (self DaemonSetCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
func (DaemonSetCell) GetResourceSelector ¶
func (self DaemonSetCell) GetResourceSelector() *metricapi.ResourceSelector
type DaemonSetDetail ¶
type DaemonSetDetail struct { // Extends list item structure. DaemonSet `json:",inline"` LabelSelector *v1.LabelSelector `json:"labelSelector,omitempty"` // List of non-critical errors, that occurred during resource retrieval. Errors []error `json:"errors"` }
DaemonSetDetail represents detailed information about a Daemon Set.
func GetDaemonSetDetail ¶
func GetDaemonSetDetail(client k8sClient.Interface, metricClient metricapi.MetricClient, namespace, name string) (*DaemonSetDetail, error)
GetDaemonSetDetail 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"` Status common.ResourceStatus `json:"status"` // 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 Set in the cluster reading required resource list once from the channels.