Skip to content

Commit

Permalink
Merge pull request #1615 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1608-to-release-4.14

[release-4.14] CNV-35592: Adjust user name in configmap to uuid
  • Loading branch information
openshift-merge-bot[bot] committed Nov 22, 2023
2 parents 3c96514 + 6ccf0b8 commit 7aa9401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const useKubevirtUserSettings: UseKubevirtUserSettings = (key) => {
setError(null);
try {
const user = await k8sGet({ model: UserModel, path: '~' });
setUserName(user?.metadata?.name?.replace(':', '-'));
setUserName(user?.metadata?.uid || user?.metadata?.name?.replace(/[^-._a-zA-Z0-9]+/g, '-'));
} catch (e) {
setError(e);
}
Expand Down

0 comments on commit 7aa9401

Please sign in to comment.