From a78d462fb6ed42cab3a033d0714e6f455ccb0a6d Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 17 Apr 2025 14:23:16 +0200 Subject: [PATCH] fix: Store deployment name/namespace for results in annotations instead of labels --- pkg/results/result-store-secrets.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/results/result-store-secrets.go b/pkg/results/result-store-secrets.go index 80f45eade..7d47695bb 100644 --- a/pkg/results/result-store-secrets.go +++ b/pkg/results/result-store-secrets.go @@ -202,8 +202,8 @@ func (s *ResultStoreSecrets) WriteCommandResult(cr *result.CommandResult) error secret.Annotations["kluctl.io/result-project-subdir"] = cr.ProjectKey.SubDir } if cr.KluctlDeployment != nil { - secret.Labels["kluctl.io/result-deployment-name"] = cr.KluctlDeployment.Name - secret.Labels["kluctl.io/result-deployment-namespace"] = cr.KluctlDeployment.Namespace + secret.Annotations["kluctl.io/result-deployment-name"] = cr.KluctlDeployment.Name + secret.Annotations["kluctl.io/result-deployment-namespace"] = cr.KluctlDeployment.Namespace } err = s.client.Patch(s.ctx, &secret, client.Apply, client.FieldOwner("kluctl-results")) @@ -291,8 +291,8 @@ func (s *ResultStoreSecrets) WriteValidateResult(vr *result.ValidateResult) erro secret.Annotations["kluctl.io/result-project-subdir"] = vr.ProjectKey.SubDir } if vr.KluctlDeployment != nil { - secret.Labels["kluctl.io/result-deployment-name"] = vr.KluctlDeployment.Name - secret.Labels["kluctl.io/result-deployment-namespace"] = vr.KluctlDeployment.Namespace + secret.Annotations["kluctl.io/result-deployment-name"] = vr.KluctlDeployment.Name + secret.Annotations["kluctl.io/result-deployment-namespace"] = vr.KluctlDeployment.Namespace } err = s.client.Patch(s.ctx, &secret, client.Apply, client.FieldOwner("kluctl-results"))