daemonset

package
v1.5.3-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitOnReady

func WaitOnReady(name string) (bool, error)

WaitOnReady will block until the number of replicas of a daemonset is equal to the specified amount

Types

type DaemonSet

type DaemonSet struct {
	Metadata `json:"metadata"`
	Status   `json:"status"`
}

DaemonSet is used to parse data from 'kubectl get ds'

type List

type List struct {
	DaemonSets []DaemonSet `json:"items"`
}

List is a container that holds all daemonsets returned from 'kubectl get ds'

func GetAllDaemonSets

func GetAllDaemonSets() (*List, error)

GetAllDaemonSets will return a list of daemonsets on a Kubernetes cluster

type Metadata

type Metadata struct {
	Name string `json:"name"`
}

Metadata holds information about a daemonset

type Status

type Status struct {
	DesiredNumberScheduled int `json:"desiredNumberScheduled"`
	NumberAvailable        int `json:"numberAvailable"`
	NumberReady            int `json:"numberReady"`
}

Status holds the status about a daemonset

Jump to

Keyboard shortcuts

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