getGroupPayload = (data = {}) => {
  const payload = yaml.safeLoad(fs.readFileSync(groupTemplate));
  const groupname = data.groupname || 'admin';
  const admin = data.admin || false;
  const virtualClusters = data.virtualClusters || [];
  payload.metadata.name = Buffer.from(groupname).toString('hex');
  payload.data.groupname = Buffer.from(groupname).toString('base64');
  payload.data.extension = Buffer.from(JSON.stringify({
    acls: {
      admin,
      virtualClusters,
    },
  })).toString('base64');
  return payload;
}
@param {Object} data - group info.
@param {string} data.groupname
@param {boolean} data.admin
@param {string[]} data.virtualClusters