argo

package
v0.7.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 20 Imported by: 6

Documentation

Index

Constants

View Source
const (
	DEVTRON_USER                     = "devtron"
	DEVTRONCD_NAMESPACE              = "devtroncd"
	ARGOCD_CM                        = "argocd-cm"
	ARGOCD_SECRET                    = "argocd-secret"
	ARGO_USER_APIKEY_CAPABILITY      = "apiKey"
	ARGO_USER_LOGIN_CAPABILITY       = "login"
	DEVTRON_ARGOCD_USERNAME_KEY      = "DEVTRON_ACD_USER_NAME"
	DEVTRON_ARGOCD_USER_PASSWORD_KEY = "DEVTRON_ACD_USER_PASSWORD"
	DEVTRON_ARGOCD_TOKEN_KEY         = "DEVTRON_ACD_TOKEN"
	DEVTRON_CM                       = "devtron-cm"
	DEVTRON_SECRET                   = "devtron-secret"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoUserService

type ArgoUserService interface {
	GetLatestDevtronArgoCdUserToken() (string, error)
	ValidateGitOpsAndGetOrUpdateArgoCdUserDetail() string
	GetOrUpdateArgoCdUserDetail() string

	GetACDContext(ctx context.Context) (acdContext context.Context, err error)
	SetAcdTokenInContext(ctx context.Context) (context.Context, error)
}

type ArgoUserServiceImpl

type ArgoUserServiceImpl struct {
	// contains filtered or unexported fields
}

func NewArgoUserServiceImpl

func NewArgoUserServiceImpl(Logger *zap.SugaredLogger, clusterService cluster.ClusterService,
	envVariables *util2.EnvironmentVariables, runTimeConfig *client.RuntimeConfig,
	argoCDConnectionManager connection.ArgoCDConnectionManager, versionService argocdServer.VersionService,
	k8sUtil *k8s.K8sServiceImpl, gitOpsConfigReadService config.GitOpsConfigReadService) (*ArgoUserServiceImpl, error)

func (*ArgoUserServiceImpl) GetACDContext added in v0.7.1

func (impl *ArgoUserServiceImpl) GetACDContext(ctx context.Context) (acdContext context.Context, err error)

func (*ArgoUserServiceImpl) GetLatestDevtronArgoCdUserToken

func (impl *ArgoUserServiceImpl) GetLatestDevtronArgoCdUserToken() (string, error)

note: this function also called for no gitops case, where apps are installed via helm

func (*ArgoUserServiceImpl) GetOrUpdateArgoCdUserDetail added in v0.5.3

func (impl *ArgoUserServiceImpl) GetOrUpdateArgoCdUserDetail() string

func (*ArgoUserServiceImpl) SetAcdTokenInContext added in v0.6.29

func (impl *ArgoUserServiceImpl) SetAcdTokenInContext(ctx context.Context) (context.Context, error)

func (*ArgoUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail added in v0.5.3

func (impl *ArgoUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail() string

type HelmUserServiceImpl

type HelmUserServiceImpl struct {
	// contains filtered or unexported fields
}

TODO : remove this service completely

func NewHelmUserServiceImpl

func NewHelmUserServiceImpl(Logger *zap.SugaredLogger) (*HelmUserServiceImpl, error)

func (*HelmUserServiceImpl) GetACDContext added in v0.7.1

func (impl *HelmUserServiceImpl) GetACDContext(context.Context) (acdContext context.Context, err error)

func (*HelmUserServiceImpl) GetLatestDevtronArgoCdUserToken

func (impl *HelmUserServiceImpl) GetLatestDevtronArgoCdUserToken() (string, error)

func (*HelmUserServiceImpl) GetOrUpdateArgoCdUserDetail added in v0.5.3

func (impl *HelmUserServiceImpl) GetOrUpdateArgoCdUserDetail() string

func (*HelmUserServiceImpl) SetAcdTokenInContext added in v0.6.29

func (impl *HelmUserServiceImpl) SetAcdTokenInContext(ctx context.Context) (context.Context, error)

func (*HelmUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail added in v0.5.3

func (impl *HelmUserServiceImpl) ValidateGitOpsAndGetOrUpdateArgoCdUserDetail() string

Jump to

Keyboard shortcuts

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