daemonset

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 FromCells

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

func RestartDaemonSet

func RestartDaemonSet(client *kubernetes.Clientset, namespace, name string) (err error)

func ToCells

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

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

type DaemonSetCell apps.DaemonSet

func (DaemonSetCell) GetProperty

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 PodList

type PodList struct {
	ListMeta k8s.ListMeta `json:"listMeta"`

	// Basic information about resources status on the list.
	Status k8scommon.ResourceStatus `json:"status"`

	// Unordered list of Pods.
	Pods []pods.Pod `json:"pods"`
}

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"`

	Unavailable int32 `json:"unavailable"`
}

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

Jump to

Keyboard shortcuts

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