Hi, I am trying to get `--notify-on-error` `--not...
# ask-metaflow
f
Hi, I am trying to get
--notify-on-error
--notify-on-success
for my workflows in argo. I can see that the pod for the notification is created. However, I do not get the notification in slack. The description of the pod says:
Copy code
MountVolume.SetUp failed for volume "kube-api-access-7lf6b" : secret "default.service-account-token" not found
However, that is not my service-account. My service account is called
metaflow
and has a
secret
set-up in this way:
Copy code
apiVersion: v1
kind: Secret
metadata:
  name: metaflow
  namespace: metaflow
  annotations:
    <http://kubernetes.io/service-account.name|kubernetes.io/service-account.name>: metaflow
type: <http://kubernetes.io/service-account-token|kubernetes.io/service-account-token>
I can see that in the pod yaml for the notification pod, we are pointing to a service-account called
default
but that is not the name in my
.metaflowconfig/config
it seems like the
KUBERNETES_NAMESPACE
is not propagated correctly. Is there any way that I can use my
serviceAccountName: metaflow
instead of s`erviceAccountName: default` ??