-
Notifications
You must be signed in to change notification settings - Fork 21
Sustain service broker #76
Sustain service broker #76
Conversation
128bf89
to
a817ac7
Compare
/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 { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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 }, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Description
Changes proposed in this pull request:
Related issue(s)
Related: #54