k8snodepool

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 8 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, error)

GenerateCreateK8sNodePoolInput returns sdkgo.KubernetesNodePoolForPost based on the CR spec

func GenerateUpdateK8sNodePoolInput

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

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) 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) 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 {
	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