Skip to content

feat(installer): split codesphere install into infra and cluster subcommands#491

Open
schrodit wants to merge 1 commit into
mainfrom
cs-split
Open

feat(installer): split codesphere install into infra and cluster subcommands#491
schrodit wants to merge 1 commit into
mainfrom
cs-split

Conversation

@schrodit

@schrodit schrodit commented Jun 16, 2026

Copy link
Copy Markdown
Member

Add oms install codesphere infra (Phase 1: copy-dependencies through kubernetes) and oms install codesphere cluster (Phase 2: set-up-cluster, codesphere, ms-backends) as separate commands alongside the existing full oms install codesphere command.

Shared execution logic is extracted into installer.CodesphereInstaller in the installer package. The AllowedSteps field restricts the active step set so each command only runs the steps relevant to its phase. The original command delegates to the same struct with AllowedSteps: nil, preserving its existing behaviour exactly. The infra and cluster commands each live in their own file (install_codesphere_infra.go, install_codesphere_cluster.go).

The previous skipSteps and persistence is still respected, also in both new commands

@schrodit schrodit self-assigned this Jun 16, 2026
@schrodit schrodit requested a review from NautiluX June 16, 2026 09:20
@schrodit schrodit force-pushed the cs-split branch 2 times, most recently from 5d2280b to c3ee7a9 Compare June 16, 2026 16:31
…ommands

Add `oms install codesphere infra` (Phase 1: copy-dependencies through
kubernetes) and `oms install codesphere cluster` (Phase 2: set-up-cluster,
codesphere, ms-backends) as separate commands alongside the existing full
`oms install codesphere` command.

Shared execution logic is extracted into `installer.CodesphereInstaller` in
the installer package. The `AllowedSteps` field restricts the active step set
so each command only runs the steps relevant to its phase. The original command
delegates to the same struct with `AllowedSteps: nil`, preserving its existing
behaviour exactly. The infra and cluster commands each live in their own file
(`install_codesphere_infra.go`, `install_codesphere_cluster.go`).

Signed-off-by: Tim Schrodi <tim@codesphere.com>
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