From a0e3c1a7a745072d28621c40ac9121164ea3e0d0 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 7 Feb 2021 03:10:42 -0800 Subject: [PATCH] add group extensions for ingress --- config/rbac/role.yaml | 12 ++++++++++++ controllers/seaweed_controller.go | 1 + 2 files changed, 13 insertions(+) diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 234ba6c..e60eddb 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -49,6 +49,18 @@ rules: - patch - update - watch +- apiGroups: + - extensions + resources: + - ingresses + verbs: + - create + - delete + - get + - list + - patch + - update + - watch - apiGroups: - networking.k8s.io resources: diff --git a/controllers/seaweed_controller.go b/controllers/seaweed_controller.go index f94d471..b514c20 100644 --- a/controllers/seaweed_controller.go +++ b/controllers/seaweed_controller.go @@ -41,6 +41,7 @@ type SeaweedReconciler struct { // +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=extensions,resources=ingresses,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;