-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: helm app deployment failure #3060
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have provided comments to him offline about PR body and logger comment. Rest looks ok.
pkg/app/AppService.go
Outdated
@@ -2176,17 +2176,27 @@ func (impl *AppServiceImpl) createHelmAppForCdPipeline(overrideRequest *bean.Val | |||
ReleaseIdentifier: releaseIdentifier, | |||
} | |||
helmResponse, err := impl.helmAppClient.InstallReleaseWithCustomChart(ctx, helmInstallRequest) | |||
|
|||
//IMP: update cd pipeline to mark deployment app created, even if helm install fails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we have to mark this true if app does not created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed
Kudos, SonarCloud Quality Gate passed!
|
Description
If the helm install fails during CD, re-triggering the CD gives error as
cannot re-use a name that is still in use
Fixes #3068
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Steps to reproduce the issue is mentioned in above issue.
Steps followed to test the solution:

8. Delete the Environment Overrides 9. Re-trigger the CD pipeline and the deployment should be successfulChecklist:
Does this PR introduce a user-facing change?
NO