feat(deploy): project infrastructure capabilities
This commit is contained in:
@@ -45,6 +45,7 @@ from .bundle import (
|
||||
service_names,
|
||||
write_env,
|
||||
)
|
||||
from .capabilities import infrastructure_capability_document
|
||||
from .cluster_evidence import collect_kubernetes_evidence
|
||||
from .distribution import (
|
||||
MAX_KEYRING_BYTES,
|
||||
@@ -1287,6 +1288,10 @@ def _deployment_receipt(
|
||||
"agent": "cli",
|
||||
"web_updates": False,
|
||||
},
|
||||
"infrastructure_capabilities": infrastructure_capability_document(
|
||||
spec,
|
||||
secrets,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
@@ -1464,6 +1469,11 @@ def _write_bundle(
|
||||
runtime_environment.update(_backup_runtime_environment(spec, paths))
|
||||
atomic_write(paths.spec, canonical_json(spec.to_dict()), mode=0o600)
|
||||
write_env(paths.env, runtime_environment)
|
||||
atomic_write(
|
||||
paths.capabilities,
|
||||
canonical_json(infrastructure_capability_document(spec, runtime_environment)),
|
||||
mode=0o644,
|
||||
)
|
||||
atomic_write(paths.compose, canonical_json(render_compose(spec)), mode=0o600)
|
||||
atomic_write(
|
||||
paths.load_balancer_config,
|
||||
|
||||
Reference in New Issue
Block a user