Documentation ¶
Index ¶
- type Client
- func (c Client) DoesCRDExist(crdName string) bool
- func (c Client) DoesClusterRoleBindingExist(name string) bool
- func (c Client) DoesClusterRoleExist(name string) bool
- func (c Client) DoesContainerExist(namespace, podName, containerName string) bool
- func (c Client) DoesDaemonsetExist(name string, namespace string) bool
- func (c Client) DoesDeploymentExist(name string, namespace string) bool
- func (c Client) DoesNamespaceExist(name string) bool
- func (c Client) DoesPodExist(name string, namespace string) bool
- func (c Client) DoesRoleBindingContainSubject(name, namespace, subjectKind, subjectName string) bool
- func (c Client) DoesSecretExist(name string, namespace string) bool
- func (c Client) DoesServiceAccountExist(name string, namespace string) bool
- func (c Client) DoesServiceExist(name string, namespace string) bool
- func (c Client) GetAppConfig(namespace, name string) (*oamv1.ApplicationConfiguration, error)
- func (c Client) GetConfigMap(namespace string, name string) (*corev1.ConfigMap, error)
- func (c Client) GetMultiClusterAppConfig(namespace string, name string) (*clustersv1alpha1.MultiClusterApplicationConfiguration, error)
- func (c Client) GetMultiClusterComponent(namespace string, name string) (*clustersv1alpha1.MultiClusterComponent, error)
- func (c Client) GetMultiClusterConfigMap(namespace string, name string) (*clustersv1alpha1.MultiClusterConfigMap, error)
- func (c Client) GetMultiClusterSecret(namespace, name string) (*clustersv1alpha1.MultiClusterSecret, error)
- func (c Client) GetNamespace(name string) (*corev1.Namespace, error)
- func (c Client) GetOAMAppConfig(namespace string, name string) (*oamv1.ApplicationConfiguration, error)
- func (c Client) GetOAMComponent(namespace string, name string) (*oamv1.Component, error)
- func (c Client) GetSecret(namespace, name string) (*corev1.Secret, error)
- func (c Client) GetVerrazzanoProject(namespace string, name string) (*clustersv1alpha1.VerrazzanoProject, error)
- func (c Client) IsDeploymentUpdated(name string, namespace string) bool
- func (c Client) IsPodRunning(name string, namespace string) bool
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 ¶
NewClient gets a new client that calls the Kubernetes API server to access the Verrazzano API Objects
func (Client) DoesCRDExist ¶
DoesCRDExist returns true if the given CRD exists
func (Client) DoesClusterRoleBindingExist ¶
DoesClusterRoleBindingExist returns true if the given ClusterRoleBinding exists
func (Client) DoesClusterRoleExist ¶
DoesClusterRoleExist returns true if the given ClusterRole exists
func (Client) DoesContainerExist ¶
DoesContainerExist returns true if a container with the given name exists in the pod
func (Client) DoesDaemonsetExist ¶
DoesDaemonsetExist returns true if the given DaemonSet exists
func (Client) DoesDeploymentExist ¶
DoesDeploymentExist returns true if the given Deployment exists
func (Client) DoesNamespaceExist ¶
DoesNamespaceExist returns true if the given Namespace exists
func (Client) DoesPodExist ¶
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 ¶
DoesSecretExist returns true if the given Secret exists
func (Client) DoesServiceAccountExist ¶
DoesServiceAccountExist returns true if the given ServiceAccount exists
func (Client) DoesServiceExist ¶
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 ¶
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 ¶
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 ¶
GetOAMComponent gets the specified OAM Component
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 ¶
IsDeploymentUpdated returns true if the given Deployment has been updated with sidecar container