From d9a798bea0477b63371a31283e7a24db4412d620 Mon Sep 17 00:00:00 2001 From: devthejo Date: Sun, 21 May 2023 20:01:24 +0200 Subject: [PATCH] docs: add comment for linter Signed-off-by: devthejo --- pkg/apis/secretgen2/v1alpha1/secret_export.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/apis/secretgen2/v1alpha1/secret_export.go b/pkg/apis/secretgen2/v1alpha1/secret_export.go index 0c05209a3..9ff267160 100644 --- a/pkg/apis/secretgen2/v1alpha1/secret_export.go +++ b/pkg/apis/secretgen2/v1alpha1/secret_export.go @@ -56,6 +56,7 @@ type SecretExportStatus struct { ObservedSecretResourceVersion string `json:"observedSecretResourceVersion,omitempty"` } +// Annotation key and value pair matching a namespace type SecretExportAnnotation struct { Key string Value string @@ -73,6 +74,7 @@ func (e SecretExport) StaticToNamespaces() []string { return result } +// Aggregate ToNamespaceAnnotation and ToNamespaceAnnotations as a single slice func (e SecretExport) StaticToNamespacesAnnotations() []*SecretExportAnnotation { var result []*SecretExportAnnotation for k, v := range e.Spec.ToNamespaceAnnotation {