Skip to content

feat(cluster): add secret manager creation step#2719

Open
rmnbrd wants to merge 1 commit into
feat/secrets-manager-cluster-settingsfrom
feat/secrets-manager-cluster-creation-flow
Open

feat(cluster): add secret manager creation step#2719
rmnbrd wants to merge 1 commit into
feat/secrets-manager-cluster-settingsfrom
feat/secrets-manager-cluster-creation-flow

Conversation

@rmnbrd
Copy link
Copy Markdown
Contributor

@rmnbrd rmnbrd commented May 29, 2026

Summary

⚠️ Based on #2718

Adds secret manager configuration to the cluster creation flow, including the add-ons step, creation context data, summary display, and payload wiring.

Screenshots / Recordings

Testing

  • Changes tested locally in the relevant Console's pages and Storybooks
  • yarn test or yarn test -u (if you need to regenerate snapshots)
  • yarn format
  • yarn lint

PR Checklist

  • I followed naming, styling, and TypeScript rules (see .cursor/rules)
  • I performed a self-review (diff inspected, dead code removed)
  • I titled the PR using Conventional Commits with a scope when possible (e.g. feat(service): add new Terraform service) - required for semantic-release
  • I only kept necessary comments, written in English (watch for useless AI comments)
  • I involved a designer to validate UI changes if I am not a designer
  • I covered new business logic with tests (unit)
  • I confirmed CI is green (Codecov red can be accepted)
  • I reviewed and executed locally any AI-assisted code

@rmnbrd rmnbrd marked this pull request as ready for review May 29, 2026 15:25
Copilot AI review requested due to automatic review settings May 29, 2026 15:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an add-ons step to the cluster creation flow for managed AWS/GCP clusters, wiring KEDA and secret manager configuration into context, summary display, routing, and create-cluster payloads.

Changes:

  • Adds ClusterAddonsData to cluster creation context and inserts an addons step for managed AWS/GCP flows.
  • Introduces the add-ons UI with KEDA toggle and secret manager integration management.
  • Updates routing, summary rendering, payload creation, exports, and related tests/mocks.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-summary/step-summary.tsx Adds add-ons payload wiring, feature flag use, summary navigation, and add-ons props.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-summary/step-summary.spec.tsx Adds PostHog mock and add-ons context defaults.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-summary/step-summary-presentation.tsx Displays KEDA and secret manager add-ons in the summary.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-summary/step-summary-presentation.spec.tsx Updates default props for add-ons summary support.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-resources/step-resources.spec.tsx Adds add-ons context defaults to test setup.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-general/step-general.tsx Sets the current funnel step for the general step.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-general/step-general.spec.tsx Adds add-ons context defaults to test setup.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-features/step-features.spec.tsx Adds add-ons context defaults to test setup.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-addons/step-addons.tsx Adds the new add-ons step UI and state synchronization.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-creation-flow.tsx Extends creation context and step definitions for add-ons.
libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-creation-flow.spec.tsx Updates step expectations for AWS/GCP add-ons flow.
libs/domains/clusters/feature/src/index.ts Exports the new add-ons step.
apps/console/src/routeTree.gen.ts Registers the generated add-ons route.
apps/console/src/routes/_authenticated/organization/$organizationId/cluster/create/$slug/features.tsx Routes AWS/GCP feature submission to add-ons before summary.
apps/console/src/routes/_authenticated/organization/$organizationId/cluster/create/$slug/addons.tsx Adds the console route for the add-ons step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


useEffect(() => {
if (!generalData?.name) {
if (!generalData) {
{showSecretManagerSummary && props.addonsData.secretManagers.length > 0 && (
<div className="mt-3 space-y-3 border-t border-neutral pt-3 text-sm text-neutral-subtle">
{props.addonsData.secretManagers.map((manager, index) => (
<div key={manager.id} className="space-y-3">
Comment on lines +52 to +56
useEffect(() => {
setAddonsData({
kedaActivated: kedaEnabled,
secretManagers: secretManagerEnabled ? integrations : [],
})
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

❌ Patch coverage is 20.28986% with 55 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.58%. Comparing base (f738a96) to head (02e9796).

Files with missing lines Patch % Lines
.../cluster-creation-flow/step-addons/step-addons.tsx 0.00% 40 Missing ⚠️
...on-flow/step-summary/step-summary-presentation.tsx 36.36% 3 Missing and 4 partials ⚠️
...luster-creation-flow/step-summary/step-summary.tsx 30.00% 5 Missing and 2 partials ⚠️
...luster-creation-flow/step-general/step-general.tsx 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                            Coverage Diff                            @@
##           feat/secrets-manager-cluster-settings    #2719      +/-   ##
=========================================================================
- Coverage                                  46.07%   45.58%   -0.50%     
=========================================================================
  Files                                       1187      707     -480     
  Lines                                      24831    17731    -7100     
  Branches                                    7306     5338    -1968     
=========================================================================
- Hits                                       11442     8082    -3360     
+ Misses                                     11407     8198    -3209     
+ Partials                                    1982     1451     -531     
Flag Coverage Δ
unittests 45.58% <20.28%> (-0.50%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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