utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlluxioConfigMapName

func GetAlluxioConfigMapName(nameOverride, clusterName string) string

func GetClusterFullName added in v1.0.1

func GetClusterFullName(nameOverride, helmReleaseName string) string

GetClusterFullName The same function that constructs alluxio.fullName in helm chart

func GetConfYamlPath

func GetConfYamlPath(namespacedName types.NamespacedName) string

func GetFuseDaemonSetNamespacedName

func GetFuseDaemonSetNamespacedName(nameOverride string, clusterNamespacedName types.NamespacedName) types.NamespacedName

func GetFuseStatus added in v1.0.1

func GetFuseStatus(ctx ComponentStatusReqCtx) (*v1.DaemonSet, error)

func GetK8sClient added in v1.0.1

func GetK8sClient() (*kubernetes.Clientset, error)

func GetLoadConfigmapName

func GetLoadConfigmapName(nameOverride, clusterName string) string

func GetLoadJobName

func GetLoadJobName(loadName string) string

func GetMasterStatefulSetNamespacedName

func GetMasterStatefulSetNamespacedName(nameOverride string, clusterNamespacedName types.NamespacedName) types.NamespacedName

func GetMasterStatus added in v1.0.1

func GetMasterStatus(ctx ComponentStatusReqCtx) (*v1.StatefulSet, error)

func GetProxyDaemonSetNamespacedName

func GetProxyDaemonSetNamespacedName(nameOverride string, clusterNamespacedName types.NamespacedName) types.NamespacedName

func GetProxyStatus added in v1.0.1

func GetProxyStatus(ctx ComponentStatusReqCtx) (*v1.DaemonSet, error)

func GetUpdateConfigmapName added in v1.0.1

func GetUpdateConfigmapName(nameOverride, clusterName string) string

func GetUpdateJobName added in v1.0.1

func GetUpdateJobName(updateName string) string

func GetWorkerDeploymentNamespacedName

func GetWorkerDeploymentNamespacedName(nameOverride string, clusterNamespacedName types.NamespacedName) types.NamespacedName

func GetWorkerStatus added in v1.0.1

func GetWorkerStatus(ctx ComponentStatusReqCtx) (*v1.Deployment, error)

func HelmDeleteIfExist

func HelmDeleteIfExist(ctx HelmContext) error

func HelmInstall

func HelmInstall(ctx HelmContext) error

func IfHelmReleaseExists

func IfHelmReleaseExists(ctx HelmContext) (bool, error)

Types

type ComponentStatusReqCtx added in v1.0.1

type HelmContext

type HelmContext struct {
	HelmChartPath  string
	ConfigFilePath string
	Namespace      string
	ReleaseName    string
}

Jump to

Keyboard shortcuts

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