diff --git a/harmony/src/modules/application/features/helm_argocd_score.rs b/harmony/src/modules/application/features/helm_argocd_score.rs index 84aff9a..26767e1 100644 --- a/harmony/src/modules/application/features/helm_argocd_score.rs +++ b/harmony/src/modules/application/features/helm_argocd_score.rs @@ -55,7 +55,8 @@ impl Interpret for ArgoInter topology: &T, ) -> Result { let k8s_client = topology.k8s_client().await?; - let domain = topology.get_domain("argo").await?; + let svc = format!("argo-{}", self.score.namespace.clone()); + let domain = topology.get_domain(&svc).await?; let helm_score = argo_helm_chart_score(&self.score.namespace, self.score.openshift, &domain); @@ -66,14 +67,17 @@ impl Interpret for ArgoInter .await .unwrap(); - Ok(Outcome::success(format!( - "ArgoCD installed with {} {}", - self.argo_apps.len(), - match self.argo_apps.len() { - 1 => "application", - _ => "applications", - } - ))) + Ok(Outcome::success_with_details( + format!( + "ArgoCD {} {}", + self.argo_apps.len(), + match self.argo_apps.len() { + 1 => "application", + _ => "applications", + } + ), + vec![format!("argo application: http://{}", domain)], + )) } fn get_name(&self) -> InterpretName { diff --git a/harmony/src/modules/k8s/ingress.rs b/harmony/src/modules/k8s/ingress.rs index d94a1aa..045f1f8 100644 --- a/harmony/src/modules/k8s/ingress.rs +++ b/harmony/src/modules/k8s/ingress.rs @@ -141,7 +141,10 @@ impl Interpret for K8sIngressInterpret { InterpretStatus::SUCCESS => { let details = match &self.namespace { Some(namespace) => { - vec![format!("{} ({namespace}): {}", self.service, self.host)] + vec![format!( + "{} ({namespace}): http://{}", + self.service, self.host + )] } None => vec![format!("{}: {}", self.service, self.host)], };