Documentation
¶
Index ¶
- func ClientSet(configFlags *genericclioptions.ConfigFlags) (*kubernetes.Clientset, error)
- func FindPVC(clientSet *kubernetes.Clientset, pvcName string) (*corev1.PersistentVolumeClaim, error)
- func GetAppPodList(clientSet *kubernetes.Clientset, ns string) ([]corev1.Pod, error)
- func GetCSIDashboardPod(clientSet *kubernetes.Clientset) (*corev1.Pod, error)
- func GetCSINode(clientSet *kubernetes.Clientset, nodeName string) (*corev1.Pod, error)
- func GetCSINodeList(clientSet *kubernetes.Clientset, nodeName string) ([]corev1.Pod, error)
- func GetContainerErrorMessage(pod corev1.Pod) string
- func GetJob(clientSet *kubernetes.Clientset, jobName string) (*batchv1.Job, error)
- func GetJobDuration(job batchv1.Job) string
- func GetJobStatus(job batchv1.Job) string
- func GetMountPathOfPod(pod corev1.Pod) (string, string, error)
- func GetMountPodList(clientSet *kubernetes.Clientset, volumeId string) ([]corev1.Pod, error)
- func GetMountPodOnNode(clientSet *kubernetes.Clientset, nodeName string) ([]corev1.Pod, error)
- func GetNamespaceList(clientSet *kubernetes.Clientset) ([]corev1.Namespace, error)
- func GetPVCList(clientSet *kubernetes.Clientset, ns string) ([]corev1.PersistentVolumeClaim, error)
- func GetPVCStatus(pvc corev1.PersistentVolumeClaim) string
- func GetPVList(clientSet *kubernetes.Clientset) ([]corev1.PersistentVolume, error)
- func GetPVOfPVC(clientSet *kubernetes.Clientset, pvc *corev1.PersistentVolumeClaim) (*corev1.PersistentVolume, error)
- func GetPVStatus(pv corev1.PersistentVolume) string
- func GetPodList(clientSet *kubernetes.Clientset, ns string) ([]corev1.Pod, error)
- func GetPodOfUpgradeJob(clientSet *kubernetes.Clientset, job *batchv1.Job) (*corev1.Pod, error)
- func GetPodStatus(pod corev1.Pod) string
- func GetSecretList(clientSet *kubernetes.Clientset, namespace string) ([]corev1.Secret, error)
- func GetStorageClassList(clientSet *kubernetes.Clientset) ([]storagev1.StorageClass, error)
- func IfNil(field string) string
- func IsPodReady(pod *corev1.Pod) bool
- func IsShareMount(pod *corev1.Pod) bool
- func ListBatchJobs(clientSet *kubernetes.Clientset) ([]batchv1.Job, error)
- func ListBatchPods(clientSet *kubernetes.Clientset, conf *jConfig.BatchConfig) ([]corev1.Pod, error)
- func ListMoundPods(clientSet *kubernetes.Clientset, nodeName, uniqueId string) ([]corev1.Pod, error)
- func ListUpgradeConfigs(clientSet *kubernetes.Clientset) (map[string]*jConfig.BatchConfig, error)
- func TabbedString(f func(io.Writer) error) (string, error)
- func ToPtr[T any](v T) *T
- func TranslateTimestampSince(timestamp metav1.Time) string
- func WaitForConfirm() bool
- type ClientVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientSet ¶
func ClientSet(configFlags *genericclioptions.ConfigFlags) (*kubernetes.Clientset, error)
func FindPVC ¶ added in v0.4.0
func FindPVC(clientSet *kubernetes.Clientset, pvcName string) (*corev1.PersistentVolumeClaim, error)
func GetAppPodList ¶
func GetCSIDashboardPod ¶ added in v0.4.0
func GetCSIDashboardPod(clientSet *kubernetes.Clientset) (*corev1.Pod, error)
func GetCSINode ¶
func GetCSINodeList ¶
func GetJobDuration ¶ added in v0.4.0
func GetJobStatus ¶ added in v0.4.0
func GetMountPodList ¶
func GetMountPodOnNode ¶
func GetNamespaceList ¶
func GetNamespaceList(clientSet *kubernetes.Clientset) ([]corev1.Namespace, error)
func GetPVCList ¶
func GetPVCList(clientSet *kubernetes.Clientset, ns string) ([]corev1.PersistentVolumeClaim, error)
func GetPVCStatus ¶
func GetPVCStatus(pvc corev1.PersistentVolumeClaim) string
func GetPVList ¶
func GetPVList(clientSet *kubernetes.Clientset) ([]corev1.PersistentVolume, error)
func GetPVOfPVC ¶ added in v0.4.0
func GetPVOfPVC(clientSet *kubernetes.Clientset, pvc *corev1.PersistentVolumeClaim) (*corev1.PersistentVolume, error)
func GetPVStatus ¶
func GetPVStatus(pv corev1.PersistentVolume) string
func GetPodList ¶
func GetPodOfUpgradeJob ¶ added in v0.4.0
func GetPodStatus ¶
getPodStatus: copy from kubernetes/pkg/printers/internalversion/printers.go, which `kubectl get po` used.
func GetSecretList ¶ added in v0.4.0
func GetStorageClassList ¶
func GetStorageClassList(clientSet *kubernetes.Clientset) ([]storagev1.StorageClass, error)
func IsPodReady ¶
func IsShareMount ¶ added in v0.4.0
func ListBatchJobs ¶ added in v0.4.0
func ListBatchJobs(clientSet *kubernetes.Clientset) ([]batchv1.Job, error)
func ListBatchPods ¶ added in v0.4.0
func ListBatchPods(clientSet *kubernetes.Clientset, conf *jConfig.BatchConfig) ([]corev1.Pod, error)
func ListMoundPods ¶ added in v0.4.0
func ListUpgradeConfigs ¶ added in v0.4.0
func ListUpgradeConfigs(clientSet *kubernetes.Clientset) (map[string]*jConfig.BatchConfig, error)
func TranslateTimestampSince ¶
func WaitForConfirm ¶ added in v0.4.0
func WaitForConfirm() bool
Types ¶
type ClientVersion ¶ added in v0.3.0
func ParseClientVersion ¶ added in v0.3.0
func ParseClientVersion(image string) ClientVersion
func (ClientVersion) LessThan ¶ added in v0.3.0
func (v ClientVersion) LessThan(o ClientVersion) bool
Click to show internal directories.
Click to hide internal directories.