Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResultNormal = common.ResultNormal ResultRequeue = common.ResultRequeue ResultRequeueAfter5mins = common.ResultRequeueAfter5mins MetricResType = common.MetricResTypeNetworkPolicy )
Functions ¶
func StartNetworkPolicyController ¶
func StartNetworkPolicyController(mgr ctrl.Manager, commonService servicecommon.Service, vpcService servicecommon.VPCServiceProvider)
Types ¶
type NetworkPolicyReconciler ¶
type NetworkPolicyReconciler struct { Client client.Client Scheme *apimachineryruntime.Scheme Service *securitypolicy.SecurityPolicyService Recorder record.EventRecorder }
NetworkPolicyReconciler reconciles a NetworkPolicy object
func (*NetworkPolicyReconciler) GarbageCollector ¶
func (r *NetworkPolicyReconciler) GarbageCollector(cancel chan bool, timeout time.Duration)
GarbageCollector collect networkpolicy which has been removed from K8s. cancel is used to break the loop during UT
Click to show internal directories.
Click to hide internal directories.