Skip to content

[Misc] Add support for configurable application version in chart#92

Merged
anirudhprasad-sap merged 2 commits intomainfrom
cavVersionConfigurable
Apr 23, 2026
Merged

[Misc] Add support for configurable application version in chart#92
anirudhprasad-sap merged 2 commits intomainfrom
cavVersionConfigurable

Conversation

@anirudhprasad-sap
Copy link
Copy Markdown
Contributor

@anirudhprasad-sap anirudhprasad-sap commented Apr 23, 2026

Fix for #91

Copy link
Copy Markdown
Contributor

@hyperspace-insights hyperspace-insights Bot left a comment

Choose a reason for hiding this comment

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

The core issue is already captured in the comment posted on lib/util.js line 321.

Summary: The PR correctly adds app.version support for GitOps/Argo CD scenarios, with proper schema updates across both chart variants and consistent test fixture updates. However, there is one significant logic defect: the capApplicationVersionName helper template (which sets the Kubernetes resource name) always uses .Release.Revision, while spec.version now uses app.version when set. This mismatch means that in the GitOps use case this feature targets, the resource name won't reflect the custom version string, undermining the feature's usefulness and potentially confusing the CAP operator.

PR Bot Information

Version: 1.20.27

  • Event Trigger: pull_request.opened
  • File Content Strategy: Full file content
  • LLM: anthropic--claude-4.6-sonnet
  • Correlation ID: 91769240-ad57-4473-bb5e-e77b38ba033b

Comment thread lib/util.js
@sonarqubecloud
Copy link
Copy Markdown

@cap-js cap-js deleted a comment from hyperspace-insights Bot Apr 23, 2026
Copy link
Copy Markdown
Contributor

@Pavan-SAP Pavan-SAP left a comment

Choose a reason for hiding this comment

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

@anirudhprasad-sap anirudhprasad-sap merged commit 80e60b8 into main Apr 23, 2026
9 checks passed
@anirudhprasad-sap anirudhprasad-sap deleted the cavVersionConfigurable branch April 23, 2026 14:08
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.

cap-operator-plugin generates invalid semver versions incompatible with cap-operator

2 participants