deploymentTemplate

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DeploymentTemplateHistoryService added in v1.1.0

type DeploymentTemplateHistoryService interface {
	CreateDeploymentTemplateHistoryFromGlobalTemplate(chart *chartRepoRepository.Chart, tx *pg.Tx, IsAppMetricsEnabled bool) error
	CreateDeploymentTemplateHistoryFromEnvOverrideTemplate(envOverride *bean.EnvConfigOverride, tx *pg.Tx, IsAppMetricsEnabled bool, pipelineId int) error
	CreateDeploymentTemplateHistoryForDeploymentTrigger(pipeline *pipelineConfig.Pipeline, envOverride *bean.EnvConfigOverride, renderedImageTemplate string, deployedOn time.Time, deployedBy int32) (*repository.DeploymentTemplateHistory, error)
}

type DeploymentTemplateHistoryServiceImpl added in v1.1.0

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

func NewDeploymentTemplateHistoryServiceImpl added in v1.1.0

func NewDeploymentTemplateHistoryServiceImpl(logger *zap.SugaredLogger, deploymentTemplateHistoryRepository repository.DeploymentTemplateHistoryRepository,
	pipelineRepository pipelineConfig.PipelineRepository, chartRepository chartRepoRepository.ChartRepository,
	userService user.UserService, cdWorkflowRepository pipelineConfig.CdWorkflowRepository,
	scopedVariableManager variables.ScopedVariableManager, deployedAppMetricsService deployedAppMetrics.DeployedAppMetricsService,
	chartRefService chartRef.ChartRefService) *DeploymentTemplateHistoryServiceImpl

func (DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryForDeploymentTrigger added in v1.1.0

func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryForDeploymentTrigger(pipeline *pipelineConfig.Pipeline, envOverride *bean.EnvConfigOverride, renderedImageTemplate string, deployedOn time.Time, deployedBy int32) (*repository.DeploymentTemplateHistory, error)

func (DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromEnvOverrideTemplate added in v1.1.0

func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromEnvOverrideTemplate(envOverride *bean.EnvConfigOverride, tx *pg.Tx, IsAppMetricsEnabled bool, pipelineId int) (err error)

func (DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromGlobalTemplate added in v1.1.0

func (impl DeploymentTemplateHistoryServiceImpl) CreateDeploymentTemplateHistoryFromGlobalTemplate(chart *chartRepoRepository.Chart, tx *pg.Tx, IsAppMetricsEnabled bool) (err error)

type DeploymentTemplateService

type DeploymentTemplateService interface {
	BuildChartAndGetPath(appName string, envOverride *bean.EnvConfigOverride, ctx context.Context) (string, error)
}

type DeploymentTemplateServiceImpl

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

func NewDeploymentTemplateServiceImpl

func NewDeploymentTemplateServiceImpl(logger *zap.SugaredLogger,
	chartRefService chartRef.ChartRefService,
	chartTemplateService util.ChartTemplateService,
	chartRepository chartRepoRepository.ChartRepository) *DeploymentTemplateServiceImpl

func (*DeploymentTemplateServiceImpl) BuildChartAndGetPath

func (impl *DeploymentTemplateServiceImpl) BuildChartAndGetPath(appName string, envOverride *bean.EnvConfigOverride, ctx context.Context) (string, error)

type DeploymentTemplateValidationService

type DeploymentTemplateValidationService interface {
	DeploymentTemplateValidate(ctx context.Context, template interface{}, chartRefId int, scope resourceQualifiers.Scope) (bool, error)
	FlaggerCanaryEnabled(values json.RawMessage) (bool, error)
}

type DeploymentTemplateValidationServiceImpl

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

func NewDeploymentTemplateValidationServiceImpl

func NewDeploymentTemplateValidationServiceImpl(logger *zap.SugaredLogger,
	chartRefService chartRef.ChartRefService,
	scopedVariableManager variables.ScopedVariableManager) *DeploymentTemplateValidationServiceImpl

func (*DeploymentTemplateValidationServiceImpl) DeploymentTemplateValidate

func (impl *DeploymentTemplateValidationServiceImpl) DeploymentTemplateValidate(ctx context.Context, template interface{}, chartRefId int, scope resourceQualifiers.Scope) (bool, error)

func (*DeploymentTemplateValidationServiceImpl) FlaggerCanaryEnabled

func (impl *DeploymentTemplateValidationServiceImpl) FlaggerCanaryEnabled(values json.RawMessage) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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