Skip to content

Add flag to disable DruidIngestion controller#254

Merged
AdheipSingh merged 1 commit intodatainfrahq:masterfrom
piyush302:feat/disable-ingestion-controller-flag
Feb 5, 2026
Merged

Add flag to disable DruidIngestion controller#254
AdheipSingh merged 1 commit intodatainfrahq:masterfrom
piyush302:feat/disable-ingestion-controller-flag

Conversation

@piyush302
Copy link
Copy Markdown
Contributor

Fixes #187

Description

The operator fails to start if the DruidIngestion CRD is not installed, even when users only need the Druid CR functionality. This PR adds a --disable-ingestion-controller flag that allows the operator to run without requiring the DruidIngestion CRD.

Key changed/added files in this PR

  • main.go - Added --disable-ingestion-controller flag and conditional controller setup
  • chart/values.yaml - Added disableIngestionController: false option
  • chart/templates/deployment.yaml - Pass flag to operator when enabled

This PR has:

  • helm lint ./chart - passes
  • helm template - renders correctly with default values (flag not present)
  • helm template --set disableIngestionController=true - renders correctly with flag present
  • Tested locally without flag - operator shows CRD error as expected
  • Tested locally with flag - operator starts successfully with log message "DruidIngestion controller is disabled"
  • Verified backward compatibility - default behavior unchanged (flag is false by default)

Usage

Via Helm:

disableIngestionController: true

Add --disable-ingestion-controller flag to allow running the operator
without the DruidIngestion CRD installed. This is useful for users who
only need the Druid CR functionality.

Changes:
- main.go: Add flag and conditional controller setup
- chart/values.yaml: Add disableIngestionController option
- chart/templates/deployment.yaml: Pass flag when enabled
@piyush302
Copy link
Copy Markdown
Contributor Author

@AdheipSingh could you please review it . And let me know if anything else is required ?

@AdheipSingh AdheipSingh merged commit 4770bf5 into datainfrahq:master Feb 5, 2026
1 check failed
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.

Druid ingestion reconciler fails with CRD error

2 participants