async function read(key) {
  try {
    const request = k8sModel.getClient('/api/v1/namespaces/');
    const hexKey = Buffer.from(key).toString('hex');
    const response = await request.get(
      `${USER_NAMESPACE}/secrets/${hexKey}`.toString(),
      {
        headers: {
          Accept: 'application/json',
        },
      },
    );
    const userData = response.data;
    const userInstance = User.createUser({
      username: Buffer.from(userData.data.username, 'base64').toString(),
      password: Buffer.from(userData.data.password, 'base64').toString(),
      grouplist: JSON.parse(
        Buffer.from(userData.data.grouplist, 'base64').toString(),
      ),
      email: Buffer.from(userData.data.email, 'base64').toString(),
      extension: JSON.parse(
        Buffer.from(userData.data.extension, 'base64').toString(),
      ),
    });
    return userInstance;
  } catch (error) {
    if (error.response) {
      throw error.response;
    } else {
      throw error;
    }
  }
}
@function read - return a user's info based on the UserName.
@async
@param {string} key - User name
@return {Promise<User>} A promise to the User instance