Skip to content

feat: ArgoCD v2.13.3 support for private chart providers #6766

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

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

prkhrkat
Copy link
Contributor

@prkhrkat prkhrkat commented Jul 28, 2025

Description

Fixes #6736

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?


Summary by Bito

This PR updates the GitOps service to support ArgoCD v2.13.3, enhancing chart metadata handling, improving validation processes, and removing outdated dependencies for better stability and functionality. It also modifies method signatures to include new parameters for enhanced error handling.

Copy link

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n

Copy link

bito-code-review bot commented Jul 28, 2025

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
Feature Improvement - Enhanced Chart Packaging and Deployment Flow

ChartTemplateService.go - Updated PackageChart signatures, improved chart metadata handling, and refined error handling and logging for chart archiving.

AppStoreDeploymentCommonService.go - Refactored functions to use pointer receivers with enhanced error logging, improved proxy chart value extraction, and refined requirement processing for robust chart deployments.

New Feature - ArgoCD and GitOps Enhancements

InstalledAppGitOpsService.go - Revamped GitOps operations with updated manifest generation, dependency migration checks, and improved commit flows to support ArgoCD v2.13.3 and private chart providers.

GitOperationService.go - Refactored Git operations with improved chart cloning, auto-healing logic, and enhanced error logging for Helm app deployments.

Other Improvements - General Code Refinements

wire_gen.go - Modified the go generate comment to correct the command syntax.

bean.go - Adjusted dependency type declarations for chart beans to improve type safety.

Adapter.go - Updated ParseChartCreateRequest to accept a dependencies parameter, refining chart request handling.

bean.go - Renamed configuration fields to align with updated chart metadata structures.

ChartRefService.go - Improved chart metadata handling by using a constant for the Chart.yaml filename to ensure robust file lookups.

bean.go - Added a chart YAML file constant to centralize and standardize its usage across deployments.

Copy link

@bito-code-review bito-code-review bot left a comment

Choose a reason for hiding this comment

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

Code Review Agent Run #0715af

Actionable Suggestions - 1
  • pkg/appStore/installedApp/service/FullMode/deployment/InstalledAppGitOpsService.go - 1
    • Critical null pointer dereference bug · Line 90-92
Additional Suggestions - 1
  • pkg/deployment/gitOps/git/GitOperationService.go - 1
    • Incorrect error logging parameter · Line 314-314
      The error log is incorrectly logging `targetRevision` as the URL instead of `gitRepoUrl`. This will make debugging difficult as the logged URL will be a revision string instead of the actual repository URL. Please change to log `gitRepoUrl`.
      Code suggestion
       @@ -314,1 +314,1 @@
      -			impl.logger.Errorw("error in cloning repo", "url", targetRevision, "err", err)
      +			impl.logger.Errorw("error in cloning repo", "url", gitRepoUrl, "err", err)
Review Details
  • Files reviewed - 10 · Commit Range: 2428b40..2428b40
    • cmd/external-app/wire_gen.go
    • internal/util/ChartTemplateService.go
    • pkg/appStore/bean/bean.go
    • pkg/appStore/installedApp/adapter/Adapter.go
    • pkg/appStore/installedApp/service/FullMode/deployment/InstalledAppGitOpsService.go
    • pkg/appStore/installedApp/service/bean/bean.go
    • pkg/appStore/installedApp/service/common/AppStoreDeploymentCommonService.go
    • pkg/deployment/gitOps/git/GitOperationService.go
    • pkg/deployment/manifest/deploymentTemplate/chartRef/ChartRefService.go
    • pkg/deployment/manifest/deploymentTemplate/chartRef/bean/bean.go
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

Copy link

Bito Banner

Bito's AI Code Review trial is almost over

Your free trial of Bito's AI Code Reviews was setup by [email protected] and is nearly over. Let them know if you'd like to continue getting complete reviews.

Sign in to upgrade

About Bito
Merge PRs 89% faster, with 34% fewer regressions, and 87% of relevant PR feedback provided by Bito's AI Code Reviews. Trusted by 100,000+ developers and 1,000+ engineering teams.

Copy link

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n

Copy link

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n

@Ash-exp Ash-exp changed the title refactor: update chart handling and dependency management in GitOps o… feat: ArgoCD v2.13.3 support for private chart providers Jul 29, 2025
Copy link

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n

Copy link

bito-code-review bot commented Jul 29, 2025

Code Review Agent Run #1d9bce

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 2428b40..7ae6974
    • pkg/appStore/installedApp/service/FullMode/deployment/InstalledAppGitOpsService.go
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@Ash-exp Ash-exp requested a review from pawan-mehta-dt as a code owner July 29, 2025 11:36
Copy link

gitguardian bot commented Jul 31, 2025

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
19465121 Triggered Generic High Entropy Secret 416558b scripts/sql/34304100_bulk_edit_config.up.sql View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Copy link

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at [email protected].

Copy link

sonarqubecloud bot commented Aug 8, 2025

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.

3 participants