diff --git a/cmd/webhook.go b/cmd/webhook.go index bc7081a..139de91 100644 --- a/cmd/webhook.go +++ b/cmd/webhook.go @@ -353,28 +353,3 @@ func (whsvr *WebhookServer) serve(w http.ResponseWriter, r *http.Request) { http.Error(w, fmt.Sprintf("could not write response: %v", err), http.StatusInternalServerError) } } - -// func getSvmInfoList(client *kubernetes.Clientset) (map[string]SvmInfo, error) { -// klog.Infof("Getting filers list...") - -// filerListCM, err := client.CoreV1().ConfigMaps("das").Get(context.Background(), "filers-list", metav1.GetOptions{}) -// if err != nil { -// klog.Errorf("Error occured while getting the filers list: %v", err) -// return nil, err -// } - -// var svmInfoList []SvmInfo -// err = json.Unmarshal([]byte(filerListCM.Data["filers"]), &svmInfoList) -// if err != nil { -// klog.Errorf("Error occured while unmarshalling the filers list: %v", err) -// return nil, err -// } - -// //format the data into something a bit more usable -// filerList := map[string]SvmInfo{} -// for _, svm := range svmInfoList { -// filerList[svm.Vserver] = svm -// } - -// return filerList, nil -// } diff --git a/deploy/clusterrole.yaml b/deploy/clusterrole.yaml index 21e7d87..12a1405 100644 --- a/deploy/clusterrole.yaml +++ b/deploy/clusterrole.yaml @@ -2,6 +2,7 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: kerberos-sidecar-injector + namespace: das labels: app: kerberos-sidecar-injector rules: diff --git a/deploy/clusterrolebinding.yaml b/deploy/clusterrolebinding.yaml index c76ee80..f4f4e56 100644 --- a/deploy/clusterrolebinding.yaml +++ b/deploy/clusterrolebinding.yaml @@ -2,6 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: kerberos-sidecar-injector + namespace: das labels: app: kerberos-sidecar-injector roleRef: