utility

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGitSuffixIfNecessary

func AddGitSuffixIfNecessary(url string) string

AddGitSuffixIfNecessary will append .git to URL if necessary

func GetFullName

func GetFullName(parentName, name string) string

GetFullName generates a command's full name based on its parent's full name and its own name

func MaybeCompletePrefix

func MaybeCompletePrefix(s string) string

MaybeCompletePrefix adds a hyphen on the end of the prefix if it doesn't have one to make prefix-generated names look a bit nicer.

func RemoveEmptyStrings

func RemoveEmptyStrings(s []string) []string

RemoveEmptyStrings returns a slice with all the empty strings removed from the source slice.

Types

type Client

type Client struct {
	KubeClient     kubernetes.Interface
	OperatorClient operatorsclientset.OperatorsV1alpha1Interface
}

Client represents a client for K8s

func NewClient

func NewClient() (*Client, error)

NewClient returns a new client to check dependencies

func (*Client) CheckIfArgoCDExists

func (c *Client) CheckIfArgoCDExists(ns string) error

CheckIfArgoCDExists checks if ArgoCD operator is installed

func (*Client) CheckIfPipelinesExists

func (c *Client) CheckIfPipelinesExists(ns string) error

CheckIfPipelinesExists checks is OpenShift pipelines operator is installed

func (*Client) CheckIfSealedSecretsExists

func (c *Client) CheckIfSealedSecretsExists(secret types.NamespacedName) error

CheckIfSealedSecretsExists checks if sealed secrets is installed

Jump to

Keyboard shortcuts

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