Environment variables store data about the current platform environment. You can retrieve the value of an environment variable using the built-in function GETENV().
In a Kubernetes deployment, this variable is auto-populated with the name of the Helm chart. For example, if deployed using:
helm install myenv1 hpcc/hpcc
then the HPCC_DEPLOYMENTNAME variable will contain the value: myenv1.
For a bare-metal environment, this value can be set in environment.conf, by adding:
deploymentName=myenv1
In a Kubernetes deployment, HPCC_DEPLOYMENTNAME can also be explicitly set via the global.env section of the Helm chart values. This will override the auto-populated chart instance name. For example:
global:
env:
- name: HPCC_DEPLOYMENTNAME
value: myenv1Similarly, for a bare-metal environment, explicitly setting HPCC_DEPLOYMENTNAME as a system environment variable will override any value set via environment.conf.
You can retrieve this value using:
OUTPUT(GETENV('HPCC_DEPLOYMENTNAME', 'unknown'));See Also: GETENV