Documentation ¶
Index ¶
- func GenerateCreateK8sNodePoolInput(cr *v1alpha1.NodePool, publicIPs []string) (*sdkgo.KubernetesNodePoolForPost, error)
- func GenerateUpdateK8sNodePoolInput(cr *v1alpha1.NodePool, publicIps []string) (*sdkgo.KubernetesNodePoolForPut, error)
- func IsK8sNodePoolUpToDate(cr *v1alpha1.NodePool, nodepool sdkgo.KubernetesNodePool, publicIPs []string) bool
- func LateInitializer(in *v1alpha1.NodePoolParameters, sg *sdkgo.KubernetesNodePool)
- func LateStatusInitializer(in *v1alpha1.NodePoolObservation, sg *sdkgo.KubernetesNodePool)
- type APIClient
- func (cp *APIClient) CreateK8sNodePool(ctx context.Context, clusterID string, ...) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)
- func (cp *APIClient) DeleteK8sNodePool(ctx context.Context, clusterID, nodepoolID string) (*sdkgo.APIResponse, error)
- func (cp *APIClient) GetAPIClient() *sdkgo.APIClient
- func (cp *APIClient) GetK8sNodePool(ctx context.Context, clusterID, nodepoolID string) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)
- func (cp *APIClient) UpdateK8sNodePool(ctx context.Context, clusterID, nodepoolID string, ...) (sdkgo.KubernetesNodePool, *sdkgo.APIResponse, error)
- type Client
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 ¶
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