Skip to content

Commit

Permalink
endpoint: rename GetMetadataValue to GetPropertyValue
Browse files Browse the repository at this point in the history
During the PR review for d735c50 it was suggested to change the
field name from endpoint.Metadata to endpoint.Properties. Unfortunately,
this method was missed during the renaming and this commit sets the
right name to it.

Fixes: d735c50 ("introduce 'properties' for endpoints")
Signed-off-by: André Martins <andre@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
  • Loading branch information
aanm committed Feb 28, 2024
1 parent 44bb357 commit badd092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -2611,8 +2611,8 @@ func (e *Endpoint) GetCreatedAt() time.Time {
return e.createdAt
}

// GetMetadataValue returns the metadata value for this key.
func (e *Endpoint) GetMetadataValue(key string) interface{} {
// GetPropertyValue returns the metadata value for this key.
func (e *Endpoint) GetPropertyValue(key string) interface{} {
e.mutex.RWMutex.RLock()
defer e.mutex.RWMutex.RUnlock()
return e.properties[key]
Expand Down

0 comments on commit badd092

Please sign in to comment.