Skip to content

[Fix] propagate subscriptionDependency in CAPApplication templates#108

Merged
anirudhprasad-sap merged 2 commits into
mainfrom
subscriptionDependencyInCA
May 29, 2026
Merged

[Fix] propagate subscriptionDependency in CAPApplication templates#108
anirudhprasad-sap merged 2 commits into
mainfrom
subscriptionDependencyInCA

Conversation

@anirudhprasad-sap
Copy link
Copy Markdown
Contributor

@anirudhprasad-sap anirudhprasad-sap commented May 29, 2026

Propagate subscriptionDependency in CAPApplication Templates

Bug Fix

🐛 Fixed the missing propagation of the subscriptionDependency field from serviceInstances to the btp.services section in generated CAPApplication Helm templates. When a service instance had subscriptionDependency configured, it was previously not included in the rendered output.

Changes

  • lib/util.js: Added a conditional block to emit the subscriptionDependency field in the btp.services section of the CAPApplication template when the field is present on a service instance.
  • package.json: Bumped version from 0.16.0 to 0.16.1.
  • CHANGELOG.md: Added changelog entry for version 0.16.1 documenting the fix.
  • test/files/expectedChart/templates/cap-operator-cros*.yaml: Updated all expected chart snapshot files to include the new subscriptionDependency conditional block.
  • test/files/expectedConfigurableTemplatesChart/templates/cap-operator-cros*.yaml: Updated all configurable template chart snapshots similarly to reflect the fix.
  • 🔄 Regenerate and Update Summary
PR Bot Information

Version: 1.21.1

  • Correlation ID: 4e2afe54-d0f2-4cbf-a045-5ba599ed347a
  • Output Template: Default Template
  • Summary Prompt: Default Prompt
  • Event Trigger: pull_request.opened
  • LLM: anthropic--claude-4.6-sonnet
  • File Content Strategy: Full file content

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 pull request is a focused, well-scoped change that consistently propagates the subscriptionDependency field from serviceInstances into the btp.services section of the CAPApplication template across both the generator (lib/util.js) and all 13 test fixture files. The only substantive issue found is that the value is rendered unquoted, which could silently produce invalid or misinterpreted YAML if the field value contains YAML-special characters — piping through | quote would make it robust.

PR Bot Information

Version: 1.21.1

  • File Content Strategy: Full file content
  • Event Trigger: pull_request.opened
  • Correlation ID: 4e2afe54-d0f2-4cbf-a045-5ba599ed347a
  • LLM: anthropic--claude-4.6-sonnet

Comment thread lib/util.js
@anirudhprasad-sap anirudhprasad-sap changed the title [Misc] propagate subscriptionDependency in CAPApplication templates [Fix] propagate subscriptionDependency in CAPApplication templates May 29, 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 31a2daf into main May 29, 2026
6 of 7 checks passed
@anirudhprasad-sap anirudhprasad-sap deleted the subscriptionDependencyInCA branch May 29, 2026 17:33
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.

2 participants