[Autoscaler] DRONE_GOOGLE_PREEMPTIBLE flag does not work

I see the flag in github repo (load_test.go file), but couldn’t get it working, this is my config for autoscaler image

docker run \
  --volume=/var/lib/autoscaler:/data \
  --volume=$HOME/.config/gcloud/application_default_credentials.json:/root/.config/gcloud/application_default_credentials.json \
  -e DRONE_POOL_MIN=2 \
  -e DRONE_POOL_MAX=10 \
  -e DRONE_SERVER_PROTO=https \
  -e DRONE_SERVER_HOST=redacted \
  -e DRONE_SERVER_TOKEN=redacted \
  -e DRONE_AGENT_TOKEN=redacted \
  -e DRONE_GOOGLE_ZONE=redacted \
  -e DRONE_GOOGLE_PROJECT=redacted \
  -e DRONE_GOOGLE_MACHINE_IMAGE=ubuntu-os-cloud/global/images/ubuntu-1804-bionic-v20190617 \
  -e DRONE_GOOGLE_MACHINE_TYPE=n1-standard-1 \
  -e DRONE_GOOGLE_PREEMPTIBLE=true \
  -e DRONE_LOGS_DEBUG=true \
  -e DRONE_LOGS_PRETTY=true \
  -e DRONE_LOGS_COLOR=true \
  -p 8080:8080 \
  --name=autoscaler \
  --restart=always \
  --detach=true \
  drone/autoscaler

DRONE_GOOGLE_PREEMTIBLE is not a valid parameter. You can see a list of all valid google cloud parameters at https://github.com/drone/autoscaler/blob/master/config/config.go#L123

1 Like

Thanks, is it any workaround like setting tags or user data file?