Skip to content

PoC of a new in memory model for deployment artifact generations - #874

Draft
aranega wants to merge 13 commits into
developfrom
poc/ng-library-clean
Draft

aranega wants to merge 13 commits into
developfrom
poc/ng-library-clean

Conversation

@aranega

@aranega aranega commented Sep 28, 2026

Copy link
Copy Markdown
Member

Closes CH-X

Implemented solution

...

How to test this PR

...

Sanity checks:

  • The pull request is explicitly linked to the relevant issue(s)
  • The issue is well described: clearly states the problem and the general proposed solution(s)
  • In this PR it is explicitly stated how to test the current change
  • The issue seta the scope and the type of issue (bug, story, task, etc.)
  • The relevant components are indicated in the issue (if any)
  • All the automated test checks are passing
  • All the linked issues are included in one Sprint
  • All the linked issues are in the Review state
  • All the linked issues are assigned

Breaking changes (select one):

  • The present changes do not change the preexisting api in any way
  • This PR and the issue are tagged as a breaking-change and the migration procedure is well described above

Possible deployment updates issues (select one):

  • There is no reason why deployments based on CloudHarness may break after the current update
  • This PR and the issue are tagged as alert:deployment

Test coverage (select one):

  • Tests for the relevant cases are included in this pr
  • The changes included in this pr are out of the current test coverage scope

Documentation (select one):

  • The documentation has been updated to match the current changes
  • The changes included in this PR are out of the current documentation scope

Nice to have (if relevant):

  • Screenshots of the changes
  • Explanatory video/animated gif


root_paths = [Path.cwd() / path for path in args.paths]

envs = args.env.split("-") if args.env else ()
print(f"unknown: {unknown}")
sys.exit(2)

project = CHProject(root_paths[0], cloudharness_path=root_paths[0])
@@ -0,0 +1,343 @@
#!/usr/bin/env python
import logging
@@ -0,0 +1,343 @@
#!/usr/bin/env python
import logging
import os

# HERE = os.path.dirname(os.path.realpath(__file__)).replace(os.path.sep, "/")
# ROOT = os.path.dirname(os.path.dirname(HERE)).replace(os.path.sep, "/")
from ch_cli_tools.ng.model import CHDeployConfig, CHProject
Comment on lines +26 to +33
from cloudharness_utils.constants import (
COMPOSE,
COMPOSE_ENGINE,
DEPLOYMENT_PATH,
HELM_ENGINE,
HELM_PATH,
VALUES_MANUAL_PATH,
)
@@ -0,0 +1,180 @@
from functools import lru_cache

from .model import CHBaseImage, CHValues, register_file
def build_context(self) -> Path:
return self.path

def __getitem__(self, key) -> "CHAppTask":
root = {p.name: p for p in self.root.glob(relative_glob)}
return root, ch

def __getitem__(self, key) -> "CHApp":
from .model import CHValues


def merge_with_layer(base: "CHValues", layer: "CHValues"):
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