Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors the Redis Cloud integration by removing the
account
entity and its associated functionality, streamlining the subscription management process, and enhancing the flexibility of subscription definitions. Key updates include the removal of account-related files, updates to subscription schemas, and improvements to the subscription synchronization logic.Removal of
account
entity and related functionality:redis-cloud/account-sync.js
: Entire file removed, eliminating functionality for retrieving payment methods and plans.redis-cloud/account.yaml
: Removed theaccount
entity definition and lifecycle configuration.redis-cloud/example.yaml
: Removed theredis-account
entity from the example stack.redis-cloud/MANIFEST
: Removed references toaccount.yaml
andaccount-sync.js
.Enhancements to subscription management:
redis-cloud/subscription-sync.js
: AddedselectPlan
andselectPaymentMethod
functions to dynamically determine the plan ID and payment method ID based on subscription definitions. Updated thesyncSubscription
function to use these new utilities. [1] [2]redis-cloud/subscription.yaml
: Expanded the subscription schema to include new fields likeprovider
,region
,redis_flex
, and various support flags for additional configuration flexibility. [1] [2]redis-cloud/example.yaml
: Updated the subscription example to reflect the new schema, replacingplan_id
with dynamic configuration options such assize
,provider
, andregion
.Documentation updates:
redis-cloud/README.md
: Updated usage instructions to reflect the removal of theaccount
entity, simplified the deployment process, and clarified the creation of secrets and stack deployment steps.