Skip to content

feat(helm) #37: support ArcadeDB native images via image.flavor - #36

Merged
robfrank merged 1 commit into
mainfrom
feat/native-image-flavor
Oct 21, 2026
Merged

robfrank merged 1 commit into
mainfrom
feat/native-image-flavor

Conversation

@robfrank

@robfrank robfrank commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #37

Summary

ArcadeDB publishes experimental GraalVM native images (arcadedata/arcadedb:<version>-native, multi-arch: scratch on amd64, distroless on arm64). The chart couldn't run them because it hardcodes bin/server.sh and the native images have no shell.

This PR adds image.flavor (jvm | native, default jvm) to the existing chart instead of creating a second chart, because nearly every template is the same for both images.

With image.flavor=native:

  • The default tag is <appVersion>-native. An explicit image.tag is used as given.
  • The container runs /home/arcadedb/bin/arcadedb directly. The chart repeats the image ENTRYPOINT flags (-Duser.home, -Dorg.jline.terminal.dumb, the logging config) and passes the logs directory as -Darcadedb.server.logsDirectory.
  • The chart drops the env vars only server.sh reads (ARCADEDB_LOG_DIR, ARCADEDB_PID, ARCADEDB_SETTINGS) and the console -Duser.dir pin.
  • Refuses to render when Gremlin or a custom class: plugin is enabled. The native binary doesn't bundle these and would skip them without logging anything.
  • NOTES warns when extraEnvironment sets JAVA_OPTS, ARCADEDB_OPTS_MEMORY or ARCADEDB_SETTINGS. For native, heap flags go through arcadedb.extraCommands (e.g. -Xmx2g).

The JVM flavor renders exactly as before.

CI

  • integration-reusable.yml gets a flavor input.
  • lint.yml adds an integration-native job.
  • The weekly latest-image guard also tests latest-native.
  • ci/integration-test.sh skips phase 8 (console history) when IMAGE_FLAVOR=native.

Test plan

  • helm unittest: 236/236 pass, with the new tests/native_test.yaml and two NOTES tests.
  • helm lint: clean.
  • kind, image.flavor=native, 3 replicas: phases 1–7 pass, phase 8 skipped.
  • kind, JVM flavor, 3 replicas: all 8 phases pass.

Known issue (pre-existing, tracked in #38)

Both flavors log arcadedb-log.properties: file not found. Using default settings. The volume the chart mounts at /home/arcadedb/config hides the image's logging config. It reproduces with the JVM image alone (docker run --tmpfs /home/arcadedb/config ...).

🤖 Generated with Claude Code

Add image.flavor (jvm|native, default jvm). The native images have no
shell, so the chart starts bin/arcadedb directly with the flags the image
ENTRYPOINT would set, passes the logs directory as a -D argument, and
drops the server.sh-only environment (ARCADEDB_LOG_DIR, ARCADEDB_PID,
ARCADEDB_SETTINGS). The default tag becomes <appVersion>-native.

Gremlin and custom plugin classes are not in the native binary, which
would skip them silently, so enabling either fails the render. NOTES
warns when extraEnvironment sets variables only server.sh reads.

CI runs the kind integration test for the native flavor too (phase 8,
the console check, is skipped: the image has no shell), and the weekly
latest-image guard also covers latest-native.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robfrank robfrank changed the title feat(helm): support ArcadeDB native images via image.flavor feat(helm) #37: support ArcadeDB native images via image.flavor Oct 21, 2026
@robfrank
robfrank merged commit cba07e3 into main Oct 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ArcadeDB native images (-native tags)

1 participant