Skip to content

feat: support custom command and args for container#222

Open
QSummerY wants to merge 2 commits into
ClickHouse:mainfrom
QSummerY:add_command
Open

feat: support custom command and args for container#222
QSummerY wants to merge 2 commits into
ClickHouse:mainfrom
QSummerY:add_command

Conversation

@QSummerY
Copy link
Copy Markdown

This PR resolves the limitation where users cannot override the container's default entrypoint and arguments via Helm values.

Problem

Currently, the Deployment template hardcodes or relies entirely on the Docker image's built-in ENTRYPOINT and CMD. In enterprise or debugging scenarios (as reported in hyperdxio/hyperdx#1329), users frequently need to pass custom flags, inject debugging tools, or alter the container startup behavior. Without command and args support in values.yaml, this is impossible without fracturing the chart or maintaining a custom fork.

Backward Compatibility

This change is 100% backward compatible and introduces zero breaking changes for existing deployments due to the following safeguards:

  1. Empty Defaults: In values.yaml, both command and args are initialized as empty lists ([]).
  2. Conditional Rendering: In deployment.yaml, we use Helm's {{- if ... }} blocks. If a user upgrades their existing release without providing these values, the template simply skips rendering the fields entirely. The container will continue to fall back to the image's original behavior exactly as before.

@QSummerY QSummerY requested a review from a team as a code owner May 26, 2026 06:32
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 26, 2026

🦋 Changeset detected

Latest commit: 84a2a43

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
helm-charts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 26, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants