// reconcileServiceClassKey reconciles a ServiceClass due to controller resync
// or an event on the ServiceClass.  Note that this is NOT the main
// reconciliation loop for ServiceClass. ServiceClasses are primarily
// reconciled in a separate flow when a ServiceBroker is reconciled.
reconcileServiceClassKey reconciles a ServiceClass due to controller resync
or an event on the ServiceClass.  Note that this is NOT the main
reconciliation loop for ServiceClass. ServiceClasses are primarily
reconciled in a separate flow when a ServiceBroker is reconciled.
// reconcileServiceClassKey reconciles a ServiceClass due to controller resync // or an event on the ServiceClass . Note that this is NOT the main // reconciliation loop for ServiceClass . ServiceClasses are primarily // reconciled in a separate flow when a ServiceBroker is reconciled .
func (c *controller) reconcileServiceClassKey(key string) error {
	namespace, name, err := cache.SplitMetaNamespaceKey(key)
	if err != nil {
		return err
	}
	pcb := pretty.NewContextBuilder(pretty.ServiceClass, namespace, name, "")
	class, err := c.serviceClassLister.ServiceClasses(namespace).Get(name)
	if errors.IsNotFound(err) {
		glog.Info(pcb.Message("Not doing work because the ServiceClass has been deleted"))
		return nil
	}
	if err != nil {
		glog.Infof(pcb.Message("Unable to retrieve"))
		return err
	}
	return c.reconcileServiceClass(class)
}
func ( c * controller ) reconcileServiceClassKey ( key string ) error { namespace , name , err := cache . SplitMetaNamespaceKey ( key ) if err != nil { return err } pcb := pretty . NewContextBuilder ( pretty . ServiceClass , namespace , name , " " ) class , err := c . serviceClassLister . ServiceClasses ( namespace ) . Get ( name ) if errors . IsNotFound ( err ) { glog . Info ( pcb . Message ( " " ) ) return nil } if err != nil { glog . Infof ( pcb . Message ( " " ) ) return err } return c . reconcileServiceClass ( class ) }
reconcileServiceClassKey reconciles a ServiceClass due to controller resync
or an event on the ServiceClass.
reconcileServiceClassKey reconciles a ServiceClass due to controller resync or an event on the ServiceClass .