util

package
v0.0.0-...-5d42de7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneJob

func CloneJob(clientset *kubernetes.Clientset, fromNamespace string, from string, toNamespace string, to string, password string) error

CloneJob create a Kube job to clone a postgres instance

func GetHubDBPassword

func GetHubDBPassword(kubeClient *kubernetes.Clientset, namespace string, name string) (string, string, error)

GetHubDBPassword will retrieve the blackduck and blackduck_user db password

func GetHubVersion

func GetHubVersion(environs []string) string

GetHubVersion will return the Blackduck version from the list of Blackduck environment variables

func GetLoadBalancerIPAddress

func GetLoadBalancerIPAddress(kubeClient *kubernetes.Clientset, namespace string, serviceName string) (string, error)

GetLoadBalancerIPAddress will return the load balance service ip address

func GetNodePortIPAddress

func GetNodePortIPAddress(kubeClient *kubernetes.Clientset, namespace string, serviceName string) (string, error)

GetNodePortIPAddress will return the node port service ip address

func UpdateState

func UpdateState(h *blackduckclient.Clientset, name string, namespace string, statusState string, error error) (*blackduckv1.Blackduck, error)

UpdateState will be used to update the hub object

Types

This section is empty.

Jump to

Keyboard shortcuts

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