Use oc adm instead of oadm which might not exist in various installations.
@@ -120,7 +120,7 @@ func (np *networkPolicyPlugin) initNamespaces() error {
policies, err := np.node.kClient.Extensions().NetworkPolicies(kapi.NamespaceAll).List(metav1.ListOptions{})
if err != nil {
if kapierrs.IsForbidden(err) {
- glog.Errorf("Unable to query NetworkPolicies (%v) - please ensure your nodes have access to view NetworkPolicy (eg, 'oadm policy reconcile-cluster-roles')", err)
+ glog.Errorf("Unable to query NetworkPolicies (%v) - please ensure your nodes have access to view NetworkPolicy (eg, 'oc adm policy reconcile-cluster-roles')", err)
}
return err
}
