Use constants #671

Merged
telackey merged 1 commits from dboreham/k8s-env-config into main 2023-11-30 03:50:53 +00:00

View File

@ -16,6 +16,7 @@
from pathlib import Path from pathlib import Path
from stack_orchestrator import constants
from stack_orchestrator.deploy.stack import Stack from stack_orchestrator.deploy.stack import Stack
from stack_orchestrator.deploy.spec import Spec from stack_orchestrator.deploy.spec import Spec
@ -26,13 +27,13 @@ class DeploymentContext:
stack: Stack stack: Stack
def get_stack_file(self): def get_stack_file(self):
return self.deployment_dir.joinpath("stack.yml") return self.deployment_dir.joinpath(constants.stack_file_name)
def get_spec_file(self): def get_spec_file(self):
return self.deployment_dir.joinpath("spec.yml") return self.deployment_dir.joinpath(constants.spec_file_name)
def get_env_file(self): def get_env_file(self):
return self.deployment_dir.joinpath("config.env") return self.deployment_dir.joinpath(constants.config_file_name)
# TODO: implement me # TODO: implement me
def get_cluster_name(self): def get_cluster_name(self):