From e400dd1157e33761e022910b59ae59d28d71c07d Mon Sep 17 00:00:00 2001 From: raul Date: Wed, 13 Dec 2023 10:14:39 +0100 Subject: [PATCH] change label in comment Signed-off-by: raul --- internal/cmd/agent/deployer/deployer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/agent/deployer/deployer.go b/internal/cmd/agent/deployer/deployer.go index 7952f902cc..4cf181f655 100644 --- a/internal/cmd/agent/deployer/deployer.go +++ b/internal/cmd/agent/deployer/deployer.go @@ -177,14 +177,14 @@ func (d *Deployer) fetchNamespace(ctx context.Context, releaseID string) (*corev return &list.Items[0], nil } -// addLabelsFromOptions updates nsLabels so that it only contains all labels specified in optLabels, plus the `kubernetes.io/metadata.name` labels added by Helm when creating the namespace. +// addLabelsFromOptions updates nsLabels so that it only contains all labels specified in optLabels, plus the `kubernetes.io/metadata.name` labels added by kubernetes when creating the namespace. func addLabelsFromOptions(nsLabels map[string]string, optLabels map[string]string) { for k, v := range optLabels { nsLabels[k] = v } // Delete labels not defined in the options. - // Keep the`kubernetes.io/metadata.name` label as it is added by kubernetes when creating the namespace. + // Keep the `kubernetes.io/metadata.name` label as it is added by kubernetes when creating the namespace. for k := range nsLabels { if _, ok := optLabels[k]; k != corev1.LabelMetadataName && !ok { delete(nsLabels, k)