File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1836,7 +1836,7 @@ func DefaultContainerLabels(container *info.ContainerInfo) map[string]string {
1836
1836
}
1837
1837
1838
1838
// BaseContainerLabels returns a ContainerLabelsFunc that exports the container
1839
- // name, first alias, image name as well as all its env and white listed label values.
1839
+ // name, first alias, image name as well as white listed label values.
1840
1840
func BaseContainerLabels (whiteList []string ) func (container * info.ContainerInfo ) map [string ]string {
1841
1841
whiteListMap := make (map [string ]struct {}, len (whiteList ))
1842
1842
for _ , k := range whiteList {
@@ -1856,9 +1856,6 @@ func BaseContainerLabels(whiteList []string) func(container *info.ContainerInfo)
1856
1856
set [ContainerLabelPrefix + k ] = v
1857
1857
}
1858
1858
}
1859
- for k , v := range container .Spec .Envs {
1860
- set [ContainerEnvPrefix + k ] = v
1861
- }
1862
1859
return set
1863
1860
}
1864
1861
}
You can’t perform that action at this time.
0 commit comments