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: 14 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 {
	// contains filtered or unexported fields
}

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

func NewClient

func NewClient() (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) DoesContainerExist

func (c Client) DoesContainerExist(namespace, podName, containerName string) bool

DoesContainerExist returns true if a container with the given name exists in the pod

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) 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) DoesRoleBindingContainSubject

func (c Client) DoesRoleBindingContainSubject(name, namespace, subjectKind, subjectName string) bool

DoesRoleBindingContainSubject returns true if the RoleBinding exists and it contains the specified subject

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) GetAppConfig

func (c Client) GetAppConfig(namespace, name string) (*oamv1.ApplicationConfiguration, error)

GetAppConfig gets OAM custom-resource ApplicationConfiguration

func (Client) GetConfigMap

func (c Client) GetConfigMap(namespace string, name string) (*corev1.ConfigMap, error)

GetConfigMap gets the specified K8S ConfigMap

func (Client) GetMultiClusterAppConfig

func (c Client) GetMultiClusterAppConfig(namespace string, name string) (*clustersv1alpha1.MultiClusterApplicationConfiguration, error)

GetMultiClusterAppConfig gets the specified MultiClusterApplicationConfiguration

func (Client) GetMultiClusterComponent

func (c Client) GetMultiClusterComponent(namespace string, name string) (*clustersv1alpha1.MultiClusterComponent, error)

GetMultiClusterComponent gets the specified MultiClusterComponent

func (Client) GetMultiClusterConfigMap

func (c Client) GetMultiClusterConfigMap(namespace string, name string) (*clustersv1alpha1.MultiClusterConfigMap, error)

GetMultiClusterConfigMap gets the specified MultiClusterConfigMap

func (Client) GetMultiClusterSecret

func (c Client) GetMultiClusterSecret(namespace, name string) (*clustersv1alpha1.MultiClusterSecret, error)

GetMultiClusterSecret gets the specified MultiClusterSecret resource

func (Client) GetNamespace

func (c Client) GetNamespace(name string) (*corev1.Namespace, error)

GetNamespace gets the specified K8S namespace

func (Client) GetOAMAppConfig

func (c Client) GetOAMAppConfig(namespace string, name string) (*oamv1.ApplicationConfiguration, error)

GetOAMAppConfig gets the specified OAM ApplicationConfiguration

func (Client) GetOAMComponent

func (c Client) GetOAMComponent(namespace string, name string) (*oamv1.Component, error)

GetOAMComponent gets the specified OAM Component

func (Client) GetSecret

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

GetSecret gets the specified K8S secret

func (Client) GetVerrazzanoProject added in v0.13.0

func (c Client) GetVerrazzanoProject(namespace string, name string) (*clustersv1alpha1.VerrazzanoProject, error)

GetVerrazzanoProject gets the specified VerrazzanoProject

func (Client) IsDeploymentUpdated

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

IsDeploymentUpdated returns true if the given Deployment has been updated with sidecar container

func (Client) IsPodRunning

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

IsPodRunning returns true if a Pod with the given prefix is running

Jump to

Keyboard shortcuts

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