BigBoot / AutoKuma

AutoKuma is a utility that automates the creation of Uptime Kuma monitors based on Docker container labels. With AutoKuma, you can eliminate the need for manual monitor creation in the Uptime Kuma UI.
MIT License
309 stars 15 forks source link

"enum DockerSource does not have variant constructor xxxx" due to Documentation !!! #79

Closed UnclePhil closed 2 months ago

UnclePhil commented 2 months ago

In your doc you say

AUTOKUMA__DOCKER__SOURCE | docker.source | Wether monitors should be created from container or service labels (or both).

I receive a lot of these error

Invalid config: enum DockerSource does not have variant constructor service

when i use AUTOKUMADOCKERSOURCE: service

and when i use AUTOKUMADOCKERSOURCE: container

Invalid config: enum DockerSource does not have variant constructor container

But none when I remove the line

And none after reading your source code where you use

PLEASE update your documentation ... or your code to reflect it

BigBoot commented 2 months ago

Hmm looks like this is a limitation of the config library I'm using, the aliasing doesn't work for all config sources, I've updated the documentation to use the non aliased values.