CausticLab / go-rancher-gen

:cow: Generate configuration files using templates and Rancher Metadata
MIT License
0 stars 2 forks source link

Check if metadata check for labels is broken for hosts #10

Open Munsio opened 7 years ago

Munsio commented 7 years ago

As mentioned in: https://github.com/CausticLab/rgon-proxy/issues/32

The rgon.ssl label on the host machine doesn't trigger an acmetool want like described in the config file. It could be that rancher-gen doesn't recognize the label on the host. Maybe it is cause we set an "boolean" value.

Munsio commented 7 years ago

Found it: https://github.com/CausticLab/go-rancher-gen/blob/master/runner.go#L269

We only check containers for there labels not hosts

emcniece commented 7 years ago

Oops... yep, that's my fault for not implementing. I really should have made a TODO note :(

Munsio commented 7 years ago

I will look deeper into this but i have this feeling that this would be a larger rewrite ^^