Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Sustain service broker #76

Merged

Conversation

piotrmiskiewicz
Copy link
Collaborator

@piotrmiskiewicz piotrmiskiewicz commented Dec 18, 2019

Description

Changes proposed in this pull request:

  • implement controllers which are responsible for (cluster)servicebroker management (creation and deletion)
  • add component tests for provisioning/deprovisioning

Related issue(s)
Related: #54

@piotrmiskiewicz
Copy link
Collaborator Author

/retest

@@ -73,6 +75,13 @@ func TestReconcileClusterAddonsConfiguration_AddAddonsProcess(t *testing.T) {

}

// newEmptyInstanceChecker returns instanceChecker which behaves like there is no any service instances in the cluster.
func newEmptyInstanceChecker(t *testing.T) instanceChecker {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not used anywhere

}

// AnyServiceInstanceExistsForClusterServiceBroker checks whether there is at least one service instance created with helm broker cluster service class.
func (f *Facade) AnyServiceInstanceExistsForClusterServiceBroker(namespace string) (bool, error) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace is not neccessary

}

err = c.Watch(&source.Kind{Type: &v1beta1.ServiceBroker{}}, eventHandler, predicate.Funcs{
CreateFunc: func(e event.CreateEvent) bool { return e.Meta.GetName() == broker.NamespacedBrokerName },
Copy link

@jasiu001 jasiu001 Jan 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why here is permanent name helm-broker and cluster is set by configuration?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name of the namesaces ServiceBroker is set as a constant in the code. The ClusterServiceBroker is configurable

@piotrmiskiewicz piotrmiskiewicz merged commit e941b81 into SAP-archive:master Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants