Skip to content

Commit

Permalink
Using WithGrantMetadata should wrap the struct in the GrantMetadata p…
Browse files Browse the repository at this point in the history
…roto (#86)
  • Loading branch information
loganintech authored Nov 22, 2023
1 parent 64d87cb commit 54ecf4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/types/grant/grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ func WithGrantMetadata(metadata map[string]interface{}) GrantOption {
return err
}

meta := &v2.GrantMetadata{Metadata: md}
annos := annotations.Annotations(g.Annotations)
annos.Update(md)
annos.Update(meta)
g.Annotations = annos

return nil
Expand Down

0 comments on commit 54ecf4f

Please sign in to comment.