chartRepo

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LABEL    string = "argocd.argoproj.io/secret-type"
	NAME     string = "name"
	USERNAME string = "username"
	PASSWORD string = "password"
	TYPE     string = "type"
	URL      string = "url"
	INSECRUE string = "insecure"
)

secret keys

View Source
const (
	HELM       string = "helm"
	REPOSITORY string = "repository"
)

secret values

View Source
const ValidationSuccessMsg = "Configurations are validated successfully"

Variables

This section is empty.

Functions

This section is empty.

Types

type AcdConfigMapRepositoriesDto

type AcdConfigMapRepositoriesDto struct {
	Type           string  `json:"type,omitempty"`
	Name           string  `json:"name,omitempty"`
	Url            string  `json:"url,omitempty"`
	UsernameSecret *KeyDto `json:"usernameSecret,omitempty"`
	PasswordSecret *KeyDto `json:"passwordSecret,omitempty"`
	CaSecret       *KeyDto `json:"caSecret,omitempty"`
	CertSecret     *KeyDto `json:"certSecret,omitempty"`
	KeySecret      *KeyDto `json:"keySecret,omitempty"`
}

type AppSyncConfig added in v0.4.28

type AppSyncConfig struct {
	DbConfig                         sql.Config
	DockerImage                      string
	AppSyncJobResourcesObj           string
	ChartProviderConfig              *ChartProviderConfig
	AppSyncServiceAccount            string
	ParallelismLimitForTagProcessing int
}

type ChartProviderConfig added in v0.6.23

type ChartProviderConfig struct {
	ChartProviderId string
	IsOCIRegistry   bool
}

type ChartRepoDto

type ChartRepoDto struct {
	Id                      int                 `json:"id,omitempty" validate:"number"`
	Name                    string              `json:"name,omitempty" validate:"required"`
	Url                     string              `json:"url,omitempty"`
	UserName                string              `json:"userName,omitempty"`
	Password                string              `json:"password,omitempty"`
	SshKey                  string              `json:"sshKey,omitempty"`
	AccessToken             string              `json:"accessToken,omitempty"`
	AuthMode                repository.AuthMode `json:"authMode,omitempty" validate:"required"`
	Active                  bool                `json:"active"`
	Default                 bool                `json:"default"`
	UserId                  int32               `json:"-"`
	AllowInsecureConnection bool                `json:"allow_insecure_connection"`
}

type ChartRepoWithIsEditableDto added in v0.6.17

type ChartRepoWithIsEditableDto struct {
	ChartRepoDto
	IsEditable bool `json:"isEditable"`
}

type ChartRepositoryService

type ChartRepositoryService interface {
	CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
	UpdateData(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)
	GetChartRepoById(id int) (*ChartRepoDto, error)
	GetChartRepoByName(name string) (*ChartRepoDto, error)
	GetChartRepoList() ([]*ChartRepoWithIsEditableDto, error)
	GetChartRepoListMin() ([]*ChartRepoDto, error)
	ValidateChartRepo(request *ChartRepoDto) *DetailedErrorHelmRepoValidation
	ValidateAndCreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation)
	ValidateAndUpdateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error, *DetailedErrorHelmRepoValidation)
	TriggerChartSyncManual(chartProviderConfig *ChartProviderConfig) error
	DeleteChartRepo(request *ChartRepoDto) error
	DeleteChartSecret(secretName string) error
}

type ChartRepositoryServiceImpl

type ChartRepositoryServiceImpl struct {
	K8sUtil *util3.K8sServiceImpl
	// contains filtered or unexported fields
}

func NewChartRepositoryServiceImpl

func NewChartRepositoryServiceImpl(logger *zap.SugaredLogger, repoRepository chartRepoRepository.ChartRepoRepository, K8sUtil *util3.K8sServiceImpl, clusterService cluster.ClusterService,
	aCDAuthConfig *util2.ACDAuthConfig, client *http.Client, serverEnvConfig *serverEnvConfig.ServerEnvConfig) *ChartRepositoryServiceImpl

func (*ChartRepositoryServiceImpl) CreateChartRepo

func (impl *ChartRepositoryServiceImpl) CreateChartRepo(request *ChartRepoDto) (*chartRepoRepository.ChartRepo, error)

func (*ChartRepositoryServiceImpl) CreateSecretDataForHelmChart added in v0.6.18

func (impl *ChartRepositoryServiceImpl) CreateSecretDataForHelmChart(request *ChartRepoDto, isPrivateChart bool) (secretData map[string]string)

Private helm charts credentials are saved as secrets

func (*ChartRepositoryServiceImpl) DeleteChartRepo

func (impl *ChartRepositoryServiceImpl) DeleteChartRepo(request *ChartRepoDto) error

DeleteChartRepo update the active state from DB and modify the argo-cm with repo URL to null in case of public chart and delete secret in case of private chart

func (*ChartRepositoryServiceImpl) DeleteChartSecret added in v0.6.17

func (impl *ChartRepositoryServiceImpl) DeleteChartSecret(secretName string) error

func (*ChartRepositoryServiceImpl) GetChartRepoById

func (impl *ChartRepositoryServiceImpl) GetChartRepoById(id int) (*ChartRepoDto, error)

func (*ChartRepositoryServiceImpl) GetChartRepoByName added in v0.4.24

func (impl *ChartRepositoryServiceImpl) GetChartRepoByName(name string) (*ChartRepoDto, error)

func (*ChartRepositoryServiceImpl) GetChartRepoList

func (impl *ChartRepositoryServiceImpl) GetChartRepoList() ([]*ChartRepoWithIsEditableDto, error)

func (*ChartRepositoryServiceImpl) GetChartRepoListMin added in v0.6.17

func (impl *ChartRepositoryServiceImpl) GetChartRepoListMin() ([]*ChartRepoDto, error)

func (*ChartRepositoryServiceImpl) TriggerChartSyncManual

func (impl *ChartRepositoryServiceImpl) TriggerChartSyncManual(chartProviderConfig *ChartProviderConfig) error

func (*ChartRepositoryServiceImpl) UpdateData added in v0.6.17

func (*ChartRepositoryServiceImpl) ValidateAndCreateChartRepo

func (*ChartRepositoryServiceImpl) ValidateAndUpdateChartRepo

func (*ChartRepositoryServiceImpl) ValidateChartRepo

func (impl *ChartRepositoryServiceImpl) ValidateChartRepo(request *ChartRepoDto) *DetailedErrorHelmRepoValidation

type DetailedErrorHelmRepoValidation

type DetailedErrorHelmRepoValidation struct {
	CustomErrMsg string `json:"customErrMsg"`
	ActualErrMsg string `json:"actualErrMsg"`
}

type KeyDto

type KeyDto struct {
	Name string `json:"name,omitempty"`
	Key  string `json:"key,omitempty"`
	Url  string `json:"url,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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