controllers

package
v0.5.1-b3f3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelKeyClmName = "clustermanager.cluster.tmax.io/clm-name"
)

Variables

View Source
var AutoAdmit bool

Functions

func NewAwsSpec

aws spec configuration

func NewVsphereSpec

vsphere spec configuration

Types

type ClusterClaimReconciler

type ClusterClaimReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ClusterClaimReconciler reconciles a ClusterClaim object

func (*ClusterClaimReconciler) ConstructClusterManagerByClaim

func (r *ClusterClaimReconciler) ConstructClusterManagerByClaim(cc *claimV1alpha1.ClusterClaim) (clusterV1alpha1.ClusterManager, error)

func (*ClusterClaimReconciler) CreateClusterManager

func (r *ClusterClaimReconciler) CreateClusterManager(ctx context.Context, cc *claimV1alpha1.ClusterClaim) error

func (*ClusterClaimReconciler) LoadVsphereCredentials

func (r *ClusterClaimReconciler) LoadVsphereCredentials(clm *clusterV1alpha1.ClusterManager) error

func (*ClusterClaimReconciler) Reconcile

func (r *ClusterClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

cluster claim 이 생성되면, reconcile 함수는 해당 cluster claim 의 status 를 awaiting 으로 변경해준다. 해당 claim 으로 생성한 cluster 에 대한 cluster manager 의 생성은 hypercloud-api-server 에서 진행된다.

func (*ClusterClaimReconciler) RequeueClusterClaimsForClusterManager

func (r *ClusterClaimReconciler) RequeueClusterClaimsForClusterManager(o client.Object) []ctrl.Request

func (*ClusterClaimReconciler) SetupWithManager

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

type ClusterUpdateClaimReconciler

type ClusterUpdateClaimReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ClusterClaimReconciler reconciles a ClusterClaim object

func (*ClusterUpdateClaimReconciler) CheckValidClaim

updateclaim에 대한 낙관적 동시성 처리

func (*ClusterUpdateClaimReconciler) Reconcile

func (r *ClusterUpdateClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

cluster update claim reconcile loop

func (*ClusterUpdateClaimReconciler) RequeueClusterUpdateClaimsForClusterManager

func (r *ClusterUpdateClaimReconciler) RequeueClusterUpdateClaimsForClusterManager(o client.Object) []ctrl.Request

cluster manager 삭제시 cluster manager와 관련된 모든 cluster update claim을 reconcile loop로 보낸다.

func (*ClusterUpdateClaimReconciler) SetupClaim

func (r *ClusterUpdateClaimReconciler) SetupClaim(clusterUpdateClaim *claimV1alpha1.ClusterUpdateClaim, clusterManager *clusterV1alpha1.ClusterManager)

clusterupdateclaim 초기 세팅을 하는 메서드

func (*ClusterUpdateClaimReconciler) SetupWithManager

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

func (*ClusterUpdateClaimReconciler) UpdateNodeNum

노드를 스케일링할 때 사용하는 메소드

Jump to

Keyboard shortcuts

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