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