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)