|
|
@ -10,7 +10,7 @@ class C4k(Validateable):
|
|
|
|
def __init__(self, input: dict):
|
|
|
|
def __init__(self, input: dict):
|
|
|
|
self.module = input.get("module")
|
|
|
|
self.module = input.get("module")
|
|
|
|
self.stage = input.get("stage")
|
|
|
|
self.stage = input.get("stage")
|
|
|
|
self.c4k_executabel_name = input.get("c4k_executabel_name", input.get("module"))
|
|
|
|
self.c4k_executable_name = input.get("c4k_executable_name", input.get("module"))
|
|
|
|
self.c4k_config = input.get("c4k_config", {})
|
|
|
|
self.c4k_config = input.get("c4k_config", {})
|
|
|
|
self.c4k_grafana_cloud_url = input.get(
|
|
|
|
self.c4k_grafana_cloud_url = input.get(
|
|
|
|
"c4k_grafana_cloud_url",
|
|
|
|
"c4k_grafana_cloud_url",
|
|
|
@ -29,7 +29,7 @@ class C4k(Validateable):
|
|
|
|
result = []
|
|
|
|
result = []
|
|
|
|
result += self.__validate_is_not_empty__("module")
|
|
|
|
result += self.__validate_is_not_empty__("module")
|
|
|
|
result += self.__validate_is_not_empty__("stage")
|
|
|
|
result += self.__validate_is_not_empty__("stage")
|
|
|
|
result += self.__validate_is_not_empty__("c4k_executabel_name")
|
|
|
|
result += self.__validate_is_not_empty__("c4k_executable_name")
|
|
|
|
result += self.__validate_is_not_empty__("c4k_grafana_cloud_user")
|
|
|
|
result += self.__validate_is_not_empty__("c4k_grafana_cloud_user")
|
|
|
|
result += self.__validate_is_not_empty__("c4k_grafana_cloud_password")
|
|
|
|
result += self.__validate_is_not_empty__("c4k_grafana_cloud_password")
|
|
|
|
if self.dns_record:
|
|
|
|
if self.dns_record:
|
|
|
@ -62,4 +62,4 @@ class C4k(Validateable):
|
|
|
|
config_path = f"{build_path}/out_c4k_config.yaml"
|
|
|
|
config_path = f"{build_path}/out_c4k_config.yaml"
|
|
|
|
auth_path = f"{build_path}/out_c4k_auth.yaml"
|
|
|
|
auth_path = f"{build_path}/out_c4k_auth.yaml"
|
|
|
|
output_path = f"{build_path}/out_{module}.yaml"
|
|
|
|
output_path = f"{build_path}/out_{module}.yaml"
|
|
|
|
return f"c4k-{self.c4k_executabel_name}-standalone.jar {config_path} {auth_path} > {output_path}"
|
|
|
|
return f"c4k-{self.c4k_executable_name}-standalone.jar {config_path} {auth_path} > {output_path}"
|
|
|
|