serialize = (object) => {
  if (object == null) {
    return {};
  }

  const result = {};
  for (const [key, val] of Object.entries(object)) {
    result[key] = Buffer.from(val).toString('base64');
  }
  return result;
}
Serialize key-value object to k8s secret's base64 encoded data structure
@param {Object} object - key-value dictionary, value should be string
@returns {Object}