cluster

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructRootApp

func ConstructRootApp(
	argocdNs string,
	clusterName string,
	repoUrl string,
	repoBranch string,
	repoPath string,
	clusterSpecName string,
	clusterSpecCm *corev1.ConfigMap,
	profileName string,
	managementClusterUrl string,
) (*argoappv1.Application, error)

func Create

func Create(
	appIf argoapp.ApplicationServiceClient,
	config *restclient.Config,
	argocdNs,
	arlonNs,
	clusterName,
	repoUrl,
	repoBranch,
	basePath,
	clusterSpecName string,
	prof *arlonv1.Profile,
	createInArgoCd bool,
	managementClusterUrl string,
) (*argoappv1.Application, error)

func DeployToGit

func DeployToGit(
	config *restclient.Config,
	argocdNs string,
	arlonNs string,
	clusterName string,
	repoUrl string,
	repoBranch string,
	basePath string,
	prof *arlonv1.Profile,
) error

func ManageExternal

func ManageExternal(
	argoIf argoclient.Client,
	config *restclient.Config,
	argocdNs,
	clusterName string,
	prof *arlonv1.Profile,
) error

func ProcessDynamicProfile

func ProcessDynamicProfile(
	wt *gogit.Worktree,
	clusterName string,
	profileName string,
	argocdNs string,
	repoUrl string,
	repoPath string,
	appPath string,
) error

func UnmanageExternal

func UnmanageExternal(
	argoIf argoclient.Client,
	config *restclient.Config,
	argocdNs,
	clusterName string,
) error

func Update

func Update(
	appIf argoapp.ApplicationServiceClient,
	config *restclient.Config,
	argocdNs,
	arlonNs,
	clusterName,
	clusterSpecName string,
	profileName string,
	updateInArgoCd bool,
	managementClusterUrl string,
) (*argoappv1.Application, error)

Update modifies a cluster to use a different cluster spec or profile, or both. Only some specific changes are allowed. For example, the API provider, cloud provider, or cluster type cannot change, meaning if a new cluster spec is chosen, it must preserve those values. There are no restrictions on the new profile, if one is specified. Bundles associated with the old profile will automatically be removed from the cluster.

Types

type Cluster

type Cluster struct {
	Name            string
	ClusterSpecName string // empty for external clusters
	ProfileName     string
	IsExternal      bool
	SecretName      string // The corresponding argocd secret. Empty for non-external clusters.
}

func Get

func Get(
	appIf argoapp.ApplicationServiceClient,
	config *restclient.Config,
	argocdNs string,
	name string,
) (cl *Cluster, err error)

func List

func List(
	appIf argoapp.ApplicationServiceClient,
	config *restclient.Config,
	argocdNs string,
) (clist []Cluster, err error)

Jump to

Keyboard shortcuts

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