Skip to content

Introduce DeploymentContext for GOP runtime#515

Open
FelixWende99 wants to merge 3 commits into
developfrom
feature/deployment_context
Open

Introduce DeploymentContext for GOP runtime#515
FelixWende99 wants to merge 3 commits into
developfrom
feature/deployment_context

Conversation

@FelixWende99

Copy link
Copy Markdown
Contributor

Summary

This PR introduces a shared DeploymentContext for GOP runs and a ContextBuilder that
derives runtime context attributes from the existing central Config.

The Application now builds and uses the DeploymentContext at startup. Existing
configuration access remains available through context.config, keeping the current tool
lifecycle and tool order unchanged while establishing the new execution context as an
intermediate step.

Changes

  • Added DeploymentContext as shared runtime context
  • Added ContextBuilder to derive context attributes from Config
  • Added derived context attributes for:
    • tenant mode
    • SCM-Manager deployment mode
    • airgapped mode
    • cluster distribution
  • Kept the full Config available via context.config
  • Updated Application to use the DeploymentContext
  • Added tests for context derivation
  • Kept existing tool order and tool lifecycle unchanged

Verification

  • ./mvnw -q -DskipITs -DskipDockerBuild -Dtest=ApplicationTest,ContextBuilderTest test
  • ./mvnw -q -DskipITs -DskipDockerBuild test

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