-
- Downloads
refactor: move config parsing & validation to seperate package (#546)
This significantly reduces the scope of the `hcloud.newCloud()` method, and allows us to cleanly introduce new validations for the Robot support. feat(config): stricter validation for settings `HCLOUD_LOAD_BALANCERS_ENABLED`, `HCLOUD_METRICS_ENABLED` & `HCLOUD_NETWORK_ROUTES_ENABLED`
Showing
- .github/workflows/test_e2e.yml 1 addition, 1 deletion.github/workflows/test_e2e.yml
- README.md 1 addition, 1 deletionREADME.md
- hcloud/cloud.go 35 additions, 129 deletionshcloud/cloud.go
- hcloud/cloud_test.go 7 additions, 119 deletionshcloud/cloud_test.go
- hcloud/instances.go 6 additions, 13 deletionshcloud/instances.go
- hcloud/instances_test.go 14 additions, 13 deletionshcloud/instances_test.go
- hcloud/testing.go 0 additions, 52 deletionshcloud/testing.go
- internal/config/config.go 188 additions, 0 deletionsinternal/config/config.go
- internal/config/config_test.go 270 additions, 0 deletionsinternal/config/config_test.go
- internal/testsupport/env.go 44 additions, 0 deletionsinternal/testsupport/env.go
Loading