Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
envoy: fix linting issue related to exported function without comment (
Browse files Browse the repository at this point in the history
…#1997)

Fixes linting issues caught by golint related to exported functions
not having comments.
  • Loading branch information
shashankram authored Nov 5, 2020
1 parent b03a81b commit 49a8099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/envoy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func (p *Proxy) HasPodMetadata() bool {
return p.podMetadata != nil
}

// SetMetadata sets the proxy metadata constructured from the given parameters
func (p *Proxy) SetMetadata(podUID, podNamespace, podIP, podServiceAccountName, envoyNodeID string) {
p.podMetadata = &PodMetadata{
UID: podUID,
Expand Down
1 change: 1 addition & 0 deletions pkg/envoy/xdsutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ func GetEnvoyServiceNodeID(nodeID string) string {
return strings.Join(items, constants.EnvoyServiceNodeSeparator)
}

// ParseEnvoyServiceNodeID parses the given Envoy service node ID and returns the encoded metadata
func ParseEnvoyServiceNodeID(serviceNodeID string) (podUID, podNamespace, podIP, serviceAccountName, nodeID string, err error) {
chunks := strings.Split(serviceNodeID, constants.EnvoyServiceNodeSeparator)

Expand Down

0 comments on commit 49a8099

Please sign in to comment.