Skip to content

feat(operator): add DRAGONFLY_IMAGE env var fallback for default image - #631

Open
prascli wants to merge 1 commit into
dragonflydb:mainfrom
prascli:fix/configurable-default-image-env
Open

prascli wants to merge 1 commit into
dragonflydb:mainfrom
prascli:fix/configurable-default-image-env

Conversation

@prascli

@prascli prascli commented Nov 21, 2026 •

Copy link
Copy Markdown

Summary

When the --dragonfly-image flag is not provided, the operator now falls back to the DRAGONFLY_IMAGE environment variable. This allows users to configure the default Dragonfly image via environment variable, which is useful for Helm chart and containerized deployments.

Fixes #283

Changes

  • In cmd/operator/main.go, after flag parsing, check if dragonflyImage is empty and fall back to the DRAGONFLY_IMAGE environment variable.

Verification

  • go build ./cmd/operator/ passes
  • go vet ./cmd/operator/ passes
  • go test ./cmd/operator/ passes

Prepared with an AI assistant under human review.

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.

Configurable default image

1 participant