Documentation
¶
Index ¶
- Constants
- Variables
- func NewAwsSpec(cc *claimV1alpha1.ClusterClaim) (clusterV1alpha1.ProviderAwsSpec, error)
- func NewVsphereSpec(cc *claimV1alpha1.ClusterClaim) (clusterV1alpha1.ProviderVsphereSpec, error)
- type ClusterClaimReconciler
- func (r *ClusterClaimReconciler) ConstructClusterManagerByClaim(cc *claimV1alpha1.ClusterClaim) (clusterV1alpha1.ClusterManager, error)
- func (r *ClusterClaimReconciler) CreateClusterManager(ctx context.Context, cc *claimV1alpha1.ClusterClaim) error
- func (r *ClusterClaimReconciler) LoadVsphereCredentials(clm *clusterV1alpha1.ClusterManager) error
- func (r *ClusterClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ClusterClaimReconciler) RequeueClusterClaimsForClusterManager(o client.Object) []ctrl.Request
- func (r *ClusterClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ClusterUpdateClaimReconciler
- func (r *ClusterUpdateClaimReconciler) CheckValidClaim(clm *clusterV1alpha1.ClusterManager, cuc *claimV1alpha1.ClusterUpdateClaim) error
- func (r *ClusterUpdateClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *ClusterUpdateClaimReconciler) RequeueClusterUpdateClaimsForClusterManager(o client.Object) []ctrl.Request
- func (r *ClusterUpdateClaimReconciler) SetupClaim(clusterUpdateClaim *claimV1alpha1.ClusterUpdateClaim, ...)
- func (r *ClusterUpdateClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *ClusterUpdateClaimReconciler) UpdateNodeNum(clm *clusterV1alpha1.ClusterManager, cuc *claimV1alpha1.ClusterUpdateClaim) error
Constants ¶
View Source
const (
LabelKeyClmName = "clustermanager.cluster.tmax.io/clm-name"
)
Variables ¶
View Source
var AutoAdmit bool
Functions ¶
func NewAwsSpec ¶
func NewAwsSpec(cc *claimV1alpha1.ClusterClaim) (clusterV1alpha1.ProviderAwsSpec, error)
aws spec configuration
func NewVsphereSpec ¶
func NewVsphereSpec(cc *claimV1alpha1.ClusterClaim) (clusterV1alpha1.ProviderVsphereSpec, error)
vsphere spec configuration
Types ¶
type ClusterClaimReconciler ¶
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 ¶
ClusterClaimReconciler reconciles a ClusterClaim object
func (*ClusterUpdateClaimReconciler) CheckValidClaim ¶
func (r *ClusterUpdateClaimReconciler) CheckValidClaim(clm *clusterV1alpha1.ClusterManager, cuc *claimV1alpha1.ClusterUpdateClaim) error
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 ¶
func (r *ClusterUpdateClaimReconciler) UpdateNodeNum(clm *clusterV1alpha1.ClusterManager, cuc *claimV1alpha1.ClusterUpdateClaim) error
노드를 스케일링할 때 사용하는 메소드
Click to show internal directories.
Click to hide internal directories.