diff --git a/operator/controllers/seldondeployment_controller.go b/operator/controllers/seldondeployment_controller.go index 7fbf04f720..5ecf5e6c6b 100644 --- a/operator/controllers/seldondeployment_controller.go +++ b/operator/controllers/seldondeployment_controller.go @@ -20,6 +20,9 @@ import ( "bytes" "context" "fmt" + "strconv" + "strings" + "github.com/seldonio/seldon-core/operator/constants" "github.com/seldonio/seldon-core/operator/utils" "k8s.io/apimachinery/pkg/api/errors" @@ -27,8 +30,6 @@ import ( "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/intstr" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - "strconv" - "strings" "github.com/go-logr/logr" ctrl "sigs.k8s.io/controller-runtime" @@ -38,13 +39,14 @@ import ( "encoding/json" + "reflect" + appsv1 "k8s.io/api/apps/v1" autoscaling "k8s.io/api/autoscaling/v2beta1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "knative.dev/pkg/apis/istio/common/v1alpha1" istio "knative.dev/pkg/apis/istio/v1alpha3" - "reflect" ) const ( @@ -1038,9 +1040,6 @@ func createDeployments(r *SeldonDeploymentReconciler, components *components, in // +kubebuilder:rbac:groups=networking.istio.io,resources=destinationrules/status,verbs=get;update;patch // +kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers/status,verbs=get;update;patch -// +kubebuilder:rbac:groups="",resources=configmaps,verbs=get;list;watch -// +kubebuilder:rbac:groups="",resources=serviceaccounts,verbs=get;list;watch -// +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch // +kubebuilder:rbac:groups=machinelearning.seldon.io,resources=seldondeployments,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=machinelearning.seldon.io,resources=seldondeployments/status,verbs=get;update;patch // +kubebuilder:rbac:groups=machinelearning.seldon.io,resources=seldondeployments/finalizers,verbs=get;update;patch