Skip to content

feat: upgrade CAP Operator API version from v1alpha1 to v1alpha2 - #126

Open
anirudhprasad-sap wants to merge 2 commits into
mainfrom
v1alpha2
Open

anirudhprasad-sap wants to merge 2 commits into
mainfrom
v1alpha2

Conversation

@anirudhprasad-sap

Copy link
Copy Markdown
Contributor
  • Updated schema generation to use v1alpha2 for DomainRef, WorkloadDetails, ServiceExposure, and TenantOperations.
  • Enhanced add.js to warn users when existing templates use the deprecated v1alpha1 API version.
  • Modified utility functions to generate YAML with the new v1alpha2 API version.
  • Updated package version to 0.21.0 in package.json and package-lock.json.
  • Added tests to verify the correct rendering of resources with the new API version and optional maxSubscriptions field.
  • Adjusted expected templates and test files to reflect changes in API version.

- Updated schema generation to use v1alpha2 for DomainRef, WorkloadDetails, ServiceExposure, and TenantOperations.
- Enhanced add.js to warn users when existing templates use the deprecated v1alpha1 API version.
- Modified utility functions to generate YAML with the new v1alpha2 API version.
- Updated package version to 0.21.0 in package.json and package-lock.json.
- Added tests to verify the correct rendering of resources with the new API version and optional maxSubscriptions field.
- Adjusted expected templates and test files to reflect changes in API version.
@hyperspace-pr-bot

Copy link
Copy Markdown
Contributor

Summary

The following content is AI-generated and provides a summary of the pull request:


Upgrade CAP Operator Resources to API v1alpha2

New Features

✨ Upgrades generated CAP Operator resources from sme.sap.com/v1alpha1 to v1alpha2, adds optional maxSubscriptions support, and warns users when existing charts still contain deprecated API templates.

Version 0.21.0 requires CAP Operator v0.37.0 or later.

Changes

  • lib/util.js: Generates CAPApplication, CAPApplicationVersion, Domain, and domain lookups with v1alpha2; conditionally renders maxSubscriptions.
  • lib/add.js: Recursively detects existing v1alpha1 chart templates and displays a migration warning without modifying them.
  • hack/schema-generation.go: Uses CAP Operator v1alpha2 types and adds schema generation for app.maxSubscriptions.
  • files/*/values.schema.json: Adds validated maxSubscriptions support and incorporates schema fields from the updated operator dependencies.
  • hack/go.mod and hack/go.sum: Upgrade CAP Operator schema tooling to v0.38.0 and refresh related Go and Kubernetes dependencies.
  • README.md: Documents the minimum CAP Operator version and the new maxSubscriptions value.
  • package.json and package-lock.json: Bump the plugin version to 0.21.0.
  • test/add.test.js and test fixtures: Verify v1alpha2 rendering, optional maxSubscriptions, migration warnings, and update expected chart templates.

  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.33.13

  • File Content Strategy: Full file content
  • Event Trigger: pull_request.opened
  • Summary Prompt: Default Prompt
  • Correlation ID: f8087d30-d218-11f1-8eca-7b2fab5544da
  • LLM: gpt-5.6-sol
  • Output Template: Default Template

@hyperspace-pr-bot hyperspace-pr-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The v1alpha2 migration is generally consistent across schemas, templates, and tests. Two release and upgrade-path gaps should be addressed before merging.

PR Bot Information

Version: 1.33.13

  • LLM: gpt-5.6-sol
  • File Content Strategy: Full file content
  • Correlation ID: f8087d30-d218-11f1-8eca-7b2fab5544da
  • Event Trigger: pull_request.opened

Comment thread lib/add.js
Comment thread package.json
@sonarqubecloud

Copy link
Copy Markdown

This branch was successfully deployed

1 active deployment
build — 2ee47c63 Deployed Oct 27, 2026 by anirudhprasad-sap via Analyze with Sonar Cloud #450
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.

1 participant