Skip to content

Commit

Permalink
remove rbac that shoulod not be needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Hsiao committed Sep 25, 2019
1 parent 3c75d62 commit 0ebb38a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions operator/controllers/seldondeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ 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"
"k8s.io/apimachinery/pkg/runtime"
"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"
Expand All @@ -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 (
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0ebb38a

Please sign in to comment.