Skip to content

Conversation

@vikramdevtron
Copy link
Contributor

@vikramdevtron vikramdevtron commented Mar 25, 2022

Description

User not able to go back to previous values as we don't have build history ye. added API support where user can deploy re-deploy to a specific older configuration with same chart version or other chart version.

User now able to rollback to specific older version of deployment history.

Fixes # (issue) :1298

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Create a build history of chart version, Deploy multiple times
  • Rollback to older version.

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have tested it for all user roles
  • I have added all the required unit/api test cases

func (impl AppStoreDeploymentFullModeServiceImpl) UpdateValuesYaml(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*appStoreBean.InstallAppVersionDTO, error) {
acdAppName := fmt.Sprintf("%s-%s", installAppVersionRequest.AppName, installAppVersionRequest.EnvironmentName)
gitOpsRepoName := installAppVersionRequest.GitOpsRepoName
if len(gitOpsRepoName) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we are using similar code to fetch gitops repo at other places also.. should extact it out as function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}
gitOpsConfigBitbucket, err := impl.gitOpsRepository.GetGitOpsConfigByProvider(util.BITBUCKET_PROVIDER)
if err != nil {
if err == pg.ErrNoRows {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code should be inside GetGitOpsConfigByProvider

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetGitOpsConfigByProvider has only its global config services

@pghildiyal pghildiyal merged commit 55e41c6 into main Mar 28, 2022
@pghildiyal pghildiyal deleted the devtron-charts-deployment-rollback branch March 28, 2022 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Support for rollback release for non-hyperion-app release (gitops way)

3 participants