kubeutil

package
v5.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrImagePullReason = "ErrImagePull"
	ErrorReason        = "Error"
)

Variables

This section is empty.

Functions

func Decode

func Decode(raw []byte) (runtime.Object, error)

func DeploymentRolloutComplete

func DeploymentRolloutComplete(deployment *v1beta1.Deployment) bool

func GetReplicaSetForDeployment

func GetReplicaSetForDeployment(client kubernetes.Interface, deployment *v1beta1.Deployment) (*v1beta1.ReplicaSet, error)

func IsOwner

func IsOwner(parent, child v1meta.ObjectMeta) bool

func PodWarnings

func PodWarnings(pod *v1.Pod) error

func WatchDeployments

func WatchDeployments(ctx context.Context, client kubernetes.Interface, selector fields.Selector) chan *v1beta1.Deployment

func WatchPods

func WatchPods(ctx context.Context, client kubernetes.Interface, selector fields.Selector) chan *v1.Pod

Types

type ErrCrash

type ErrCrash struct {
	Name         string
	ExitCode     int32
	RestartCount int32
}

func (ErrCrash) Error

func (err ErrCrash) Error() string

type ErrImagePull

type ErrImagePull struct{}

func (ErrImagePull) Error

func (err ErrImagePull) Error() string

type UnknownObject

type UnknownObject struct {
	meta.TypeMeta   `json:",inline"`
	meta.ObjectMeta `json:"metadata"`

	Raw map[string]interface{}
}

func (*UnknownObject) DeepCopyObject

func (o *UnknownObject) DeepCopyObject() runtime.Object

func (*UnknownObject) FromJSON

func (o *UnknownObject) FromJSON(raw []byte) error

func (*UnknownObject) FromYAML

func (o *UnknownObject) FromYAML(raw []byte) error

func (*UnknownObject) GetObjectKind

func (o *UnknownObject) GetObjectKind() schema.ObjectKind

func (*UnknownObject) MarshalJSON

func (o *UnknownObject) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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