@@ -39,7 +39,7 @@ func convertPodToEndpoints(idNamespace string, pod *v1.Pod) []observer.Endpoint
39
39
}}
40
40
41
41
// Map of running containers by name.
42
- runningContainers := map [string ]RunningContainer {}
42
+ runningContainers := map [string ]runningContainer {}
43
43
44
44
for _ , container := range pod .Status .ContainerStatuses {
45
45
if container .State .Running != nil {
@@ -49,7 +49,7 @@ func convertPodToEndpoints(idNamespace string, pod *v1.Pod) []observer.Endpoint
49
49
50
50
// Create endpoint for each named container port.
51
51
for _ , container := range pod .Spec .Containers {
52
- var runningContainer RunningContainer
52
+ var runningContainer runningContainer
53
53
var ok bool
54
54
if runningContainer , ok = runningContainers [container .Name ]; ! ok {
55
55
continue
@@ -105,18 +105,18 @@ func getTransport(protocol v1.Protocol) observer.Transport {
105
105
}
106
106
107
107
// containerIDWithRuntime parses the container ID to get the actual ID string
108
- func containerIDWithRuntime (c v1.ContainerStatus ) RunningContainer {
108
+ func containerIDWithRuntime (c v1.ContainerStatus ) runningContainer {
109
109
cID := c .ContainerID
110
110
if cID != "" {
111
111
parts := strings .Split (cID , "://" )
112
112
if len (parts ) == 2 {
113
- return RunningContainer {parts [1 ], parts [0 ]}
113
+ return runningContainer {parts [1 ], parts [0 ]}
114
114
}
115
115
}
116
- return RunningContainer {}
116
+ return runningContainer {}
117
117
}
118
118
119
- type RunningContainer struct {
119
+ type runningContainer struct {
120
120
ID string
121
121
Runtime string
122
122
}
0 commit comments