Configure a custom values file for ScalarDL Schema Loader
This document explains how to create your custom values file for the ScalarDL Schema Loader chart. If you want to know the details of the parameters, please refer to the README of the ScalarDL Schema Loader chart.
Required configurations
Database configurations
You must set schemaLoading.databaseProperties. Please set your database.properties to access the backend database to this parameter. Please refer to the Getting Started with ScalarDB for more details on the database configuration of ScalarDB.
schemaLoading:
  databaseProperties: |
    scalar.db.contact_points=cassandra
    scalar.db.contact_port=9042
    scalar.db.username=cassandra
    scalar.db.password=cassandra
    scalar.db.storage=cassandra
Schema type configurations
You must set schemaLoading.schemaType.
If you create the schema of ScalarDL Ledger, please set ledger.
schemaLoading:
  schemaType: ledger
If you create the schema of ScalarDL Auditor, please set auditor.
schemaLoading:
  schemaType: auditor
Optional configurations
Secret configurations (Recommended in the production environment)
If you want to use environment variables to set some properties (e.g., credentials) in the schemaLoading.databaseProperties, you can use schemaLoading.secretName to specify the Secret resource that includes some credentials.
For example, you can set credentials for a backend database (scalar.db.username and scalar.db.password) using environment variables, which makes your pods more secure.
Please refer to the document How to use Secret resources to pass the credentials as the environment variables into the properties file for more details on how to use a Secret resource.
schemaLoading:
  secretName: "schema-loader-credentials-secret"