Skip to content

[Bug]: Removing Service Broker leaves its CFServiceOfferings and CFServicePlans objects #4317

@ybykov-a9s

Description

@ybykov-a9s

What happened?

As a Korifi user
I removed a Service broker and created a new one with the same Service Offerings and Service plans. cf marketplace shows only one set of service offerings of a newly created broker. If I try to create a managed Service instance, I get an error message

Service offering 'postgresql15' is provided by multiple service brokers. Specify a broker name by using the '-b' flag

Inspecting k8s objects using following commands

kubectl -n cf get CFServiceOfferings,CFServicePlans

shows that the newly created Offerings and Plans exist alongside with Offering and Plans of already removed Service Broker.

What you expected to happen

Service offerings and Service plans of the removed Service broker are completely removed from Korifi's configuration.

Acceptance Criteria

GIVEN After removing a Service broker
WHEN I check either cf marketplace command or CFServiceOfferings and CFServicePlans k8s objects
THEN I do not see any leftovers of already removed Service Broker and its Service catalog

How to reproduce it (as minimally and precisely as possible)

  1. Create a service broker
  2. get its GUID
  3. Remove the service broker
  4. Make sure that CFServiceOfferings and CFServicePlans linked to the GUID of the removed ServiceBroker broker still exist in the cf namespace

Anything else we need to know?

No response

Environment

Revision of codebase: v0.17.0
Kubernetes version v1.35.0
Cloud provider or hardware configuration: AWS
Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🧊 Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions