k8snodepool

package
v0.3.10-test Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCreateK8sNodePoolInput

func GenerateCreateK8sNodePoolInput(cr *v1alpha1.NodePool, publicIPs []string) *sdkgo.KubernetesNodePoolForPost

GenerateCreateK8sNodePoolInput returns sdkgo.KubernetesNodePoolForPost based on the CR spec

func GenerateUpdateK8sNodePoolInput

func GenerateUpdateK8sNodePoolInput(cr *v1alpha1.NodePool, publicIps []string) *sdkgo.KubernetesNodePoolForPut

GenerateUpdateK8sNodePoolInput returns sdkgo.KubernetesNodePoolForPut based on the CR spec modifications

func IsK8sNodePoolUpToDate

func IsK8sNodePoolUpToDate(cr *v1alpha1.NodePool, nodepool sdkgo.KubernetesNodePool, publicIPs []string) bool

IsK8sNodePoolUpToDate returns true if the NodePool is up-to-date or false if it does not

func LateInitializer

func LateInitializer(in *v1alpha1.NodePoolParameters, sg *sdkgo.KubernetesNodePool)

LateInitializer fills the empty fields in *v1alpha1.NodePoolParameters with the values seen in sdkgo.KubernetesNodePool.

func LateStatusInitializer

func LateStatusInitializer(in *v1alpha1.NodePoolObservation, sg *sdkgo.KubernetesNodePool)

LateStatusInitializer fills the empty fields in *v1alpha1.ClusterObservation with the values seen in sdkgo.KubernetesCluster.

Types

type APIClient

type APIClient struct {
	*clients.IonosServices
}

APIClient is a wrapper around IONOS Service

func (*APIClient) CheckDuplicateK8sNodePool

func (cp *APIClient) CheckDuplicateK8sNodePool(ctx context.Context, clusterID, nodePoolName string, cr *v1alpha1.NodePool) (*sdkgo.KubernetesNodePool, error)

CheckDuplicateK8sNodePool based on clusterID, nodepoolName and on multiple properties for CR spec

func (*APIClient) CreateK8sNodePool

func (cp *APIClient) CreateK8sNodePool(ctx context.Context, clusterID string, nodepool sdkgo.KubernetesNodePoolForPost) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)

CreateK8sNodePool based on clusterID, KubernetesNodePoolForPost

func (*APIClient) DeleteK8sNodePool

func (cp *APIClient) DeleteK8sNodePool(ctx context.Context, clusterID, nodepoolID string) (*sdkgo.APIResponse, error)

DeleteK8sNodePool based on clusterID, nodepoolID

func (*APIClient) GetAPIClient

func (cp *APIClient) GetAPIClient() *sdkgo.APIClient

GetAPIClient gets the APIClient

func (*APIClient) GetK8sNodePool

func (cp *APIClient) GetK8sNodePool(ctx context.Context, clusterID, nodepoolID string) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)

GetK8sNodePool based on clusterID, nodepoolID

func (*APIClient) GetK8sNodePoolID

func (cp *APIClient) GetK8sNodePoolID(nodepool *sdkgo.KubernetesNodePool) (string, error)

GetK8sNodePoolID based on nodepool

func (*APIClient) UpdateK8sNodePool

func (cp *APIClient) UpdateK8sNodePool(ctx context.Context, clusterID, nodepoolID string, nodepool sdkgo.KubernetesNodePoolForPut) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)

UpdateK8sNodePool based on clusterID, nodepoolID and KubernetesNodePoolForPut

type Client

type Client interface {
	CheckDuplicateK8sNodePool(ctx context.Context, clusterID, nodePoolName string, cr *v1alpha1.NodePool) (*sdkgo.KubernetesNodePool, error)
	GetK8sNodePoolID(nodepool *sdkgo.KubernetesNodePool) (string, error)
	GetK8sNodePool(ctx context.Context, clusterID, nodepoolID string) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)
	CreateK8sNodePool(ctx context.Context, clusterID string, nodepool sdkgo.KubernetesNodePoolForPost) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)
	UpdateK8sNodePool(ctx context.Context, clusterID, nodepoolID string, nodepool sdkgo.KubernetesNodePoolForPut) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)
	DeleteK8sNodePool(ctx context.Context, clusterID, nodepoolID string) (*sdkgo.APIResponse, error)
	GetAPIClient() *sdkgo.APIClient
}

Client is a wrapper around IONOS Service K8s Cluster methods

Jump to

Keyboard shortcuts

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