**Describe the bug** Code is duplicated in getToken and `getKubeConfig` methods, can we refactor to use `getToken` in getKubeConfig?
Describe the bug
Code is duplicated in getToken and
getKubeConfigmethods, can we refactor to usegetTokenin getKubeConfig?