Skip to content

Commit

Permalink
chore: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Apr 19, 2024
1 parent 87edb44 commit e2daf63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions internal/sync/rolesmapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,14 @@ func filterRolesMapping(rolesmapping map[string]opensearch.RoleMapping,

// syncRolesmapping reconciles Opensearch rolesmapping with Lagoon keycloak
// groups.
func syncRolesMapping(ctx context.Context, log *zap.Logger, groups []keycloak.Group,
projectNames map[int]string, roles map[string]opensearch.Role,
o OpensearchService, dryRun bool) {
func syncRolesMapping(
ctx context.Context,
log *zap.Logger,
groups []keycloak.Group,
roles map[string]opensearch.Role,
o OpensearchService,
dryRun bool,
) {
// get rolesmapping from Opensearch
existing, err := o.RolesMapping(ctx)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func Sync(ctx context.Context, log *zap.Logger, l LagoonDBService,
case "roles":
syncRoles(ctx, log, groups, projectNames, roles, o, dryRun)
case "rolesmapping":
syncRolesMapping(ctx, log, groups, projectNames, roles, o, dryRun)
syncRolesMapping(ctx, log, groups, roles, o, dryRun)
case "indexpatterns":
syncIndexPatterns(ctx, log, groupsSansGlobal, projectNames, o, d, dryRun,
legacyIndexPatternDelimiter)
Expand Down

0 comments on commit e2daf63

Please sign in to comment.