waitForSecret = async (ns, name) => {
  for (let i = 0; i <= 30; i++) {
    try {
      const secret = await kubeClient
        .api.v1
        .namespaces(ns)
        .secrets(name).get()
      return secret
    } catch (e) {
      await delay(100)
    }
  }
}
wait for a secret to appear in a given namespace
this function polls the apiserver for updates in 100ms intervals (max 3s)
@param {String} ns - namespace
@param {String} name - secret name
@return {Secret|undefined}