Skip to content

Commit

Permalink
Add missing secret get/list rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenairn committed Feb 5, 2024
1 parent a1a67b4 commit f90c239
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2024-02-03T00:24:09Z"
createdAt: "2024-02-05T13:50:08Z"
operators.operatorframework.io/builder: operator-sdk-v1.33.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
name: kuadrant-dns-operator.v0.0.1
Expand Down Expand Up @@ -103,6 +103,14 @@ spec:
spec:
clusterPermissions:
- rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- kuadrant.io
resources:
Expand Down
8 changes: 8 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ kind: ClusterRole
metadata:
name: manager-role
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- kuadrant.io
resources:
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"github.com/kuadrant/kuadrant-dns-operator/api/v1alpha1"
)

// +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch

var errUnsupportedProvider = fmt.Errorf("provider type given is not supported")

// ProviderConstructor constructs a provider given a Secret resource and a Context.
Expand Down

0 comments on commit f90c239

Please sign in to comment.