diff --git a/internal/controller/controller.go b/internal/controller/controller.go index c5769b9c..4af1a4fb 100644 --- a/internal/controller/controller.go +++ b/internal/controller/controller.go @@ -284,38 +284,39 @@ func (clctrl *ClusterController) InitController(def *pkgtypes.ClusterDefinition) // Write cluster record if it doesn't exist cl := pkgtypes.Cluster{ - ID: primitive.NewObjectID(), - CreationTimestamp: fmt.Sprintf("%v", primitive.NewDateTimeFromTime(time.Now().UTC())), - Status: constants.ClusterStatusProvisioning, - AlertsEmail: clctrl.AlertsEmail, - ClusterName: clctrl.ClusterName, - CloudProvider: clctrl.CloudProvider, - CloudRegion: clctrl.CloudRegion, - DomainName: clctrl.DomainName, - SubdomainName: clctrl.SubdomainName, - DnsProvider: clctrl.DnsProvider, - ClusterID: clctrl.ClusterID, - ECR: clctrl.ECR, - ClusterType: clctrl.ClusterType, - GitopsTemplateURL: clctrl.GitopsTemplateURL, - GitopsTemplateBranch: clctrl.GitopsTemplateBranch, - GitProvider: clctrl.GitProvider, - GitProtocol: clctrl.GitProtocol, - GitHost: clctrl.GitHost, - GitAuth: clctrl.GitAuth, - GitlabOwnerGroupID: clctrl.GitlabOwnerGroupID, - AtlantisWebhookSecret: clctrl.AtlantisWebhookSecret, - AtlantisWebhookURL: clctrl.AtlantisWebhookURL, - KubefirstTeam: clctrl.KubefirstTeam, - AWSAuth: clctrl.AWSAuth, - CivoAuth: clctrl.CivoAuth, - GoogleAuth: clctrl.GoogleAuth, - DigitaloceanAuth: clctrl.DigitaloceanAuth, - VultrAuth: clctrl.VultrAuth, - CloudflareAuth: clctrl.CloudflareAuth, - NodeType: clctrl.NodeType, - NodeCount: clctrl.NodeCount, - LogFileName: def.LogFileName, + ID: primitive.NewObjectID(), + CreationTimestamp: fmt.Sprintf("%v", primitive.NewDateTimeFromTime(time.Now().UTC())), + Status: constants.ClusterStatusProvisioning, + AlertsEmail: clctrl.AlertsEmail, + ClusterName: clctrl.ClusterName, + CloudProvider: clctrl.CloudProvider, + CloudRegion: clctrl.CloudRegion, + DomainName: clctrl.DomainName, + SubdomainName: clctrl.SubdomainName, + DnsProvider: clctrl.DnsProvider, + ClusterID: clctrl.ClusterID, + ECR: clctrl.ECR, + ClusterType: clctrl.ClusterType, + GitopsTemplateURL: clctrl.GitopsTemplateURL, + GitopsTemplateBranch: clctrl.GitopsTemplateBranch, + GitProvider: clctrl.GitProvider, + GitProtocol: clctrl.GitProtocol, + GitHost: clctrl.GitHost, + GitAuth: clctrl.GitAuth, + GitlabOwnerGroupID: clctrl.GitlabOwnerGroupID, + AtlantisWebhookSecret: clctrl.AtlantisWebhookSecret, + AtlantisWebhookURL: clctrl.AtlantisWebhookURL, + KubefirstTeam: clctrl.KubefirstTeam, + AWSAuth: clctrl.AWSAuth, + CivoAuth: clctrl.CivoAuth, + GoogleAuth: clctrl.GoogleAuth, + DigitaloceanAuth: clctrl.DigitaloceanAuth, + VultrAuth: clctrl.VultrAuth, + CloudflareAuth: clctrl.CloudflareAuth, + NodeType: clctrl.NodeType, + NodeCount: clctrl.NodeCount, + LogFileName: def.LogFileName, + PostInstallCatalogApps: clctrl.PostInstallCatalogApps, } err = clctrl.MdbCl.InsertCluster(cl) if err != nil {