qbec exposes the following standard jsonnet variables whenever it evaluates components.
qbec.io/env- the name of the environment for which processing occurs.
qbec.io/envProperties- the properties associated with the environment if present or an empty object. For the baseline environment (
_), this is set to the
basePropertiesobject define in
qbec.io/tag- the tag specified for the command using the
qbec.io/defaultNs- the default namespace in use. This is typically picked from the environment definition, possibly changed for app tags, or the value forced from the command line using the
qbec.io/cleanMode- has the
onvalue is only set for the
In addition to the above, qbec will also set the default values for declared external variables and override them from command line arguments.
See the component evaluation page for the gory details.