async function create(key, value) {
  try {
    const request = k8sModel.getClient('/api/v1/namespaces/');
    const hexKey = Buffer.from(key).toString('hex');
    const userInstance = User.createUser({
      username: value.username,
      password: value.password,
      grouplist: value.grouplist,
      email: value.email,
      extension: value.extension,
    });
    await User.encryptUserPassword(userInstance);
    const userData = {
      metadata: { name: hexKey },
      data: {
        username: Buffer.from(userInstance.username).toString('base64'),
        password: Buffer.from(userInstance.password).toString('base64'),
        grouplist: Buffer.from(JSON.stringify(userInstance.grouplist)).toString(
          'base64',
        ),
        email: Buffer.from(userInstance.email).toString('base64'),
        extension: Buffer.from(JSON.stringify(userInstance.extension)).toString(
          'base64',
        ),
      },
    };
    const response = await request.post(`${USER_NAMESPACE}/secrets`, userData);
    return response;
  } catch (error) {
    if (error.response) {
      throw error.response;
    } else {
      throw error;
    }
  }
}
@function create - Create an user entry to kubernetes secrets.
@async
@param {string} key - User name
@param {User} value - User info
@return {Promise<User>} A promise to the User instance.