else:
new_node_list = node_list.copy()
new_node_list.append(item)
self.recursive_convert_config_file(new_node_list)
else:
new_node_list = node_list.copy()
new_node_list.append(item)
self.recursive_convert_config_file(new_node_list)
def append_config_to_config_map(self):
with open(self.chart_workspace_path + '/' + self.chart_name + '/templates/appconfig.yaml', 'a') as outputfile:
self.recursive_convert_config_file()
def append_config_to_config_map(self):
with open(self.chart_workspace_path + '/' + self.chart_name + '/templates/appconfig.yaml', 'a') as outputfile:
self.recursive_convert_config_file()
indented_config_text = indent(config_file_json_text, 4)
indented_config_text = re.sub(r"\"{{", '{{', indented_config_text)
indented_config_text = re.sub(r"}}\"", '}}', indented_config_text)
indented_config_text = indent(config_file_json_text, 4)
indented_config_text = re.sub(r"\"{{", '{{', indented_config_text)
indented_config_text = re.sub(r"}}\"", '}}', indented_config_text)
outputfile.write(" config-file.json: |\n")
outputfile.write(indented_config_text)
outputfile.write("\n schema.json: |\n")
outputfile.write(" config-file.json: |\n")
outputfile.write(indented_config_text)
outputfile.write("\n schema.json: |\n")
for probes in ['readinessProbe', 'livenessProbe']:
if self.configmap_config_json_file.get(probes):
probe_definition = self.configmap_config_json_file.get(probes)
for probes in ['readinessProbe', 'livenessProbe']:
if self.configmap_config_json_file.get(probes):
probe_definition = self.configmap_config_json_file.get(probes)
indented_probe_definition_yaml = indent(probe_definition_yaml, 12)
indented_probe_definition_yaml = re.sub(r" \| toJson", '', indented_probe_definition_yaml)
indented_probe_definition_yaml = re.sub(r"'", '', indented_probe_definition_yaml)
indented_probe_definition_yaml = indent(probe_definition_yaml, 12)
indented_probe_definition_yaml = re.sub(r" \| toJson", '', indented_probe_definition_yaml)
indented_probe_definition_yaml = re.sub(r"'", '', indented_probe_definition_yaml)