File tree 1 file changed +8
-1
lines changed 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,14 @@ func (p *ProjectOptions) Validate() error {
84
84
errList = append (errList , errors .New ("must provide --selector=<project_selector> or projects" ))
85
85
}
86
86
87
- // TODO: Validate if the openshift master is running with mutitenant network plugin
87
+ clusterNetwork , err := p .Oclient .ClusterNetwork ().Get (sdnapi .ClusterNetworkDefault )
88
+ if err != nil {
89
+ errList = append (errList , errors .New ("could not manage pod network: error on getting the running network plugin" ))
90
+ } else if ! sdnapi .IsOpenShiftMultitenantNetworkPlugin (clusterNetwork .PluginName ) {
91
+ err := fmt .Errorf ("could not manage pod network: the running plugin %s is not OpenShift mutitenant network plugin" , clusterNetwork .PluginName )
92
+ errList = append (errList , err )
93
+ }
94
+
88
95
return kerrors .NewAggregate (errList )
89
96
}
90
97
You can’t perform that action at this time.
0 commit comments