Skip to content

Commit

Permalink
store
Browse files Browse the repository at this point in the history
Signed-off-by: Ye Cao <[email protected]>
  • Loading branch information
dashanji committed Dec 24, 2023
1 parent 0d98a40 commit d532604
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions k8s/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ rules:
- get
- list
- update
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- apiGroups:
- ""
resourceNames:
- vineyard-webhook-certs
resources:
- secrets
verbs:
- get
- update
- apiGroups:
- ""
resources:
Expand Down
2 changes: 2 additions & 0 deletions k8s/controllers/k8s/backup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ type BackupReconciler struct {
// +kubebuilder:rbac:groups=batch,resources=jobs/status,verbs=get;create;update;delete
// +kubebuilder:rbac:groups="",resources=persistentvolumes,verbs=get;list;create;update;patch;delete
// +kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=get;list;create;update;patch;delete
// +kubebuilder:rbac:groups="",resources=secrets,verbs=get;update, resourceNames=vineyard-webhook-certs
// +kubebuilder:rbac:groups="",resources=secrets,verbs=create

// Reconcile reconciles the Backup.
func (r *BackupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
Expand Down

0 comments on commit d532604

Please sign in to comment.