jason810496 commented on issue #2141:
URL: https://github.com/apache/polaris/issues/2141#issuecomment-3101532609

   Thanks @GreenBinary, your script helps a lot!
   
   After some trial and error, here is a working `values.yaml` for the Helm 
setup:
   It's required to bind the environment variables for `quarkus.datasource` in 
the same way as the `polaris` container does, and apply this to the 
`polaris-bootstrap-init-container` as well.
   
   `helm/apache-polaris/ci/persistence-values.yaml`
   ```yaml
   # ...
   
   extraInitContainers:
     - name: polaris-bootstrap-init-container
       image: apache/polaris-admin-tool:1.0.0-incubating
       args:
         - bootstrap # Bootstraping the default realm "POLARIS". This will init 
the postgres metastore "polaris_metastore_db".
         - --realm=POLARIS
         - --credential=POLARIS,root,s3cr3t
       # copy from `kubectl get deployment apache-polaris -n apache-polaris -o 
yaml`
       env:
         - name: quarkus.datasource.username
           valueFrom:
             secretKeyRef:
               key: username
               name: polaris-persistence
         - name: quarkus.datasource.password
           valueFrom:
             secretKeyRef:
               key: password
               name: polaris-persistence
         - name: quarkus.datasource.jdbc.url
           valueFrom:
             secretKeyRef:
               key: jdbcUrl
               name: polaris-persistence
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to