Skip to content

Bug: Hardcoded port 8088 for DruidRouterPort in druidapi.go #220

@christian-schlichtherle

Description

For convenience, I have configured my Druid CR to publish all services on port 80 instead of the suggested port 8088. Now the Druid Operator will deploy my Druid CR just fine, however it fails to deploy any DruidIngestion because of this. Here's a log entry:

2025-04-15T17:09:10Z    ERROR    Reconciler error    {"controller": "druidingestion", "controllerGroup": "druid.apache.org", "controllerKind": "DruidIngestion", "DruidIngestion": {"name":"fret-merlin-ploom-expert-consumer","namespace":"druid"
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler                                                                                                                                                             
    /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324                                                                                                                                                  
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem                                                                                                                                                          
    /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265                                                                                                                                                  
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2                                                                                                                                                                
    /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226    

Checking the source code I'm led to believe the root cause is that in line 17 of the file druidpi.go it looks like this:

DruidRouterPort  = "8088"

So the port number is hard coded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions