Skip to content

Commit

Permalink
docs: add comment for linter
Browse files Browse the repository at this point in the history
Signed-off-by: devthejo <jo@surikat.pro>
  • Loading branch information
devthejo committed May 21, 2023
1 parent f318573 commit d9a798b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/apis/secretgen2/v1alpha1/secret_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit d9a798b

Please sign in to comment.