common

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package common contains common plugin function helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDuration added in v0.8.0

func GetDuration(obj *metav1.ObjectMeta) string

GetDuration gets uptime duration of a resource.

func IntToString

func IntToString(i int32) string

IntToString converts int32 into string.

func NewClient

func NewClient(clientConfig clientcmd.ClientConfig) (client.Client, error)

NewClient returns new client instance.

func PrintCanaryPods

func PrintCanaryPods(c client.Client, ns, edsName string, out io.Writer) error

PrintCanaryPods prints the list of canary pods.

func PrintNotReadyPods

func PrintNotReadyPods(c client.Client, ns, edsName string, out io.Writer) error

PrintNotReadyPods prints the list of not ready pods.

Types

This section is empty.

Jump to

Keyboard shortcuts

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