charts icon indicating copy to clipboard operation
charts copied to clipboard

Clickhouse storage configuration prefers global value

Open npalladium opened this issue 7 months ago • 0 comments

Given the following values:

global:
  storageClass: global-value
clickhouse:
  enabled: true
  persistence:
    storageClass: other-value

The Clickhouse Installation will use global-value as the storage class instead of other-value.

This is because the code has {{- $storageClass := default .Values.persistence.storageClass .Values.global.storageClass -}}. The default function is to be used like default DEFAULT_VALUE GIVEN_VALUE (which is kinda unlike every other language, but makes sense as it is designed to be used with |).

If the global value being preferred is the intended behaviour, it should be pointed out clearly because that is unexpected.

npalladium avatar May 23 '25 17:05 npalladium