https://flyte.org logo
#ask-the-community
Title
# ask-the-community
s

Swarup Srinivasan

08/09/2023, 5:33 PM
👋 if I add a label via FlyteRemote's execute method, will I be able to reference it in Flyte Propeller's pod template? I would like to set environment variables to the label value using a fieldRef
s

Samhita Alla

08/10/2023, 9:07 AM
I don't think it's possible. @Yee / @Eduardo Apolinario (eapolinario), could you confirm?
e

Eduardo Apolinario (eapolinario)

08/10/2023, 10:04 PM
@Samhita Alla,that's correct. That said, you know about https://docs.flyte.org/en/latest/deployment/configuration/general.html#using-k8s-podtemplates, right, @Swarup Srinivasan?
s

Swarup Srinivasan

08/10/2023, 10:14 PM
thanks for the resources Eduardo! I tried the runtime approach of setting
default-pod-template-name
and it actually did work for me
s

Samhita Alla

08/11/2023, 5:29 AM
Where are you initializing
default-pod-template-name
?
s

Swarup Srinivasan

08/14/2023, 9:58 PM
we apply the pod template manifest using kubectl to the cluster manually
we actually already had this set up - I just modified the pod template with a fieldRef in
env
that points to a label via
metadata.labels[...]
supplied by execute