Skip to content

Commit

Permalink
nit-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayja committed Nov 3, 2023
1 parent 12962e4 commit e67eea1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- get
- apiGroups:
- ""
resources:
Expand Down
1 change: 0 additions & 1 deletion controllers/aerospikecluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ type RackState struct {
// +kubebuilder:rbac:groups=core,resources=pods/exec,verbs=create
// +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=persistentvolumeclaims,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=persistentvolumes,verbs=get
// +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get
Expand Down
2 changes: 1 addition & 1 deletion controllers/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ func getSTSContainerPort(
portNames := make([]string, 0, len(defaultContainerPorts))

// Sorting defaultContainerPorts to fetch map in ordered manner.
// Helps in comparing STS before updating.
// Helps reduce unnecessary sts object updates.
for portName := range defaultContainerPorts {
portNames = append(portNames, portName)
}
Expand Down

0 comments on commit e67eea1

Please sign in to comment.