From 778404e4fea79a9e9ac10b9abbc09e4adee77e50 Mon Sep 17 00:00:00 2001 From: Sam Lucidi Date: Thu, 20 Jun 2024 11:48:43 -0400 Subject: [PATCH] Run discovery with alizer addon only Signed-off-by: Sam Lucidi --- api/application.go | 2 +- settings/hub.go | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/api/application.go b/api/application.go index f0ba525fb..028d49077 100644 --- a/api/application.go +++ b/api/application.go @@ -1350,7 +1350,7 @@ func (r *Stakeholders) contributors() (contributors []model.Stakeholder) { func discover(ctx *gin.Context, application *model.Application) (err error) { rtx := WithContext(ctx) db := rtx.DB.Debug() - kinds := []string{Settings.Hub.Task.Kinds.Discovery.Language, Settings.Hub.Task.Kinds.Discovery.Technology} + kinds := []string{Settings.Hub.Task.Kinds.Discovery.Language} for _, kind := range kinds { t := model.Task{} task := tasking.Task{Task: &t} diff --git a/settings/hub.go b/settings/hub.go index 6e1001490..59140f96a 100644 --- a/settings/hub.go +++ b/settings/hub.go @@ -35,7 +35,6 @@ const ( EnvAnalysisReportPath = "ANALYSIS_REPORT_PATH" EnvAnalysisArchiverEnabled = "ANALYSIS_ARCHIVER_ENABLED" EnvLanguageDiscoveryTask = "LANGUAGE_DISCOVERY_TASK" - EnvTechnologyDiscoveryTask = "TECHNOLOGY_DISCOVERY_TASK" ) type Hub struct { @@ -86,8 +85,7 @@ type Hub struct { } Kinds struct { Discovery struct { - Language string - Technology string + Language string } } } @@ -266,15 +264,10 @@ func (r *Hub) Load() (err error) { } else { r.Analysis.ArchiverEnabled = true } - r.Task.Kinds.Discovery.Language, found = os.LookupEnv(EnvLanguageDiscoveryTask) if !found { r.Task.Kinds.Discovery.Language = "language-discovery" } - r.Task.Kinds.Discovery.Technology, found = os.LookupEnv(EnvTechnologyDiscoveryTask) - if !found { - r.Task.Kinds.Discovery.Technology = "tech-discovery" - } return }