deploy

package
v0.0.0-...-4a3d265 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimedOutReason = "ProgressDeadlineExceeded"
)

Variables

This section is empty.

Functions

func GetDaemonSetStatus

func GetDaemonSetStatus(ds *appsv1.DaemonSet) (ready bool, err error)

func GetDeploymentCondition

func GetDeploymentCondition(status *appsv1.DeploymentStatus, condType appsv1.DeploymentConditionType) (condition *appsv1.DeploymentCondition)

func GetDeploymentStatus

func GetDeploymentStatus(deployment *appsv1.Deployment) (done bool, err error)

func IsAPIServiceAvailable

func IsAPIServiceAvailable(apiservice *apiregistrationv1.APIService) (status corev1.ConditionStatus, message string)

func IsDeploymentFailedCreate

func IsDeploymentFailedCreate(status *appsv1.DeploymentStatus) bool

Types

type Applier

type Applier func(object metav1.Object)

Applier gives an opportunity to the caller to initialize a deployment artifact before it is created or updated.

func (Applier) Apply

func (a Applier) Apply(object metav1.Object)

type Interface

type Interface interface {
	Name() string
	IsAvailable() (available bool, err error)
	Get() (object runtime.Object, accessor metav1.Object, err error)
	Ensure(parent, child Applier) (object runtime.Object, accessor metav1.Object, err error)
}

Jump to

Keyboard shortcuts

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