You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "danhuawang (via GitHub)" <gi...@apache.org> on 2026/06/09 06:09:28 UTC
[PR] [#11268] fix(helm): enterprise readiness cleanups and follow-up fixes for chart [gravitino]
danhuawang opened a new pull request, #11514:
URL: https://github.com/apache/gravitino/pull/11514
### What changes were proposed in this pull request?
This PR includes the enterprise readiness cleanups for the Helm chart (authored by @markhoerth) plus follow-up fixes for template correctness and CI stability issues discovered during review.
**Commit 1 (by @markhoerth):** `feat(helm): enterprise readiness cleanups for chart`
- Remove vendor-specific property references from ci-values.yaml and values.yaml
- Add structured values.yaml paths for entity.maxConnections, lock.maxNodes, and lock.minNodes
- Ship dev-values.yaml and prod-values.yaml scenario files
- Replace NOTES.txt with a post-install deployment summary with runtime warnings
- Add default-credential warnings for mysql and postgresql sections
- Emit dynamic-config-provider sub-properties conditionally
**Commit 2 (follow-up fixes):**
1. **Conditional OAuth rendering** (`gravitino.conf`): Wrap all `gravitino.authenticator.oauth.*` properties in `{{- if contains "oauth" .Values.authenticators }}` with per-property guards. Previously these properties were rendered unconditionally with empty values even in simple-auth mode, overriding server defaults.
2. **Fix H2 backend detection** (`NOTES.txt`): Replace exact-match `eq "jdbc:h2"` with `hasPrefix "jdbc:h2"` so H2 file-mode URLs are correctly identified.
3. **Fix CI crash** (`ci-values.yaml`): Replace `gravitino.eventListener.names: "audit,sync"` with `gravitino.server.shutdown.timeout: "5000"`. The eventListener config declared listeners without the required `.class` properties, causing server startup failure.
4. **Document additionalConfigItems usage** (`values.yaml`): Add complete commented example for event listener configuration.
5. **Migrate to non-deprecated entrypoint** (`values.yaml`, `pg-values.yaml`): Replace `bin/start-gravitino.sh` with `docker/docker-entrypoint.sh` to align with the Dockerfile ENTRYPOINT.
### Why are the changes needed?
- Empty OAuth properties override server defaults silently.
- The H2 detection bug suppresses the data-loss warning for H2 file-mode URLs.
- The `eventListener.names` config without `class` properties crashes the server during CI chart tests.
- The deprecated `start-gravitino.sh` generates unnecessary warning noise and will break when removed.
Fix: #11268
### Does this PR introduce _any_ user-facing change?
- When `authenticators` is `simple` (default), `gravitino.conf` no longer contains empty `gravitino.authenticator.oauth.*` lines.
- NOTES.txt correctly classifies H2 file-mode JDBC URLs as "Embedded H2".
- The deprecation warning from `bin/start-gravitino.sh` no longer appears in pod logs.
### How was this patch tested?
- Ran `helm template` with default values (simple auth) — no `authenticator.oauth` lines emitted.
- Ran `helm template` with `prod-values.yaml` (oauth) — all configured OAuth properties render correctly.
- Ran `helm template` with `ci-values.yaml` — `gravitino.server.shutdown.timeout = 5000` renders in additionalConfigItems section.
- All template renderings compile without errors.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11268] fix(helm): enterprise readiness cleanups and follow-up fixes for chart [gravitino]
Posted by "danhua-w (via GitHub)" <gi...@apache.org>.
danhua-w commented on code in PR #11514:
URL: https://github.com/apache/gravitino/pull/11514#discussion_r3379438655
##########
dev/charts/gravitino/templates/NOTES.txt:
##########
@@ -16,10 +16,72 @@
specific language governing permissions and limitations
under the License.
*/}}
-🚀 {{ $.Chart.Name }} has been installed. Check its status by running:
+🚀 Apache Gravitino has been installed in namespace {{ include "gravitino.namespace" . }}.
+
+Deployment summary:
+- Release name: {{ .Release.Name }}
+- Service name: {{ .Values.service.name }}
+- Replicas: {{ .Values.replicas }}
+- Metadata backend: {{ if .Values.mysql.enabled }}MySQL (in-chart){{ else if .Values.postgresql.enabled }}PostgreSQL (in-chart){{ else if and .Values.entity.jdbcUrl (not (hasPrefix "jdbc:h2" .Values.entity.jdbcUrl)) }}External ({{ .Values.entity.jdbcUrl }}){{ else }}Embedded H2 (testing only){{ end }}
Review Comment:
fixed.
##########
dev/charts/gravitino/templates/NOTES.txt:
##########
@@ -16,10 +16,72 @@
specific language governing permissions and limitations
under the License.
*/}}
-🚀 {{ $.Chart.Name }} has been installed. Check its status by running:
+🚀 Apache Gravitino has been installed in namespace {{ include "gravitino.namespace" . }}.
+
+Deployment summary:
+- Release name: {{ .Release.Name }}
+- Service name: {{ .Values.service.name }}
+- Replicas: {{ .Values.replicas }}
+- Metadata backend: {{ if .Values.mysql.enabled }}MySQL (in-chart){{ else if .Values.postgresql.enabled }}PostgreSQL (in-chart){{ else if and .Values.entity.jdbcUrl (not (hasPrefix "jdbc:h2" .Values.entity.jdbcUrl)) }}External ({{ .Values.entity.jdbcUrl }}){{ else }}Embedded H2 (testing only){{ end }}
+- Persistence: {{ if .Values.persistence.enabled }}Enabled ({{ .Values.persistence.size }}){{ else }}Disabled (emptyDir){{ end }}
+- Iceberg REST server: {{ if contains "iceberg-rest" .Values.auxService.names }}Enabled on port {{ .Values.icebergRest.httpPort | default 9001 }}{{ else }}Disabled{{ end }}
+- Authentication: {{ .Values.authenticators | default "simple (anonymous)" }}
+- Service type: {{ .Values.service.type }}
+
+{{- if and (not .Values.mysql.enabled) (not .Values.postgresql.enabled) (or (not .Values.entity.jdbcUrl) (hasPrefix "jdbc:h2" .Values.entity.jdbcUrl)) }}
+
+WARNING: This deployment uses the embedded H2 metadata backend on an
+emptyDir volume. All metadata will be lost when the pod restarts. For
+any non-throwaway use, configure an external metadata backend (MySQL
+or PostgreSQL) via the entity.* values, or enable an in-chart database
+via mysql.enabled or postgresql.enabled.
+{{- end }}
+
+{{- if and (contains "iceberg-rest" .Values.auxService.names) (not .Values.icebergRest.catalogConfigProvider) (eq (.Values.icebergRest.catalogBackend | default "memory") "memory") }}
+
+WARNING: The Iceberg REST server is enabled with the default in-memory
+catalog backend. Tables registered through this server will be lost
+when the pod restarts. For real use, configure icebergRest.catalogConfigProvider
+to use the dynamic-config-provider with a persistent metadata backend,
+or set icebergRest.catalogBackend to jdbc or hive with a persistent store.
+{{- end }}
+
+{{- if or (eq .Values.authenticators "") (eq .Values.authenticators "simple") }}
+
+WARNING: Authentication is set to simple mode (anonymous). The deployed
+server accepts all requests without credentials. Configure authenticators
+to "oauth" or "kerberos" before exposing the server beyond a trusted
+network.
+{{- end }}
+
+{{- if and .Values.mysql.enabled (or (eq .Values.mysql.auth.rootPassword "admin") (eq .Values.mysql.auth.password "gravitino")) }}
+
+WARNING: The in-chart MySQL is using default credentials (root password
+"admin" and/or user password "gravitino"). Override mysql.auth.rootPassword
+and mysql.auth.password (or set mysql.auth.existingSecret) before any
+non-trial deployment.
+{{- end }}
+
+{{- if and .Values.postgresql.enabled (eq .Values.postgresql.auth.password "gravitino") }}
+
+WARNING: The in-chart PostgreSQL is using the default password "gravitino".
+Override postgresql.auth.password (or set postgresql.auth.existingSecret)
+before any non-trial deployment.
+{{- end }}
+
+To check pod status:
kubectl get pods --namespace {{ include "gravitino.namespace" . }}
-Check the "gravitino.conf" by running:
+To view the rendered gravitino.conf:
kubectl get cm {{ include "gravitino.fullname" . }} -n {{ include "gravitino.namespace" . }} -o json | jq -r '.data["gravitino.conf"]'
+
+To access the Gravitino server locally:
+
+ kubectl -n {{ include "gravitino.namespace" . }} port-forward svc/{{ .Values.service.name }} 8090:8090
+
+Then open http://localhost:8090 in a browser.
Review Comment:
fixed.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11268] fix(helm): enterprise readiness cleanups and follow-up fixes for chart [gravitino]
Posted by "danhuawang (via GitHub)" <gi...@apache.org>.
danhuawang commented on PR #11514:
URL: https://github.com/apache/gravitino/pull/11514#issuecomment-4656680043
Need tag 1.3
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11268] fix(helm): enterprise readiness cleanups and follow-up fixes for chart [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades merged PR #11514:
URL: https://github.com/apache/gravitino/pull/11514
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11268] fix(helm): enterprise readiness cleanups and follow-up fixes for chart [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11514:
URL: https://github.com/apache/gravitino/pull/11514#issuecomment-4657346540
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|67.04% **`-0.02%`**|:green_circle:|
|:-|:-|:-:|
|Files changed|0.0%|:red_circle:|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|1.72%|:red_circle:|
|api|46.8%|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|aws|3.66%|:red_circle:|
|azure|2.47%|:red_circle:|
|catalog-common|10.42%|:red_circle:|
|catalog-fileset|80.35%|:green_circle:|
|catalog-glue|67.41%|:green_circle:|
|catalog-hive|79.35%|:green_circle:|
|catalog-jdbc-clickhouse|80.02%|:green_circle:|
|catalog-jdbc-common|45.31%|:green_circle:|
|catalog-jdbc-doris|80.28%|:green_circle:|
|catalog-jdbc-hologres|54.03%|:green_circle:|
|catalog-jdbc-mysql|79.23%|:green_circle:|
|catalog-jdbc-oceanbase|78.38%|:green_circle:|
|catalog-jdbc-postgresql|82.29%|:green_circle:|
|catalog-jdbc-starrocks|78.51%|:green_circle:|
|catalog-kafka|77.01%|:green_circle:|
|catalog-lakehouse-generic|58.53%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.86%|:green_circle:|
|catalog-lakehouse-paimon|79.29%|:green_circle:|
|catalog-model|77.72%|:green_circle:|
|cli|44.51%|:green_circle:|
|client-java|77.91%|:green_circle:|
|common|50.17%|:green_circle:|
|core|82.51%|:green_circle:|
|filesystem-hadoop3|76.97%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|46.3%|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|14.12%|:red_circle:|
|hadoop-common|10.39%|:red_circle:|
|hive-metastore-common|53.9%|:green_circle:|
|iceberg-common|57.41%|:green_circle:|
|iceberg-rest-server|73.88%|:green_circle:|
|idp-basic|86.07% **`-2.54%`**|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|66.17%|:green_circle:|
|lance-common|20.81%|:red_circle:|
|lance-rest-server|60.54%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|82.95%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|85.73%|:green_circle:|
|server-common|73.28%|:green_circle:|
|spark|28.57%|:red_circle:|
|spark-common|41.01%|:green_circle:|
|trino-connector|39.97%|:red_circle:|
<details>
<summary>Files</summary>
|Module|File|Coverage||
|:-|:-|:-|:-:|
|idp-basic|[IdpRESTFeature.java](https://github.com/danhuawang/gravitino/blob/b63529b6576827471886b77f74fdb2e3d91f93da/plugins/idp-basic/src/main/java/org/apache/gravitino/idp/web/rest/feature/IdpRESTFeature.java)|0.0%|:red_circle:|
</details>
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11268] fix(helm): enterprise readiness cleanups and follow-up fixes for chart [gravitino]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #11514:
URL: https://github.com/apache/gravitino/pull/11514#discussion_r3378752740
##########
dev/charts/gravitino/templates/NOTES.txt:
##########
@@ -16,10 +16,72 @@
specific language governing permissions and limitations
under the License.
*/}}
-🚀 {{ $.Chart.Name }} has been installed. Check its status by running:
+🚀 Apache Gravitino has been installed in namespace {{ include "gravitino.namespace" . }}.
+
+Deployment summary:
+- Release name: {{ .Release.Name }}
+- Service name: {{ .Values.service.name }}
+- Replicas: {{ .Values.replicas }}
+- Metadata backend: {{ if .Values.mysql.enabled }}MySQL (in-chart){{ else if .Values.postgresql.enabled }}PostgreSQL (in-chart){{ else if and .Values.entity.jdbcUrl (not (hasPrefix "jdbc:h2" .Values.entity.jdbcUrl)) }}External ({{ .Values.entity.jdbcUrl }}){{ else }}Embedded H2 (testing only){{ end }}
+- Persistence: {{ if .Values.persistence.enabled }}Enabled ({{ .Values.persistence.size }}){{ else }}Disabled (emptyDir){{ end }}
+- Iceberg REST server: {{ if contains "iceberg-rest" .Values.auxService.names }}Enabled on port {{ .Values.icebergRest.httpPort | default 9001 }}{{ else }}Disabled{{ end }}
+- Authentication: {{ .Values.authenticators | default "simple (anonymous)" }}
+- Service type: {{ .Values.service.type }}
+
+{{- if and (not .Values.mysql.enabled) (not .Values.postgresql.enabled) (or (not .Values.entity.jdbcUrl) (hasPrefix "jdbc:h2" .Values.entity.jdbcUrl)) }}
+
+WARNING: This deployment uses the embedded H2 metadata backend on an
+emptyDir volume. All metadata will be lost when the pod restarts. For
+any non-throwaway use, configure an external metadata backend (MySQL
+or PostgreSQL) via the entity.* values, or enable an in-chart database
+via mysql.enabled or postgresql.enabled.
+{{- end }}
+
+{{- if and (contains "iceberg-rest" .Values.auxService.names) (not .Values.icebergRest.catalogConfigProvider) (eq (.Values.icebergRest.catalogBackend | default "memory") "memory") }}
+
+WARNING: The Iceberg REST server is enabled with the default in-memory
+catalog backend. Tables registered through this server will be lost
+when the pod restarts. For real use, configure icebergRest.catalogConfigProvider
+to use the dynamic-config-provider with a persistent metadata backend,
+or set icebergRest.catalogBackend to jdbc or hive with a persistent store.
+{{- end }}
+
+{{- if or (eq .Values.authenticators "") (eq .Values.authenticators "simple") }}
+
+WARNING: Authentication is set to simple mode (anonymous). The deployed
+server accepts all requests without credentials. Configure authenticators
+to "oauth" or "kerberos" before exposing the server beyond a trusted
+network.
+{{- end }}
+
+{{- if and .Values.mysql.enabled (or (eq .Values.mysql.auth.rootPassword "admin") (eq .Values.mysql.auth.password "gravitino")) }}
+
+WARNING: The in-chart MySQL is using default credentials (root password
+"admin" and/or user password "gravitino"). Override mysql.auth.rootPassword
+and mysql.auth.password (or set mysql.auth.existingSecret) before any
+non-trial deployment.
+{{- end }}
+
+{{- if and .Values.postgresql.enabled (eq .Values.postgresql.auth.password "gravitino") }}
+
+WARNING: The in-chart PostgreSQL is using the default password "gravitino".
+Override postgresql.auth.password (or set postgresql.auth.existingSecret)
+before any non-trial deployment.
+{{- end }}
+
+To check pod status:
kubectl get pods --namespace {{ include "gravitino.namespace" . }}
-Check the "gravitino.conf" by running:
+To view the rendered gravitino.conf:
kubectl get cm {{ include "gravitino.fullname" . }} -n {{ include "gravitino.namespace" . }} -o json | jq -r '.data["gravitino.conf"]'
+
+To access the Gravitino server locally:
+
+ kubectl -n {{ include "gravitino.namespace" . }} port-forward svc/{{ .Values.service.name }} 8090:8090
+
+Then open http://localhost:8090 in a browser.
Review Comment:
The port-forward instructions are hardcoded to 8090, which becomes incorrect when users customize service.port/targetPort (or the webserver port). This can mislead users after installation.
##########
dev/charts/gravitino/resources/config/gravitino.conf:
##########
@@ -48,6 +48,20 @@ gravitino.entity.store.relational.jdbcDriver = {{ if .Values.mysql.enabled }}com
gravitino.entity.store.relational.jdbcUser = {{ if .Values.mysql.enabled }}{{ .Values.mysql.auth.username }}{{ else if .Values.postgresql.enabled }}{{ .Values.postgresql.auth.username }}{{ else }}{{ .Values.entity.jdbcUser }}{{ end }}
gravitino.entity.store.relational.jdbcPassword = {{ if .Values.mysql.enabled }}{{ .Values.mysql.auth.password }}{{ else if .Values.postgresql.enabled }}{{ .Values.postgresql.auth.password }}{{ else }}{{ .Values.entity.jdbcPassword }}{{ end }}
gravitino.entity.store.relational.storagePath = {{ .Values.entity.storagePath }}
+{{- if .Values.entity.maxConnections }}
+gravitino.entity.store.relational.maxConnections = {{ .Values.entity.maxConnections }}
+{{- end }}
+
+{{- if or .Values.lock.maxNodes .Values.lock.minNodes }}
+
+# THE CONFIGURATION FOR Gravitino TREE LOCK
+{{- if .Values.lock.maxNodes }}
+gravitino.lock.maxNodes = {{ .Values.lock.maxNodes }}
+{{- end }}
+{{- if .Values.lock.minNodes }}
+gravitino.lock.minNodes = {{ .Values.lock.minNodes }}
+{{- end }}
Review Comment:
The updated gravitino.conf template introduces multiple new conditional render paths (OAuth properties gated by authenticators, conditional dynamicConfigProvider sub-properties, and structured entity.maxConnections/lock.* emission), but helm-unittest coverage does not currently assert these behaviors. This makes it easy to regress back to rendering empty/incorrect properties without CI catching it.
##########
dev/charts/gravitino/templates/NOTES.txt:
##########
@@ -16,10 +16,72 @@
specific language governing permissions and limitations
under the License.
*/}}
-🚀 {{ $.Chart.Name }} has been installed. Check its status by running:
+🚀 Apache Gravitino has been installed in namespace {{ include "gravitino.namespace" . }}.
+
+Deployment summary:
+- Release name: {{ .Release.Name }}
+- Service name: {{ .Values.service.name }}
+- Replicas: {{ .Values.replicas }}
+- Metadata backend: {{ if .Values.mysql.enabled }}MySQL (in-chart){{ else if .Values.postgresql.enabled }}PostgreSQL (in-chart){{ else if and .Values.entity.jdbcUrl (not (hasPrefix "jdbc:h2" .Values.entity.jdbcUrl)) }}External ({{ .Values.entity.jdbcUrl }}){{ else }}Embedded H2 (testing only){{ end }}
Review Comment:
NOTES.txt prints the full external JDBC URL in the deployment summary. JDBC URLs can embed credentials (or other sensitive connection details), so echoing the raw value in Helm post-install output can unintentionally leak secrets into CI logs or terminal history.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11268] fix(helm): enterprise readiness cleanups and follow-up fixes for chart [gravitino]
Posted by "danhua-w (via GitHub)" <gi...@apache.org>.
danhua-w commented on code in PR #11514:
URL: https://github.com/apache/gravitino/pull/11514#discussion_r3379440455
##########
dev/charts/gravitino/resources/config/gravitino.conf:
##########
@@ -48,6 +48,20 @@ gravitino.entity.store.relational.jdbcDriver = {{ if .Values.mysql.enabled }}com
gravitino.entity.store.relational.jdbcUser = {{ if .Values.mysql.enabled }}{{ .Values.mysql.auth.username }}{{ else if .Values.postgresql.enabled }}{{ .Values.postgresql.auth.username }}{{ else }}{{ .Values.entity.jdbcUser }}{{ end }}
gravitino.entity.store.relational.jdbcPassword = {{ if .Values.mysql.enabled }}{{ .Values.mysql.auth.password }}{{ else if .Values.postgresql.enabled }}{{ .Values.postgresql.auth.password }}{{ else }}{{ .Values.entity.jdbcPassword }}{{ end }}
gravitino.entity.store.relational.storagePath = {{ .Values.entity.storagePath }}
+{{- if .Values.entity.maxConnections }}
+gravitino.entity.store.relational.maxConnections = {{ .Values.entity.maxConnections }}
+{{- end }}
+
+{{- if or .Values.lock.maxNodes .Values.lock.minNodes }}
+
+# THE CONFIGURATION FOR Gravitino TREE LOCK
+{{- if .Values.lock.maxNodes }}
+gravitino.lock.maxNodes = {{ .Values.lock.maxNodes }}
+{{- end }}
+{{- if .Values.lock.minNodes }}
+gravitino.lock.minNodes = {{ .Values.lock.minNodes }}
+{{- end }}
Review Comment:
fixed.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org