utils

package
v0.0.0-...-c4bdc48 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentComplete

func DeploymentComplete(deployment *apps_v1.Deployment, newStatus *apps_v1.DeploymentStatus) bool

DeploymentComplete check the status of deployment

func GetClient

func GetClient() kubernetes.Interface

GetClient returns a k8s clientset to the request from inside of cluster

func GetClientOutOfCluster

func GetClientOutOfCluster() kubernetes.Interface

GetClientOutOfCluster returns a k8s clientset to the request from outside of cluster

func GetObjectMetaData

func GetObjectMetaData(obj interface{}) meta_v1.ObjectMeta

GetObjectMetaData returns metadata of a given k8s object

func IsSameImage

func IsSameImage(a, b coreV1.Container) bool

IsSameImage compare images of 2 containers

func IsStrategySupported

func IsStrategySupported(strategy string) bool

IsStrategySupported return true if kuberbs support strategy

func ProjectName

func ProjectName() (string, error)

ProjectName - running in GCP get the project name

func ProjectResource

func ProjectResource(projectID string) string

ProjectResource - builds ProjectResource for st

func ShouldWatch

func ShouldWatch(old, new *apps_v1.Deployment) bool

ShouldWatch do we have containers to watch

Types

type Closable

type Closable interface {
	Close() error
}

Closable wraps Close() method

Jump to

Keyboard shortcuts

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