scale

package
v0.5.1-release Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfNCActionStepFinished

func CheckIfNCActionStepFinished(actionStep v1alpha1.ActionStep, client client.Client, cluster *v1alpha1.NifiCluster, nodeId string) (bool, error)

TODO : rework to check if state is consistent (If waiting removing but disconnected ... CheckIfCCTaskFinished checks whether the given CC Task ID finished or not headlessServiceEnabled bool, availableNodes []v1alpha1.Node, serverPort int32, nodeId, namespace, clusterName string

func ConnectClusterNode

func ConnectClusterNode(client client.Client, cluster *v1alpha1.NifiCluster, nodeId string) (v1alpha1.ActionStep, string, error)

ConnectClusterNode, perform node connection.

func DisconnectClusterNode

func DisconnectClusterNode(client client.Client, cluster *v1alpha1.NifiCluster, nodeId string) (v1alpha1.ActionStep, string, error)

DisconnectClusterNode, perform a node disconnection

func EnsureRemovedNodes

func EnsureRemovedNodes(client client.Client, cluster *v1alpha1.NifiCluster) error

func OffloadClusterNode

func OffloadClusterNode(client client.Client, cluster *v1alpha1.NifiCluster, nodeId string) (v1alpha1.ActionStep, string, error)

OffloadCluster, perform offload data from a node.

func RemoveClusterNode

func RemoveClusterNode(client client.Client, cluster *v1alpha1.NifiCluster, nodeId string) (v1alpha1.ActionStep, string, error)

RemoveClusterNode, perform node connection.

func UpScaleCluster

func UpScaleCluster(nodeId, namespace, clusterName string) (v1alpha1.ActionStep, string, error)

TODO : rework upscale to check that the node is connected before ending operation. UpScaleCluster upscales Nifi cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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