File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 9
9
"strings"
10
10
"syscall"
11
11
12
+ sdnapi "github.com/openshift/origin/pkg/sdn/api"
12
13
"github.com/openshift/origin/pkg/sdn/plugin/cniserver"
13
14
14
15
"github.com/golang/glog"
@@ -35,8 +36,6 @@ const (
35
36
tearDownCmd = "teardown"
36
37
updateCmd = "update"
37
38
38
- AssignMacvlanAnnotation string = "pod.network.openshift.io/assign-macvlan"
39
-
40
39
podInterfaceName = knetwork .DefaultInterfaceName
41
40
)
42
41
@@ -71,12 +70,12 @@ func wantsMacvlan(pod *kapi.Pod) (bool, error) {
71
70
}
72
71
}
73
72
74
- val , ok := pod .Annotations [AssignMacvlanAnnotation ]
73
+ val , ok := pod .Annotations [sdnapi . AssignMacvlanAnnotation ]
75
74
if ! ok || val != "true" {
76
75
return false , nil
77
76
}
78
77
if ! privileged {
79
- return false , fmt .Errorf ("pod has %q annotation but is not privileged" , AssignMacvlanAnnotation )
78
+ return false , fmt .Errorf ("pod has %q annotation but is not privileged" , sdnapi . AssignMacvlanAnnotation )
80
79
}
81
80
82
81
return true , nil
You can’t perform that action at this time.
0 commit comments