Skip to content

Commit

Permalink
chore: add secrets read (#82)
Browse files Browse the repository at this point in the history
add secret read

Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller authored Oct 24, 2024
1 parent c932c3b commit a03e8f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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:
- promoter.argoproj.io
resources:
Expand Down
2 changes: 2 additions & 0 deletions internal/controller/promotionstrategy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ type PromotionStrategyReconciler struct {
//+kubebuilder:rbac:groups=promoter.argoproj.io,resources=promotionstrategies/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=promoter.argoproj.io,resources=promotionstrategies/finalizers,verbs=update

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

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
// TODO(user): Modify the Reconcile function to compare the state specified by
Expand Down

0 comments on commit a03e8f1

Please sign in to comment.