36 Star 412 Fork 76

GVPrancher/rancher

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
pnpsyncer.go 556 Bytes
Copy Edit Raw Blame History
Murali Paluru authored 7 years ago . fixes
package networkpolicy
import (
"github.com/rancher/types/apis/management.cattle.io/v3"
"github.com/sirupsen/logrus"
)
type projectNetworkPolicySyncer struct {
npmgr *netpolMgr
}
// Sync invokes the Policy Handler to take care of installing the native network policies
func (pnps *projectNetworkPolicySyncer) Sync(key string, pnp *v3.ProjectNetworkPolicy) error {
if pnp == nil || pnp.DeletionTimestamp != nil {
return nil
}
logrus.Debugf("projectNetworkPolicySyncer: Sync: pnp=%+v", pnp)
return pnps.npmgr.programNetworkPolicy(pnp.Namespace)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rancher/rancher.git
git@gitee.com:rancher/rancher.git
rancher
rancher
rancher
v2.0.0-beta2

Search