daemonset

package
v1.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDaemonSet

func DeleteDaemonSet(client k8sClient.Interface, namespace, name string,
	deleteServices bool) error

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

func DeleteDaemonSetServices(client k8sClient.Interface, namespace, name string) error

Deletes services related to daemon set with given name in given namespace.

Types

type DaemonSet

type DaemonSet struct {
	ObjectMeta common.ObjectMeta `json:"objectMeta"`
	TypeMeta   common.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"`

	// Internal endpoints of all Kubernetes services have the same label selector as this Daemon Set.
	InternalEndpoints []common.Endpoint `json:"internalEndpoints"`

	// External endpoints of all Kubernetes services have the same label selector as this Daemon Set.
	ExternalEndpoints []common.Endpoint `json:"externalEndpoints"`
}

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

type DaemonSetDetail

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

	// Label selector of the Daemon Set.
	LabelSelector *unversioned.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.
	Pods pod.PodList `json:"pods"`

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

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.

type DaemonSetList

type DaemonSetList struct {
	// Unordered list of Daemon Sets
	DaemonSets []DaemonSet `json:"daemonSets"`
}

DaemonSetList contains a list of Daemon Sets in the cluster.

func GetDaemonSetList

func GetDaemonSetList(client *client.Client, namespace string) (*DaemonSetList, error)

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

func GetDaemonSetListFromChannels

func GetDaemonSetListFromChannels(channels *common.ResourceChannels) (
	*DaemonSetList, error)

GetDaemonSetList returns a list of all Daemon Seet in the cluster reading required resource list once from the channels.

type DaemonSetWithPods

type DaemonSetWithPods struct {
	DaemonSet *extensions.DaemonSet
	Pods      *api.PodList
}

Jump to

Keyboard shortcuts

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