adutra commented on code in PR #626: URL: https://github.com/apache/polaris/pull/626#discussion_r1928957544
########## helm/polaris/README.md: ########## @@ -45,41 +45,105 @@ A Helm chart for Polaris. ### Optional -When using a custom `persistence.xml`, a Kubernetes Secret must be created for `.persistenceConfigSecret`. Below is a sample command: +When using a custom `persistence.xml`, a Kubernetes Secret must be created for it. Below is a sample command: ```bash kubectl create secret generic polaris-secret -n polaris --from-file=persistence.xml ``` ### From local directory (for development purposes) -From Polaris repo root: +The below instructions assume Minikube is running and Helm is installed. + +If necessary, load the Docker images into Minikube: + +```bash +eval $(minikube -p minikube docker-env) + +./gradlew :polaris-quarkus-server:assemble :polaris-quarkus-admin:assemble \ + -Dquarkus.container-image.build=true \ + -Dquarkus.container-image.tag=unstable \ + -PeclipseLinkDeps=com.h2database:h2:2.3.232 +``` + +Then create and populate the namespace: + +```bash +kubectl create namespace polaris +kubectl apply --namespace polaris -f helm/polaris/ci/fixtures/ +``` + +Finally, install the chart. From Polaris repo root: + +```bash +helm upgrade --install --namespace polaris polaris helm/polaris \ + --set image.tag=unstable \ + --set bootstrap.image.tag=unstable \ + --debug \ + --values helm/polaris/ci/simple-values.yaml +``` + +You can also run `ct` (chart-testing): ```bash -$ helm install polaris helm/polaris --namespace polaris --create-namespace +ct lint --charts helm/polaris +ct install --helm-extra-set-args "--set=image.tag=unstable --set bootstrap.image.tag=unstable" \ + --debug \ + --namespace polaris \ + --charts ./helm/polaris ``` ### Uninstalling the chart ```bash -$ helm uninstall --namespace polaris polaris +helm uninstall --namespace polaris polaris ``` ## Values Review Comment: Note: this is automatically generated by `helm-docs`. -- 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]
