client

package
v0.0.0-...-46270a6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodCondition

func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)

func GetPodConditionFromList

func GetPodConditionFromList(conditions []corev1.PodCondition, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)

func GetStringSliceValue

func GetStringSliceValue(u *unstructured.Unstructured, defValue []string, fldPath ...string) []string

func GetStringValue

func GetStringValue(u *unstructured.Unstructured, defValue string, fldPath ...string) string

Types

type KubeClient

type KubeClient struct {
	// contains filtered or unexported fields
}

KubeClient ...

func NewKubeClient

NewKubeClient returns a new instance of KubeClient

func (*KubeClient) GetDriverConfiguration

func (client *KubeClient) GetDriverConfiguration(volDetails common.VolumeMountDetails) (common.VolumeMountDetails, error)

func (*KubeClient) GetHealthCheckGVR

func (client *KubeClient) GetHealthCheckGVR() schema.GroupVersionResource

func (*KubeClient) GetInformerFactory

func (client *KubeClient) GetInformerFactory() dynamicinformer.DynamicSharedInformerFactory

func (*KubeClient) GetMarketplaceDataset

func (client *KubeClient) GetMarketplaceDataset(namespace string, name string) (*common.Dataset, error)

func (*KubeClient) GetMarketplaceDatasets

func (client *KubeClient) GetMarketplaceDatasets(namespace string) ([]common.Dataset, error)

func (*KubeClient) GetPodDetails

func (client *KubeClient) GetPodDetails(req *csi.NodePublishVolumeRequest) (*corev1.Pod, error)

func (*KubeClient) GetPodsToReconcile

func (client *KubeClient) GetPodsToReconcile(nodeName, namespace string) ([]corev1.Pod, error)

func (*KubeClient) GetSecret

func (client *KubeClient) GetSecret(namespace string, name string) (*corev1.Secret, error)

func (*KubeClient) GetVolumeMountDetails

func (client *KubeClient) GetVolumeMountDetails(req *csi.NodePublishVolumeRequest) (common.VolumeMountDetails, error)

GetDatasets ...

func (*KubeClient) ParseDatasetSpec

func (client *KubeClient) ParseDatasetSpec(dsu *unstructured.Unstructured) (*common.Dataset, error)

func (*KubeClient) TagPodForTracking

func (client *KubeClient) TagPodForTracking(req *csi.NodePublishVolumeRequest, volMountDetails common.VolumeMountDetails)

func (*KubeClient) UpdateHealthCheckStatus

func (client *KubeClient) UpdateHealthCheckStatus(nodeName string, namespace string, name string, hcStatus common.HealthCheckStatus)

func (*KubeClient) UpdatePodOnNodePublishVolume

func (client *KubeClient) UpdatePodOnNodePublishVolume(req *csi.NodePublishVolumeRequest, volMountDetails common.VolumeMountDetails, mountedDatasetCount int, mountError error)

func (*KubeClient) UpdatePodStatusOnReconcile

func (client *KubeClient) UpdatePodStatusOnReconcile(volMountDetails common.VolumeMountDetails, mountedDatasetCount int, mountError error)

Jump to

Keyboard shortcuts

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