Hi there, very quick question: Is it possible to a...
# ask-metaflow
a
Hi there, very quick question: Is it possible to add kubernetes labels? I saw a PR which has been merged but looking at
metaflow - 2.9.14
I cannot find any trace of `labels`and starting a run using
-- with kubernetes:labels="..."
is not working either. I am just confused has this feature been reverted or am I doing something wrong?
b
The support for Kubernetes labels was initially introduced only through environment variables via.
METAFLOW_KUBERNETES_LABELS
. The support for the environment variable seems to still be present so for the time being you should be able to use that. This label support was further expanded to support setting through the decorator attributes as well in 2.9.12 as part of a rework for the annotations feature, but due to a regression the code changes to this have been reverted since 2.9.13 pending fixes.
a
Ah ok. Thanks for clarification. My sanity is restored 🙂 Hope for fix sooner or later 😄 Any ideas when we can expect a fix for that? It might be helpful for this issue here: https://github.com/Netflix/metaflow/issues/1481
b
I should hopefully have enough time to tackle this next week, if not before that 🙂
🤩 1