Documentation ¶
Index ¶
- Constants
- Variables
- func CreateNewKubeadmConfigTemplate(ctx context.Context, client *vcdsdk.Client, clusterId string, ...) (map[string]interface{}, error)
- func CreateNewMachineDeployment(ctx context.Context, client *vcdsdk.Client, clusterId string, ...) (map[string]interface{}, error)
- func CreateNewVCDMachineTemplate(ctx context.Context, client *vcdsdk.Client, clusterId string, ...) (map[string]interface{}, error)
- func GetCapvcdYamlFromRde(capvcdRDE swagger.DefinedEntity) (string, error)
- func GetComponentMapInStatus(ctx context.Context, client *vcdsdk.Client, clusterId, componentName string) (map[string]interface{}, error)
- func GetKubeconfigFromRDEId(ctx context.Context, client *vcdsdk.Client, clusterId string) (string, error)
- func GetMapBySpecName(specMap map[string]interface{}, specName string, sectionName string) (map[string]interface{}, error)
- func GetVCDResourceSet(ctx context.Context, client *vcdsdk.Client, clusterId, componentName string) ([]vcdsdk.VCDResource, error)
- func IsRetryableError(err error) bool
- type ContainerParams
- type DeployParams
- type Set
- type TestClient
- func (tc *TestClient) CreateDeployment(ctx context.Context, params *DeployParams, nameSpace string) (*appsv1.Deployment, error)
- func (tc *TestClient) CreateLoadBalancerService(ctx context.Context, nameSpace string, serviceName string, ...) (*apiv1.Service, error)
- func (tc *TestClient) CreateNameSpace(ctx context.Context, nsName string) (*apiv1.Namespace, error)
- func (tc *TestClient) CreatePV(ctx context.Context, persistentVolumeName string, storageClass string, ...) (*apiv1.PersistentVolume, error)
- func (tc *TestClient) CreatePVC(ctx context.Context, nameSpace string, pvcName string, storageClass string, ...) (*apiv1.PersistentVolumeClaim, error)
- func (tc *TestClient) CreateStorageClass(ctx context.Context, scName string, ...) (*stov1.StorageClass, error)
- func (tc *TestClient) DeleteDeployment(ctx context.Context, nameSpace string, deploymentName string) error
- func (tc *TestClient) DeleteNameSpace(ctx context.Context, nameSpace string) error
- func (tc *TestClient) DeletePV(ctx context.Context, pvName string) error
- func (tc *TestClient) DeletePVC(ctx context.Context, nameSpace string, pvcName string) error
- func (tc *TestClient) DeleteService(ctx context.Context, nameSpace string, serviceName string) error
- func (tc *TestClient) DeleteStorageClass(ctx context.Context, scName string) error
- func (tc *TestClient) GetConfigMap(namespace, name string) (*apiv1.ConfigMap, error)
- func (tc *TestClient) GetDeployment(ctx context.Context, nameSpace string, deployName string) (*appsv1.Deployment, error)
- func (tc *TestClient) GetIpamSubnetFromConfigMap(cm *apiv1.ConfigMap) (string, error)
- func (tc *TestClient) GetNetworkNameFromConfigMap(cm *apiv1.ConfigMap) (string, error)
- func (tc *TestClient) GetPV(ctx context.Context, pvName string) (*apiv1.PersistentVolume, error)
- func (tc *TestClient) GetPVC(ctx context.Context, nameSpace string, pvcName string) (*apiv1.PersistentVolumeClaim, error)
- func (tc *TestClient) GetService(ctx context.Context, nameSpace string, serviceName string) (*apiv1.Service, error)
- func (tc *TestClient) GetStorageClass(ctx context.Context, scName string) (*stov1.StorageClass, error)
- func (tc *TestClient) GetWorkerNodes(ctx context.Context) ([]apiv1.Node, error)
- func (tc *TestClient) WaitForDeploymentReady(ctx context.Context, nameSpace string, deployName string) error
- func (tc *TestClient) WaitForExtIP(namespace string, name string) (string, error)
- func (tc *TestClient) WaitForPVDeleted(ctx context.Context, pvName string) (bool, error)
- func (tc *TestClient) WaitForPvcReady(ctx context.Context, nameSpace string, pvcName string) error
- func (tc *TestClient) WaitForWorkerNodeNotReady(ctx context.Context, workerNode *apiv1.Node) error
- func (tc *TestClient) WaitForWorkerNodePhaseRunning(ctx context.Context, workerNode *apiv1.Node) error
- func (tc *TestClient) WaitForWorkerNodeReady(ctx context.Context, workerNode *apiv1.Node) error
- type VCDAuthParams
- type VolumeParams
Constants ¶
View Source
const ( MachineDeployment = "MachineDeployment" KubeadmConfigTemplate = "KubeadmConfigTemplate" VCDMachineTemplate = "VCDMachineTemplate" )
Variables ¶
Functions ¶
func GetCapvcdYamlFromRde ¶
func GetCapvcdYamlFromRde(capvcdRDE swagger.DefinedEntity) (string, error)
func GetComponentMapInStatus ¶
func GetComponentMapInStatus(ctx context.Context, client *vcdsdk.Client, clusterId, componentName string) (map[string]interface{}, error)
Returns status.component as map[string]interface{}, this will help us narrow down to specific fields such as nodepools, vcdresources, etc Components: vcdKe, projector, csi, cpi, capvcd
func GetKubeconfigFromRDEId ¶
func GetMapBySpecName ¶
func GetVCDResourceSet ¶
func IsRetryableError ¶
Types ¶
type ContainerParams ¶
type DeployParams ¶
type DeployParams struct { Name string Labels map[string]string VolumeParams VolumeParams ContainerParams ContainerParams }
type TestClient ¶
type TestClient struct { VcdClient *vcdsdk.Client Cs kubernetes.Interface ClusterId string ClusterName string }
func NewTestClient ¶
func NewTestClient(params *VCDAuthParams, clusterId string) (*TestClient, error)
func (*TestClient) CreateDeployment ¶
func (tc *TestClient) CreateDeployment(ctx context.Context, params *DeployParams, nameSpace string) (*appsv1.Deployment, error)
func (*TestClient) CreateLoadBalancerService ¶
func (*TestClient) CreateNameSpace ¶
func (*TestClient) CreatePV ¶
func (tc *TestClient) CreatePV(ctx context.Context, persistentVolumeName string, storageClass string, storageProfile string, storageSize string, reclaimPolicy apiv1.PersistentVolumeReclaimPolicy) (*apiv1.PersistentVolume, error)
func (*TestClient) CreatePVC ¶
func (tc *TestClient) CreatePVC(ctx context.Context, nameSpace string, pvcName string, storageClass string, storageSize string) (*apiv1.PersistentVolumeClaim, error)
func (*TestClient) CreateStorageClass ¶
func (tc *TestClient) CreateStorageClass(ctx context.Context, scName string, reclaimPolicy apiv1.PersistentVolumeReclaimPolicy, storageProfile string) (*stov1.StorageClass, error)
func (*TestClient) DeleteDeployment ¶
func (*TestClient) DeleteNameSpace ¶
func (tc *TestClient) DeleteNameSpace(ctx context.Context, nameSpace string) error
func (*TestClient) DeletePV ¶
func (tc *TestClient) DeletePV(ctx context.Context, pvName string) error
func (*TestClient) DeleteService ¶
func (*TestClient) DeleteStorageClass ¶
func (tc *TestClient) DeleteStorageClass(ctx context.Context, scName string) error
func (*TestClient) GetConfigMap ¶
func (tc *TestClient) GetConfigMap(namespace, name string) (*apiv1.ConfigMap, error)
func (*TestClient) GetDeployment ¶
func (tc *TestClient) GetDeployment(ctx context.Context, nameSpace string, deployName string) (*appsv1.Deployment, error)
func (*TestClient) GetIpamSubnetFromConfigMap ¶
func (tc *TestClient) GetIpamSubnetFromConfigMap(cm *apiv1.ConfigMap) (string, error)
func (*TestClient) GetNetworkNameFromConfigMap ¶
func (tc *TestClient) GetNetworkNameFromConfigMap(cm *apiv1.ConfigMap) (string, error)
func (*TestClient) GetPV ¶
func (tc *TestClient) GetPV(ctx context.Context, pvName string) (*apiv1.PersistentVolume, error)
func (*TestClient) GetPVC ¶
func (tc *TestClient) GetPVC(ctx context.Context, nameSpace string, pvcName string) (*apiv1.PersistentVolumeClaim, error)
func (*TestClient) GetService ¶
func (*TestClient) GetStorageClass ¶
func (tc *TestClient) GetStorageClass(ctx context.Context, scName string) (*stov1.StorageClass, error)
func (*TestClient) GetWorkerNodes ¶
func (*TestClient) WaitForDeploymentReady ¶
func (*TestClient) WaitForExtIP ¶
func (tc *TestClient) WaitForExtIP(namespace string, name string) (string, error)
func (*TestClient) WaitForPVDeleted ¶
func (*TestClient) WaitForPvcReady ¶
func (*TestClient) WaitForWorkerNodeNotReady ¶
WaitForWorkerNodeNotReady we cannot use negate result from WaitForWorkerNodeReady() Set different RetryTimeInterval and avoid timeout error
func (*TestClient) WaitForWorkerNodePhaseRunning ¶
func (*TestClient) WaitForWorkerNodeReady ¶
type VCDAuthParams ¶
type VolumeParams ¶
Click to show internal directories.
Click to hide internal directories.