Documentation ¶
Index ¶
- func DeleteCollectionDaemonSet(client *kubernetes.Clientset, daemonSetList []k8s.DaemonSetData) (err error)
- func DeleteDaemonSet(client *kubernetes.Clientset, namespace, name string) (err error)
- func FromCells(cells []dataselect.DataCell) []apps.DaemonSet
- func RestartDaemonSet(client *kubernetes.Clientset, namespace, name string) (err error)
- func ToCells(std []apps.DaemonSet) []dataselect.DataCell
- type DaemonSet
- type DaemonSetCell
- type DaemonSetDetail
- type DaemonSetList
- type PodList
- type StatusInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCollectionDaemonSet ¶
func DeleteCollectionDaemonSet(client *kubernetes.Clientset, daemonSetList []k8s.DaemonSetData) (err error)
func DeleteDaemonSet ¶
func DeleteDaemonSet(client *kubernetes.Clientset, namespace, name string) (err error)
func RestartDaemonSet ¶
func RestartDaemonSet(client *kubernetes.Clientset, namespace, name string) (err error)
Types ¶
type DaemonSet ¶
type DaemonSet struct { ObjectMeta k8s.ObjectMeta `json:"objectMeta"` TypeMeta k8s.TypeMeta `json:"typeMeta"` Pods k8scommon.PodInfo `json:"podInfo"` Strategy apps.DaemonSetUpdateStrategy `json:"strategy"` // Status information on the statefulSet StatusInfo `json:"statusInfo"` 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
type DaemonSetDetail ¶
type DaemonSetDetail struct { // Extends list item structure. DaemonSet `json:",inline"` LabelSelector *v1.LabelSelector `json:"labelSelector,omitempty"` PodList *PodList `json:"podList"` SvcList *service.ServiceList `json:"svcList"` }
DaemonSetDetail represents detailed information about a Daemon Set.
func GetDaemonSetDetail ¶
func GetDaemonSetDetail(client *kubernetes.Clientset, namespace, name string) (*DaemonSetDetail, error)
GetDaemonSetDetail Returns detailed information about the given daemon set in the given namespace.
type DaemonSetList ¶
type DaemonSetList struct { ListMeta k8s.ListMeta `json:"listMeta"` DaemonSets []DaemonSet `json:"daemonSets"` Status k8scommon.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.Clientset, nsQuery *k8scommon.NamespaceQuery, dsQuery *dataselect.DataSelectQuery) (*DaemonSetList, error)
func GetDaemonSetListFromChannels ¶
func GetDaemonSetListFromChannels(channels *k8scommon.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*DaemonSetList, error)
GetDaemonSetListFromChannels returns a list of all Daemon Set in the cluster reading required resource list once from the channels.
type StatusInfo ¶
type StatusInfo struct { // readyReplicas is the number of Pods created by the DaemonSet controller that have a Ready Condition. Ready int32 `json:"ready,omitempty"` // currentReplicas is the number of Pods created by the DaemonSet controller from the DaemonSet version // indicated by currentRevision. Current int32 `json:"current,omitempty"` // updatedReplicas is the number of Pods created by the DaemonSet controller from the DaemonSet version // indicated by updateRevision. Updated int32 `json:"updated,omitempty"` // Total number of available pods (ready for at least minReadySeconds) targeted by this daemonset. // This is an alpha field and requires enabling DaemonSetMinReadySeconds feature gate. // Remove omitempty when graduating to beta // +optional Available int32 `json:"available,omitempty"` }
StatusInfo is the status information of the daemonset
func GetStatusInfo ¶
func GetStatusInfo(daemonSetStatus *apps.DaemonSetStatus) StatusInfo
GetStatusInfo is used to get the status information from the *apps.DaemonSetStatus
Click to show internal directories.
Click to hide internal directories.