-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpk cloud login: change MakeAuthCurrent to **config.RpkCloudAuth
When we made an auth current, we reordered the underlying auth slice which is _not_ pointer based. Any changes to the pointer fields _after_ reodering were changes to an old slice that would no longer be saved. Now, we MakeAuthCurrent with two pointer indirects -- The underlying pointer to the slice element is used for the invariant check, did we find this auth. We now update the pointer-to-the-pointer so that if we update any fields _after_ MakeAuthCurrent, they're mirrored into the new slice.
- Loading branch information
Showing
3 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters