func NewServiceLevel(crdcli crdcli.Interface, logger log.Logger) ServiceLevel {
	return &serviceLevel{
		cli:    crdcli,
		logger: logger,
	}
}
NewServiceLevel returns a new service level service.
package kubernetes
import (
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/watch"
	monitoringv1alpha1 "github.com/spotahome/service-level-operator/pkg/apis/monitoring/v1alpha1"
	crdcli "github.com/spotahome/service-level-operator/pkg/k8sautogen/client/clientset/versioned"
	"github.com/spotahome/service-level-operator/pkg/log"
)
type ServiceLevel interface {
	ListServiceLevels(namespace string, opts metav1.ListOptions) (*monitoringv1alpha1.ServiceLevelList, error)
	WatchServiceLevels(namespace string, opt metav1.ListOptions) (watch.Interface, error)
}
type serviceLevel struct {
	cli    crdcli.Interface
	logger log.Logger
}