Skip to content

management.path_prefix is not respected by messaging-topology-operator #421

@ktzsolt

Description

@ktzsolt

Describe the bug

Declaring a user with the topology operator fails to declare with the error "Error 404 (Object Not Found): Not Found" when the management.path_prefix is set to some value (that is needed to expose the UI with reverse proxy, ingress etc) in the RabbitmqCluster spec at .spec.rabbitmq.additionalConfig

As a workaround using connection secret was offered in #287 but this needs a user/password credential that is already present in the cluster thus creating a "chicken or egg" problem when one wants to set up a cluster in fully declarative way using gitops (argocd)

To Reproduce

Steps to reproduce the behavior:
1, set management.path_prefix RabbitmqCluster spec at .spec.rabbitmq.additionalConfig to some value
2, create user as shown in example
3, check logs of messaging-topology-operator pod in rabbitmq-system

Expected behavior
As @blackjid suggested #287 (comment) The topology operator should look into the cluster reference resource to see if there is a path_prefix config, and use it to define the api calls. Maybe the Cluster resource could have a specific key in the spec to add a management path prefix, so it would be easier for the topology operator to find the information.

Version and environment information

  • Messaging Topology Operator: 1.6.0
  • RabbitMQ: 3.9.13
  • RabbitMQ Cluster Operator: 1.12.1
  • Kubernetes: 1.19.10
  • Cloud provider or hardware configuration: onprem

Metadata

Metadata

Assignees

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