Skip to content

Commit

Permalink
use vars to define CLUSTER_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
loomts committed Mar 3, 2025
1 parent d62edde commit 3bd950a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/clickhouse/configs/00_default_overrides.xml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<macros>
<shard from_env="CURRENT_SHARD_COMPONENT_SHORT_NAME"/>
<replica from_env="CURRENT_POD_NAME"/>
<layer>{{ $.cluster.metadata.name }}</layer>
<layer from_env="CLUSTER_NAME"/>
</macros>
<!-- Log Level -->
<logger>
Expand Down
4 changes: 4 additions & 0 deletions addons/clickhouse/templates/cmpd-clickhouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ spec:
shortName: Required
- name: CLICKHOUSE_ADMIN_USER
value: admin
- name: CLUSTER_NAME
valueFrom:
clusterVarRef:
clusterName: Required
- name: CLICKHOUSE_ADMIN_PASSWORD
valueFrom:
credentialVarRef:
Expand Down

0 comments on commit 3bd950a

Please sign in to comment.