Documentation ¶
Index ¶
- func DeleteDaemonSet(client k8sClient.Interface, namespace, name string, deleteServices bool) error
- func DeleteDaemonSetServices(client k8sClient.Interface, namespace, name string) error
- func GetDaemonSetEvents(client client.Interface, dsQuery *dataselect.DataSelectQuery, ...) (*common.EventList, error)
- func GetDaemonSetPods(client k8sClient.Interface, heapsterClient client.HeapsterClient, ...) (*pod.PodList, error)
- func GetDaemonSetPodsEvents(client client.Interface, namespace, daemonSetName string) ([]api.Event, error)
- func GetDaemonSetServices(client client.Interface, dsQuery *dataselect.DataSelectQuery, ...) (*service.ServiceList, error)
- type DaemonSetDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDaemonSet ¶
TODO(floreks): This should be transactional to make sure that DS will not be deleted without pods Deletes daemon set with given name in given namespace and related pods. Also deletes services related to daemon set if deleteServices is true.
func DeleteDaemonSetServices ¶
DeleteDaemonSetServices deletes services related to daemon set with given name in given namespace.
func GetDaemonSetEvents ¶
func GetDaemonSetEvents(client client.Interface, dsQuery *dataselect.DataSelectQuery, namespace, daemonSetName string) (*common.EventList, error)
GetDaemonSetEvents gets events associated to daemon set.
func GetDaemonSetPods ¶
func GetDaemonSetPods(client k8sClient.Interface, heapsterClient client.HeapsterClient, dsQuery *dataselect.DataSelectQuery, daemonSetName, namespace string) (*pod.PodList, error)
GetDaemonSetPods return list of pods targeting daemon set.
func GetDaemonSetPodsEvents ¶
func GetDaemonSetPodsEvents(client client.Interface, namespace, daemonSetName string) ( []api.Event, error)
GetDaemonSetPodsEvents gets events associated to pods in 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.
Types ¶
type DaemonSetDetail ¶
type DaemonSetDetail struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.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"` }
DaemonSeDetail represents detailed information about a Daemon Set.
func GetDaemonSetDetail ¶
func GetDaemonSetDetail(client k8sClient.Interface, heapsterClient client.HeapsterClient, namespace, name string) (*DaemonSetDetail, error)
Returns detailed information about the given daemon set in the given namespace.