Documentation
¶
Index ¶
- func PatchWinterSoldierConfig(override json.RawMessage, newChartType string) (json.RawMessage, error)
- func PatchWinterSoldierIfExists(newChartType string, jsonMap map[string]json.RawMessage) (map[string]json.RawMessage, error)
- type ChartService
- type ChartServiceImpl
- func (impl *ChartServiceImpl) ChartRefAutocompleteForAppOrEnv(appId int, envId int) (*chartRefBean.ChartRefAutocompleteResponse, error)
- func (impl *ChartServiceImpl) CheckIfChartRefUserUploadedByAppId(id int) (bool, error)
- func (impl *ChartServiceImpl) ConfigureGitOpsRepoUrlForApp(appId int, repoUrl, chartLocation string, isCustomRepo bool, userId int32) (*bean2.DeploymentConfig, error)
- func (impl *ChartServiceImpl) Create(templateRequest bean3.TemplateRequest, ctx context.Context) (*bean3.TemplateRequest, error)
- func (impl *ChartServiceImpl) CreateChartFromEnvOverride(templateRequest bean3.TemplateRequest, ctx context.Context) (*bean3.TemplateRequest, error)
- func (impl *ChartServiceImpl) FindPreviousChartByAppId(appId int) (chartTemplate *bean3.TemplateRequest, err error)
- func (impl *ChartServiceImpl) GetByAppIdAndChartRefId(appId int, chartRefId int) (chartTemplate *bean3.TemplateRequest, err error)
- func (impl *ChartServiceImpl) IsGitOpsRepoAlreadyRegistered(gitOpsRepoUrl string) (bool, error)
- func (impl *ChartServiceImpl) IsGitOpsRepoConfiguredForDevtronApp(appId int) (bool, error)
- func (impl *ChartServiceImpl) IsReadyToTrigger(appId int, envId int, pipelineId int) (IsReady, error)
- func (impl *ChartServiceImpl) PatchEnvOverrides(values json.RawMessage, oldChartType string, newChartType string) (json.RawMessage, error)
- func (impl *ChartServiceImpl) UpdateAppOverride(ctx context.Context, templateRequest *bean3.TemplateRequest) (*bean3.TemplateRequest, error)
- func (impl *ChartServiceImpl) UpdateChartLocationForEnvironmentConfigs(appId, chartRefId int, userId int32, version string) error
- func (impl *ChartServiceImpl) UpgradeForApp(appId int, chartRefId int, newAppOverride map[string]interface{}, userId int32, ...) (bool, error)
- type IsReady
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PatchWinterSoldierConfig ¶ added in v0.6.21
func PatchWinterSoldierConfig(override json.RawMessage, newChartType string) (json.RawMessage, error)
func PatchWinterSoldierIfExists ¶ added in v0.6.21
func PatchWinterSoldierIfExists(newChartType string, jsonMap map[string]json.RawMessage) (map[string]json.RawMessage, error)
Types ¶
type ChartService ¶
type ChartService interface { Create(templateRequest bean3.TemplateRequest, ctx context.Context) (chart *bean3.TemplateRequest, err error) CreateChartFromEnvOverride(templateRequest bean3.TemplateRequest, ctx context.Context) (chart *bean3.TemplateRequest, err error) GetByAppIdAndChartRefId(appId int, chartRefId int) (chartTemplate *bean3.TemplateRequest, err error) UpdateAppOverride(ctx context.Context, templateRequest *bean3.TemplateRequest) (*bean3.TemplateRequest, error) IsReadyToTrigger(appId int, envId int, pipelineId int) (IsReady, error) FindPreviousChartByAppId(appId int) (chartTemplate *bean3.TemplateRequest, err error) UpgradeForApp(appId int, chartRefId int, newAppOverride map[string]interface{}, userId int32, ctx context.Context) (bool, error) CheckIfChartRefUserUploadedByAppId(id int) (bool, error) PatchEnvOverrides(values json.RawMessage, oldChartType string, newChartType string) (json.RawMessage, error) ChartRefAutocompleteForAppOrEnv(appId int, envId int) (*chartRefBean.ChartRefAutocompleteResponse, error) ConfigureGitOpsRepoUrlForApp(appId int, repoUrl, chartLocation string, isCustomRepo bool, userId int32) (*bean2.DeploymentConfig, error) IsGitOpsRepoConfiguredForDevtronApp(appId int) (bool, error) IsGitOpsRepoAlreadyRegistered(gitOpsRepoUrl string) (bool, error) }
type ChartServiceImpl ¶
type ChartServiceImpl struct {
// contains filtered or unexported fields
}
func NewChartServiceImpl ¶
func NewChartServiceImpl(chartRepository chartRepoRepository.ChartRepository, logger *zap.SugaredLogger, chartTemplateService util.ChartTemplateService, repoRepository chartRepoRepository.ChartRepoRepository, pipelineGroupRepository app.AppRepository, mergeUtil util.MergeUtil, envOverrideRepository chartConfig.EnvConfigOverrideRepository, pipelineConfigRepository chartConfig.PipelineConfigRepository, environmentRepository repository.EnvironmentRepository, deploymentTemplateHistoryService deploymentTemplate.DeploymentTemplateHistoryService, scopedVariableManager variables.ScopedVariableManager, deployedAppMetricsService deployedAppMetrics.DeployedAppMetricsService, chartRefService chartRef.ChartRefService, gitOpsConfigReadService config.GitOpsConfigReadService, deploymentConfigService common.DeploymentConfigService, envConfigOverrideReadService read.EnvConfigOverrideService, chartReadService read2.ChartReadService) *ChartServiceImpl
func (*ChartServiceImpl) ChartRefAutocompleteForAppOrEnv ¶
func (impl *ChartServiceImpl) ChartRefAutocompleteForAppOrEnv(appId int, envId int) (*chartRefBean.ChartRefAutocompleteResponse, error)
func (*ChartServiceImpl) CheckIfChartRefUserUploadedByAppId ¶ added in v0.6.29
func (impl *ChartServiceImpl) CheckIfChartRefUserUploadedByAppId(id int) (bool, error)
func (*ChartServiceImpl) ConfigureGitOpsRepoUrlForApp ¶ added in v0.7.2
func (impl *ChartServiceImpl) ConfigureGitOpsRepoUrlForApp(appId int, repoUrl, chartLocation string, isCustomRepo bool, userId int32) (*bean2.DeploymentConfig, error)
func (*ChartServiceImpl) Create ¶
func (impl *ChartServiceImpl) Create(templateRequest bean3.TemplateRequest, ctx context.Context) (*bean3.TemplateRequest, error)
func (*ChartServiceImpl) CreateChartFromEnvOverride ¶
func (impl *ChartServiceImpl) CreateChartFromEnvOverride(templateRequest bean3.TemplateRequest, ctx context.Context) (*bean3.TemplateRequest, error)
func (*ChartServiceImpl) FindPreviousChartByAppId ¶
func (impl *ChartServiceImpl) FindPreviousChartByAppId(appId int) (chartTemplate *bean3.TemplateRequest, err error)
func (*ChartServiceImpl) GetByAppIdAndChartRefId ¶
func (impl *ChartServiceImpl) GetByAppIdAndChartRefId(appId int, chartRefId int) (chartTemplate *bean3.TemplateRequest, err error)
func (*ChartServiceImpl) IsGitOpsRepoAlreadyRegistered ¶ added in v0.6.29
func (impl *ChartServiceImpl) IsGitOpsRepoAlreadyRegistered(gitOpsRepoUrl string) (bool, error)
func (*ChartServiceImpl) IsGitOpsRepoConfiguredForDevtronApp ¶ added in v0.7.2
func (impl *ChartServiceImpl) IsGitOpsRepoConfiguredForDevtronApp(appId int) (bool, error)
func (*ChartServiceImpl) IsReadyToTrigger ¶
func (*ChartServiceImpl) PatchEnvOverrides ¶ added in v0.6.21
func (impl *ChartServiceImpl) PatchEnvOverrides(values json.RawMessage, oldChartType string, newChartType string) (json.RawMessage, error)
func (*ChartServiceImpl) UpdateAppOverride ¶
func (impl *ChartServiceImpl) UpdateAppOverride(ctx context.Context, templateRequest *bean3.TemplateRequest) (*bean3.TemplateRequest, error)
func (*ChartServiceImpl) UpdateChartLocationForEnvironmentConfigs ¶ added in v1.4.0
func (impl *ChartServiceImpl) UpdateChartLocationForEnvironmentConfigs(appId, chartRefId int, userId int32, version string) error
Click to show internal directories.
Click to hide internal directories.