Conversation
5d2280b to
c3ee7a9
Compare
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add
oms install codesphere infra(Phase 1: copy-dependencies through kubernetes) andoms install codesphere cluster(Phase 2: set-up-cluster, codesphere, ms-backends) as separate commands alongside the existing fulloms install codespherecommand.Shared execution logic is extracted into
installer.CodesphereInstallerin the installer package. TheAllowedStepsfield restricts the active step set so each command only runs the steps relevant to its phase. The original command delegates to the same struct withAllowedSteps: 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