Skip to content

Commit

Permalink
chore: fix konnect cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Nov 13, 2024
1 parent 8bb5d6d commit c1c59bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hack/cleanup/konnect_control_planes.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ func deleteRoles(
var errs []error
for _, roleID := range rolesIDsToDelete {
log.Info("Deleting role", "id", roleID)
if _, err := sdk.UsersRemoveRole(ctx, userID, roleID); err != nil {
_, err := sdk.UsersRemoveRole(ctx, userID, roleID,
// NOTE: Otherwise we use prod server by default.
// Related issue: https://github.com/Kong/sdk-konnect-go/issues/20
sdkkonnectops.WithServerURL(test.KonnectServerURL()),
)
if err != nil {
errs = append(errs, fmt.Errorf("failed to delete role %s: %w", roleID, err))
}
}
Expand Down

0 comments on commit c1c59bf

Please sign in to comment.