k8s

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: UPL-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// Client to access the Kubernetes API
	Clientset *kubernetes.Clientset

	// Client to access the Kubernetes API for extensions
	ApixClient *apixv1beta1client.ApiextensionsV1beta1Client
}

Client to access the Kubernetes API objects needed for the integration test

func NewClient

func NewClient(kubeconfig string) (Client, error)

NewClient gets a new client that calls the Kubernetes API server to access the Verrazzano API Objects

func (Client) DoesCRDExist

func (c Client) DoesCRDExist(crdName string) bool

DoesCRDExist returns true if the given CRD exists

func (Client) DoesClusterRoleBindingExist

func (c Client) DoesClusterRoleBindingExist(name string) bool

DoesClusterRoleBindingExist returns true if the given ClusterRoleBinding exists

func (Client) DoesClusterRoleExist

func (c Client) DoesClusterRoleExist(name string) bool

DoesClusterRoleExist returns true if the given ClusterRole exists

func (Client) DoesDaemonsetExist

func (c Client) DoesDaemonsetExist(name string, namespace string) bool

DoesDaemonsetExist returns true if the given DaemonSet exists

func (Client) DoesDeploymentExist

func (c Client) DoesDeploymentExist(name string, namespace string) bool

DoesDeploymentExist returns true if the given Deployment exists

func (Client) DoesIngressExist

func (c Client) DoesIngressExist(name string, namespace string) bool

DoesIngressExist returns true if the given Ingress exists

func (Client) DoesNamespaceExist

func (c Client) DoesNamespaceExist(name string) bool

DoesNamespaceExist returns true if the given Namespace exists

func (Client) DoesPodExist

func (c Client) DoesPodExist(name string, namespace string) bool

DoesPodExist returns true if a Pod with the given prefix exists

func (Client) DoesSecretExist

func (c Client) DoesSecretExist(name string, namespace string) bool

DoesSecretExist returns true if the given Secret exists

func (Client) DoesServiceAccountExist

func (c Client) DoesServiceAccountExist(name string, namespace string) bool

DoesServiceAccountExist returns true if the given ServiceAccount exists

func (Client) DoesServiceExist

func (c Client) DoesServiceExist(name string, namespace string) bool

DoesServiceExist returns true if the given Service exists

func (Client) EnsureNamespace

func (c Client) EnsureNamespace(namespace string) error

EnsureNamespace ensures that a namespace exists

func (Client) GetSecret

func (c Client) GetSecret(name string, namespace string) (*corev1.Secret, error)

GetSecret gets the specified secret

func (Client) IsPodRunning

func (c Client) IsPodRunning(name string, namespace string) bool

IsPodRunning returns true if a Pod with the given prefix exists and is Running

Jump to

Keyboard shortcuts

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