Skip to content

Environment variables overriding provider options have no effect #23

@dubinsky

Description

@dubinsky

Documentation states that the VM instance can be customized by setting options as environment variables. Presumably, this should override options set on the provider - but it does not. Example showing that DISK_SIZE override via an environment variable is ignored follows; other environment variables (ZONE, SERVICE_ACCOUNT) are also ignored.

$ devpod provider options gcloud | grep DISK_SIZE
    ... 40                                             
$ echo $DISK_SIZE
50

$ devpod up github.com/...

$ devpod machine list
        NAME     | PROVIDER |  AGE   
  ---------------+----------+--------
    pulumi-ee723 | gcloud   | 1m49s

$ gcloud compute instances list
NAME                 ZONE        ... STATUS
devpod-pulumi-ee723  us-east4-b  ... RUNNING

$ gcloud compute instances describe devpod-pulumi-ee723 --zone=us-east4-b | grep diskSizeGb
  diskSizeGb: '40'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions