Skip to content

Hetzner token config not using env var when both env var and config entry present #707

@lopcode

Description

@lopcode

Hi there,

I'm following guidance here to play around with the project: https://vitobotta.github.io/hetzner-k3s/Creating_a_cluster/#configuration-file

The documentation states that the HCLOUD_TOKEN env var "takes precedence" over the hetzner_token variable in the config file, but I found that if I set the config file to some dummy value (eg hetzner_token: use_hcloud_env_var) then I get an error during creation despite a valid token being present in HCLOUD_TOKEN env:

[Preflight checks] Unable to fetch instance types via Hetzner API 

Commenting out the config file entry fixes my issue. My expectation reading the documentation is that, if both are set to a value, HCLOUD_TOKEN is used.

hetzner-k3s version: 2.4.4

Thanks,
Sage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions