Skip to content

Commit

Permalink
Fix presistent volume claim garbage collection (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas authored May 4, 2021
1 parent b0f1e48 commit b567bc8
Show file tree
Hide file tree
Showing 6 changed files with 273 additions and 216 deletions.
344 changes: 172 additions & 172 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,179 +1,179 @@

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- flinkoperator.k8s.io
resources:
- flinkclusters
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- flinkoperator.k8s.io
resources:
- flinkclusters/status
verbs:
- get
- update
- patch
- apiGroups:
- apps
resources:
- deployments
- statefulsets
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apps
resources:
- deployments/status
- statefulsets/status
verbs:
- get
- apiGroups:
- ""
resources:
- pods
- secrets
verbs:
- create
- get
- list
- watch
- patch
- apiGroups:
- apps
resources:
- controllerrevisions
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- pods/status
verbs:
- get
- apiGroups:
- ""
resources:
- services
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- services/status
verbs:
- get
- apiGroups:
- ""
resources:
- events
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events/status
verbs:
- get
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- batch
resources:
- jobs
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- batch
resources:
- jobs/status
verbs:
- get
- apiGroups:
- extensions
resources:
- ingresses
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- extensions
resources:
- ingresses/status
verbs:
- get
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- get
- create
- update
- patch
- apiGroups:
- scheduling.volcano.sh
resources:
- podgroups
verbs:
- get
- create
- update
- apiGroups:
- flinkoperator.k8s.io
resources:
- flinkclusters
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- flinkoperator.k8s.io
resources:
- flinkclusters/status
verbs:
- get
- update
- patch
- apiGroups:
- apps
resources:
- deployments
- statefulsets
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apps
resources:
- deployments/status
- statefulsets/status
verbs:
- get
- apiGroups:
- ""
resources:
- pods
- secrets
verbs:
- create
- get
- list
- watch
- patch
- apiGroups:
- apps
resources:
- controllerrevisions
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- pods/status
verbs:
- get
- apiGroups:
- ""
resources:
- services
- persistentvolumeclaims
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- services/status
verbs:
- get
- apiGroups:
- ""
resources:
- events
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events/status
verbs:
- get
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- batch
resources:
- jobs
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- batch
resources:
- jobs/status
verbs:
- get
- apiGroups:
- extensions
resources:
- ingresses
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- extensions
resources:
- ingresses/status
verbs:
- get
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- get
- create
- update
- patch
- apiGroups:
- scheduling.volcano.sh
resources:
- podgroups
verbs:
- get
- create
- update
1 change: 1 addition & 0 deletions controllers/flinkcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type FlinkClusterReconciler struct {
// +kubebuilder:rbac:groups=apps,resources=deployments/status,verbs=get
// +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=apps,resources=statefulsets/status,verbs=get
// +kubebuilder:rbac:groups=core,resources=persistentvolumeclaims,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch
// +kubebuilder:rbac:groups=core,resources=pods/status,verbs=get
// +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete
Expand Down
Loading

0 comments on commit b567bc8

Please sign in to comment.