Only some of the Downward API information is available through envvars and downwardAPI volumes #468
Closed
12 of 18 tasks
Labels
kind/bug
Some behavior is incorrect or out of spec
resolution/no-repro
This issue wasn't able to be reproduced
On k8s v1.11 we have access to information that is available to containers through environment variables and/or downward API volumes.
However, in using either envvars or downwardAPI volumes, not all of this information is available. I can't tell if it's something on our end, and if so where.
In our nodejs output types, comments aside, we actually only support the following info for each implementation:
Env vars using
valueFrom.fieldRef
:DownwardAPI volumes via items of
fieldRef
:Attempts to access any of the missing info from either implementation method, returns an error similar to the following: e.g when using envvars we can't access
metadata.labels
ormetadata.annotations
:It's worth noting, that:
metadata.labels
andmetadata.annotations
, which are both lists/arrays of values, whereas we do support envvars values that are single values e.g.spec.podIP
.metadata
object, but not itsspec
orstatus
/cc @lblackstone @hausdorff
The text was updated successfully, but these errors were encountered: