Skip to content

Commit

Permalink
fix linter findings
Browse files Browse the repository at this point in the history
  • Loading branch information
m00g3n committed Aug 12, 2024
1 parent 19d451a commit e9d6b69
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
)

var (
//nolint:gochecknoglobals
labelsClusterRoleBindings = map[string]string{
"app": "kyma",
"reconciler.kyma-project.io/managed-by": "kim",
Expand Down Expand Up @@ -110,6 +111,7 @@ func getRemoved(crbs []rbacv1.ClusterRoleBinding, admins []string) (removed []rb
return removed
}

//nolint:gochecknoglobals
var newContainsAdmin = func(admin string) func(rbacv1.ClusterRoleBinding) bool {
return func(r rbacv1.ClusterRoleBinding) bool {
for _, subject := range r.Subjects {
Expand Down Expand Up @@ -156,6 +158,7 @@ func toAdminClusterRoleBinding(name string) rbacv1.ClusterRoleBinding {
}
}

//nolint:gochecknoglobals
var newDelCRBs = func(ctx context.Context, shootClient client.Client, crbs []rbacv1.ClusterRoleBinding) func() error {
return func() error {
for _, crb := range crbs {
Expand All @@ -167,6 +170,7 @@ var newDelCRBs = func(ctx context.Context, shootClient client.Client, crbs []rba
}
}

//nolint:gochecknoglobals
var newAddCRBs = func(ctx context.Context, shootClient client.Client, crbs []rbacv1.ClusterRoleBinding) func() error {
return func() error {
for _, crb := range crbs {
Expand Down

0 comments on commit e9d6b69

Please sign in to comment.