Skip to content

Commit

Permalink
Merge pull request #10792 from stubenhuang/issue-bk-72-10558
Browse files Browse the repository at this point in the history
feat: 蓝鲸7.2版本的改动 #10558
  • Loading branch information
irwinsun authored Aug 12, 2024
2 parents f8d1f20 + a445bb9 commit 91a5404
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm-charts/core/ci/build_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
else:
camelize_set.add(camelize_key)
if line.replace(key, "").strip().endswith(":"):
line = line.replace(key, '{{ .Values.config.'+camelize_key+' | quote }}')
line = line.replace(key, '{{ .Values.config.'+camelize_key+' | default "" | quote }}')
else:
line = line.replace(key, '{{ .Values.config.'+camelize_key+' }}')
new_file.write(line)
Expand Down Expand Up @@ -106,7 +106,7 @@
gateway_config_file.write(env+": "+include_dict[camelize_key]+"\n")
else:
camelize_set.add(camelize_key)
gateway_config_file.write(env+": "+'{{ .Values.config.'+camelize_key+" | quote }}\n")
gateway_config_file.write(env+": "+'{{ .Values.config.'+camelize_key+' | default "" | quote }}\n')
# 前端文件
for root, dirs, files in os.walk(frontend_path):
for frontend_file in files:
Expand All @@ -125,7 +125,7 @@
gateway_config_file.write(env+": "+include_dict[camelize_key]+"\n")
else:
camelize_set.add(camelize_key)
gateway_config_file.write(env+": "+'{{ .Values.config.'+camelize_key+" | quote }}\n")
gateway_config_file.write(env+": "+'{{ .Values.config.'+camelize_key+' | default "" | quote }}\n')
gateway_config_file.write('NAMESPACE: {{ .Release.Namespace }}\n')
gateway_config_file.write('CHART_NAME: {{ include "bkci.names.fullname" . }}\n')
gateway_config_file.write('{{ end }}')
Expand Down

0 comments on commit 91a5404

Please sign in to comment.