Skip to content

Commit

Permalink
Rename var to avoid package shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatseykanets committed Oct 8, 2024
1 parent 51e3f9f commit d4fd383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ func Validation(clients *clients.Clients) ([]admission.ValidatingAdmissionHandle
projects := project.NewValidator(clients.Management.Cluster().Cache(), clients.Management.User().Cache())
roles := role.NewValidator()
rolebindings := rolebinding.NewValidator()
setting := setting.NewValidator(clients.Management.Cluster().Cache(), clients.Management.Setting().Cache())
settings := setting.NewValidator(clients.Management.Cluster().Cache(), clients.Management.Setting().Cache())
token := token.NewValidator()
userAttribute := userattribute.NewValidator()
clusterRoles := clusterrole.NewValidator()
clusterRoleBindings := clusterrolebinding.NewValidator()

handlers = append(handlers, psact, globalRoles, globalRoleBindings, prtbs, crtbs, roleTemplates, secrets, nodeDriver, projects, roles, rolebindings, clusterRoles, clusterRoleBindings, clusterProxyConfigs, userAttribute, setting, token)
handlers = append(handlers, psact, globalRoles, globalRoleBindings, prtbs, crtbs, roleTemplates, secrets, nodeDriver, projects, roles, rolebindings, clusterRoles, clusterRoleBindings, clusterProxyConfigs, userAttribute, settings, token)
} else {
clusterAuthTokens := clusterauthtoken.NewValidator()
handlers = append(handlers, clusterAuthTokens)
Expand Down

0 comments on commit d4fd383

Please sign in to comment.