Documentation
¶
Index ¶
- func ConstructRootApp(argocdNs string, clusterName string, repoUrl string, repoBranch string, ...) (*argoappv1.Application, error)
- func Create(appIf argoapp.ApplicationServiceClient, config *restclient.Config, ...) (*argoappv1.Application, error)
- func DeployToGit(config *restclient.Config, argocdNs string, arlonNs string, clusterName string, ...) error
- func ManageExternal(argoIf argoclient.Client, config *restclient.Config, ...) error
- func ProcessDynamicProfile(wt *gogit.Worktree, clusterName string, profileName string, argocdNs string, ...) error
- func UnmanageExternal(argoIf argoclient.Client, config *restclient.Config, ...) error
- func Update(appIf argoapp.ApplicationServiceClient, config *restclient.Config, ...) (*argoappv1.Application, error)
- type Cluster
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructRootApp ¶
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 ManageExternal ¶
func ManageExternal( argoIf argoclient.Client, config *restclient.Config, argocdNs, clusterName string, prof *arlonv1.Profile, ) error
func ProcessDynamicProfile ¶
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)
Click to show internal directories.
Click to hide internal directories.