Add secrets read-only access to RBAC

This commit is contained in:
stefanprodan 2020-09-18 15:48:50 +03:00
parent 7abb7ccf60
commit 6f8c3816f4
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,14 @@ rules:
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- source.toolkit.fluxcd.io
resources:

View File

@ -56,6 +56,7 @@ type BucketReconciler struct {
// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=buckets,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=buckets/status,verbs=get;update;patch
// +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch
func (r *BucketReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
ctx := context.Background()