Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
Howard Lau 2020-10-29 11:37:49 +00:00
parent 92172f43a5
commit e8baea6ae4
No known key found for this signature in database
GPG Key ID: 5CCC55849E3CF8E2
2 changed files with 16 additions and 4 deletions

View File

@ -9,7 +9,7 @@ rules:
- apiGroups: - apiGroups:
- apps - apps
resources: resources:
- deployments - statefulsets
verbs: verbs:
- create - create
- delete - delete
@ -22,7 +22,6 @@ rules:
- "" - ""
resources: resources:
- configmaps - configmaps
- services
verbs: verbs:
- create - create
- delete - delete
@ -38,6 +37,18 @@ rules:
verbs: verbs:
- get - get
- list - list
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups: - apiGroups:
- networking.k8s.io - networking.k8s.io
resources: resources:

View File

@ -38,8 +38,9 @@ type SeaweedReconciler struct {
// +kubebuilder:rbac:groups=seaweed.seaweedfs.com,resources=seaweeds,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=seaweed.seaweedfs.com,resources=seaweeds,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=seaweed.seaweedfs.com,resources=seaweeds/status,verbs=get;update;patch // +kubebuilder:rbac:groups=seaweed.seaweedfs.com,resources=seaweeds/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=services;configmaps,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=networking.k8s.io,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; // +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;