deploy

package
v1.5.3-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(name, templateOutputPath string) error

Delete will delete a deployment on a Kubernetes cluster

func WaitOnReady

func WaitOnReady(name string) (bool, error)

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

Types

type Deploy

type Deploy struct {
	Metadata `json:"metadata"`
	Spec     `json:"spec"`
	Status   `json:"status"`
}

Deploy is used to parse data from 'kubectl get deploy'

type List

type List struct {
	Deploys []Deploy `json:"items"`
}

List is a container that holds all deployment returned from 'kubectl get deploy'

func GetAllDeployments

func GetAllDeployments() (*List, error)

GetAllDeployments will return a list of deployment on a Kubernetes cluster

type Metadata

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

Metadata holds information about a deployment

type Spec

type Spec struct {
	Replicas int `json:"replicas"`
}

Spec holds the spec about a deployment

type Status

type Status struct {
	AvailableReplicas int `json:"availableReplicas"`
}

Status holds the status about a deployment

Jump to

Keyboard shortcuts

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