env-manager: dynamically generate cidr for new env (#85)
* env-manager: allocate env cidrs dynamically
* fix: net.IP to netip.Addr conversion
* bootstrapper: generate empty env-cidrs.yaml
* fix: net.IP to netip.Addr conversion for IP pool
* infra: expose provided startIP subnet via tailscale proxy
* headscale: pass private network ip subnet to expose to api service
* dns: make ingress IP configurable
---------
Co-authored-by: Giorgi Lekveishvili <lekva@gl-mbp-m1-max.local>
diff --git a/core/installer/config.go b/core/installer/config.go
index be35735..5269512 100644
--- a/core/installer/config.go
+++ b/core/installer/config.go
@@ -1,6 +1,7 @@
package installer
import (
+ "net"
"net/netip"
)
@@ -21,6 +22,13 @@
ServiceIPs EnvServiceIPs `json:"serviceIPs"`
}
+type EnvCIDR struct {
+ Name string
+ IP net.IP
+}
+
+type EnvCIDRs []EnvCIDR
+
type Config struct {
Values Values `json:"input"` // TODO(gio): rename
}