Skip to content
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: Intermittent helm apps deployment fail deployed through gitops #3756

Merged
merged 8 commits into from
Aug 14, 2023

Conversation

Shivam-nagar23
Copy link
Member

@Shivam-nagar23 Shivam-nagar23 commented Aug 11, 2023

Description

Intermittent helm apps deployment fail deployed through gitops
Fixes #3716

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

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires 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.

Does this PR introduce a user-facing change?


@Shivam-nagar23 Shivam-nagar23 linked an issue Aug 11, 2023 that may be closed by this pull request
2 tasks
}
err = impl.AddConfigFileToChart(valuesConfig, dir, clonedDir)
if err != nil {
impl.logger.Errorw("error in adding requirements.yaml to chart", "err", err, "appName", PushChartToGitRequest.AppName)
Copy link
Member

Choose a reason for hiding this comment

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

incorrect log

}
}
impl.logger.Debugw("template committed", "url", PushChartToGitRequest.RepoURL, "commit", commit)
defer impl.chartTemplateService.CleanDir(clonedDir)
return &util.ChartGitAttribute{RepoUrl: PushChartToGitRequest.RepoURL, ChartLocation: filepath.Join("", acdAppName)}, nil
return &util.ChartGitAttribute{RepoUrl: PushChartToGitRequest.RepoURL, ChartLocation: filepath.Join("", acdAppName)}, commit, err
Copy link
Member

Choose a reason for hiding this comment

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

what difference is empty string making in filepath.Join?

@kartik-579
Copy link
Member

@Shivam-nagar23 two checks are failing - Validate Pull Request and Semantic PR. Please have them fixed.

@Shivam-nagar23 Shivam-nagar23 changed the title Fix: Intermittent helm apps deployment fail deployed through gitops fix: Intermittent helm apps deployment fail deployed through gitops Aug 14, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Shivam-nagar23 Shivam-nagar23 merged commit 01ff25c into main Aug 14, 2023
5 of 6 checks passed
@Shivam-nagar23 Shivam-nagar23 deleted the gitops-deployment-fail-fix branch August 14, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: helm apps deployments failing intermittently in case of gitops
3 participants