controllers

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MachineLearningReconciler

type MachineLearningReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

MachineLearningReconciler reconciles a MachineLearning object

func (*MachineLearningReconciler) GetCephFSPVC

func (r *MachineLearningReconciler) GetCephFSPVC(ctx context.Context, ns string) (*PVCDetailInfo, error)

GetCephFSPVC is tools to search pvc for cephfs deployed by cks-operator in user k8s namespace

func (*MachineLearningReconciler) GetLatestPVCByNFSProvisioner

func (r *MachineLearningReconciler) GetLatestPVCByNFSProvisioner(ctx context.Context, ns string) (*PVCDetailInfo, error)

GetLatestPVCByNFSProvisioner is tools to search latest pvc for nfs deployed by cks-operator in user k8s namespace

func (*MachineLearningReconciler) Reconcile

Reconcile is main function for reconciliation loop

func (*MachineLearningReconciler) SetupWithManager

func (r *MachineLearningReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager set up reconciliation loop

type PVCDetailInfo

type PVCDetailInfo struct {
	Name        string
	StatusPhase string
	CreatedYear int
	CreatedDay  int
	CreatedTime int
}

PVCDetailInfo is pvc name's detail to provide nfs storages

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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