diff --git a/pkg/asset/manifests/infrastructure.go b/pkg/asset/manifests/infrastructure.go index 8b96eee76ac..d6887974cd0 100644 --- a/pkg/asset/manifests/infrastructure.go +++ b/pkg/asset/manifests/infrastructure.go @@ -75,7 +75,9 @@ func (i *Infrastructure) Generate(dependencies asset.Parents) error { // not namespaced }, Status: configv1.InfrastructureStatus{ - Platform: platform, + Platform: platform, + APIServerURL: getAPIServerURL(installConfig.Config), + EtcdDiscoveryDomain: getEtcdDiscoveryDomain(installConfig.Config), }, } diff --git a/pkg/asset/manifests/utils.go b/pkg/asset/manifests/utils.go index 1b670a8f117..1a3bf3becba 100644 --- a/pkg/asset/manifests/utils.go +++ b/pkg/asset/manifests/utils.go @@ -36,3 +36,7 @@ func configMap(namespace, name string, data genericData) *configurationObject { func getAPIServerURL(ic *types.InstallConfig) string { return fmt.Sprintf("https://%s-api.%s:6443", ic.ObjectMeta.Name, ic.BaseDomain) } + +func getEtcdDiscoveryDomain(ic *types.InstallConfig) string { + return fmt.Sprintf("%s.%s", ic.ClusterName, ic.BaseDomain) +}