fix(ske/login): add profile email to cacheKey
Description
Adds the profile email as additional info to the calculated hash cachekey.
This solves an issue where the user doesn't directly see that their current credentials are unable to access the cluster, when they have a cached and still valid kubeconfig that was retrieved with different/working credentials earlier.
Checklist
- [ ] Issue was linked above
- [x] Code format was applied:
make fmt - [x] Docs are up-to-date:
make generate-docs(will be checked by CI) - [x] Unit tests got implemented or updated
- [x] Unit tests are passing:
make test(will be checked by CI) - [x] No linter issues:
make lint(will be checked by CI)
This PR was marked as stale after 7 days of inactivity and will be closed after another 7 days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it.
cc @rubenhoenle :slightly_smiling_face:
This PR was marked as stale after 7 days of inactivity and will be closed after another 7 days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it.
This PR was marked as stale after 7 days of inactivity and will be closed after another 7 days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it.