installer-env: render dns records to publish
diff --git a/core/installer/tasks/env.go b/core/installer/tasks/env.go
index 48ab18e..2dd8da5 100644
--- a/core/installer/tasks/env.go
+++ b/core/installer/tasks/env.go
@@ -31,12 +31,17 @@
AdminPublicKey string
}
+type DNSZoneRef struct {
+ Name string
+ Namespace string
+}
+
func NewCreateEnvTask(
env Env,
publicIPs []net.IP,
nsCreator installer.NamespaceCreator,
repo installer.RepoIO,
-) Task {
+) (Task, DNSZoneRef) {
st := state{
publicIPs: publicIPs,
nsCreator: nsCreator,
@@ -52,5 +57,5 @@
},
SetupInfra(env, &st)...,
)...,
- )
+ ), DNSZoneRef{"dns-zone", env.Name}
}