diff --git a/controllers/cindervolume_controller.go b/controllers/cindervolume_controller.go index dc543533..99a800d6 100644 --- a/controllers/cindervolume_controller.go +++ b/controllers/cindervolume_controller.go @@ -310,6 +310,7 @@ func (r *CinderVolumeReconciler) reconcileNormal(ctx context.Context, instance * serviceLabels := map[string]string{ common.AppSelector: cinder.ServiceName, common.ComponentSelector: cindervolume.Component, + cindervolume.Backend: instance.Name[len(cindervolume.Component)+1:], } // diff --git a/pkg/cindervolume/const.go b/pkg/cindervolume/const.go index 6d4abee7..0d221d9b 100644 --- a/pkg/cindervolume/const.go +++ b/pkg/cindervolume/const.go @@ -18,4 +18,5 @@ package cindervolume const ( // Component - Component = "cinder-volume" + Backend = "backend" )