From 2f3215b485f9d26738f5e8b34ca6bb9997143bda Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Tue, 5 Nov 2024 19:23:36 +0000 Subject: [PATCH] include json so metadata.name comes through Signed-off-by: Austin Abro --- src/internal/agent/hooks/argocd-application.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/agent/hooks/argocd-application.go b/src/internal/agent/hooks/argocd-application.go index cc2c748c3c..0fbaab22f7 100644 --- a/src/internal/agent/hooks/argocd-application.go +++ b/src/internal/agent/hooks/argocd-application.go @@ -29,8 +29,8 @@ import ( // // For more information: https://argo-cd.readthedocs.io/en/stable/user-guide/import/ type Application struct { - Spec ApplicationSpec `json:"spec"` - metav1.ObjectMeta + Spec ApplicationSpec `json:"spec"` + metav1.ObjectMeta `json:"metadata,omitempty"` } // ApplicationSpec represents desired application state. Contains link to repository with application definition.