AutoScaler and environmental variables containing colons

Hi,

Drone AutoScaler documentation states that environmental variables used to configure agent are defined as follows

DRONE_AGENT_ENVIRON=foo:bar,baz:qux

What is the correct way to set environmental variables containing colons. Here is an example

DRONE_AGENT_ENVIRON=DRONE_SECRET_PLUGIN_ENDPOINT:http://my-endpoint1:3001,DRONE_REGISTRY_PLUGIN_ENDPOINT:http://my-endpoint1:3000

@tapanihook,

You can pass Environment variable individually like
DRONE_SECRET_PLUGIN_ENDPOINT=http://my-endpoint1:3001](http://my-endpoint1:3001/
DRONE_REGISTRY_PLUGIN_ENDPOINT=http://my-endpoint1:3000](http://my-endpoint1:3000/

Or you can also use as mentioned in doc and let us know if you are facing any issue while using config map
https://autoscale.drone.io/reference/drone-agent-environ/

Thanks for the reply. Unfortunately it seems that AutoScaler does not pass individual environmental variables to the agents. We tried to define e.g.DRONE_REGISTRY_PLUGIN_ENDPOINT environmental variable for the AutoScaler. After AutoScaler launched a new agent we connected to it using ssh. Environmental variable was not in place.

We spent a several hours with this and found that at least in our config the correct way to define environmental variables is foo=bar,baz=qux. The way described in official documentation (foo:bar,baz:qux) won’t work.