clickhouse-operator icon indicating copy to clipboard operation
clickhouse-operator copied to clipboard

Defining users in xml files passed to `spec.configuration.files`

Open bradbart opened this issue 2 years ago • 3 comments

My team is currently migrating our local development from running the clickhouse executable on the machine to a kubernetes deployment. We have a set of user xml files we use to define users for local testing. Is there a way to pass these xml files into the cluster configuration? I attempted to use spec.configuration.files, but while the files are present the users do not seem to be created. Is the only path to defining users through the spec.configuration.users YAML property?

bradbart avatar Jan 31 '24 14:01 bradbart

try to use

spec:
  configuration:
    files:
      users.d/file_name.xml: |
        <xml content>

Slach avatar Jan 31 '24 15:01 Slach

That worked, thanks! Is this somewhere in the documentation? Want to make sure to pin it.

bradbart avatar Jan 31 '24 16:01 bradbart

look to kubectl explain chi.spec.configuration.files

Slach avatar Feb 01 '24 07:02 Slach