Documentation
¶
Index ¶
- func DeploymentComplete(deployment *apps_v1.Deployment, newStatus *apps_v1.DeploymentStatus) bool
- func GetClient() kubernetes.Interface
- func GetClientOutOfCluster() kubernetes.Interface
- func GetObjectMetaData(obj interface{}) meta_v1.ObjectMeta
- func IsSameImage(a, b coreV1.Container) bool
- func IsStrategySupported(strategy string) bool
- func ProjectName() (string, error)
- func ProjectResource(projectID string) string
- func ShouldWatch(old, new *apps_v1.Deployment) bool
- type Closable
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 ¶
IsSameImage compare images of 2 containers
func IsStrategySupported ¶
IsStrategySupported return true if kuberbs support strategy
func ProjectName ¶
ProjectName - running in GCP get the project name
func ProjectResource ¶
ProjectResource - builds ProjectResource for st
func ShouldWatch ¶
func ShouldWatch(old, new *apps_v1.Deployment) bool
ShouldWatch do we have containers to watch
Types ¶
Click to show internal directories.
Click to hide internal directories.