Documentation ¶
Index ¶
- func GetSelfNode(isAgent bool, node string) v1.ObjectReference
- func GetSelfPod() v1.ObjectReference
- func GetVersion() string
- type AgentNetworkPolicyInfoQuerier
- type ControllerNetworkPolicyInfoQuerier
- type NetworkPolicyInfoQuerier
- type NetworkPolicyQueryFilter
- type ServiceExternalIPInfo
- type ServiceExternalIPStatusQuerier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSelfNode ¶
func GetSelfNode(isAgent bool, node string) v1.ObjectReference
GetSelfNode gets current node.
Types ¶
type AgentNetworkPolicyInfoQuerier ¶
type AgentNetworkPolicyInfoQuerier interface { NetworkPolicyInfoQuerier GetControllerConnectionStatus() bool GetNetworkPolicies(npFilter *NetworkPolicyQueryFilter) []cpv1beta.NetworkPolicy GetAddressGroups() []cpv1beta.AddressGroup GetAppliedToGroups() []cpv1beta.AppliedToGroup GetAppliedNetworkPolicies(pod, namespace string, npFilter *NetworkPolicyQueryFilter) []cpv1beta.NetworkPolicy GetNetworkPolicyByRuleFlowID(ruleFlowID uint32) *cpv1beta.NetworkPolicyReference GetRuleByFlowID(ruleFlowID uint32) *types.PolicyRule }
type ControllerNetworkPolicyInfoQuerier ¶
type ControllerNetworkPolicyInfoQuerier interface { NetworkPolicyInfoQuerier GetConnectedAgentNum() int }
type NetworkPolicyQueryFilter ¶
type NetworkPolicyQueryFilter struct { // The Name of the controlplane network policy. If this field is set then // none of the other fields can be. Name string // The Name of the original network policy. SourceName string // The namespace of the original Namespace that the internal NetworkPolicy is created for. Namespace string // Name of the pod that the network policy is applied on. Pod string // The type of the original NetworkPolicy that the internal NetworkPolicy is created for.(K8sNP, CNP, ANP) SourceType cpv1beta.NetworkPolicyType }
NetworkPolicyQueryFilter is used to filter the result while retrieve network policy An empty attribute, which won't be used as a condition, means match all. e.g SourceType = "" means all type network policy will be retrieved Can have more attributes in future if more args are required
type ServiceExternalIPInfo ¶ added in v1.5.3
type ServiceExternalIPInfo struct { ServiceName string `json:"serviceName,omitempty" antctl:"name,Name of the Service"` Namespace string `json:"namespace,omitempty"` ExternalIP string `json:"externalIP,omitempty"` ExternalIPPool string `json:"externalIPPool,omitempty"` AssignedNode string `json:"assignedNode,omitempty"` }
ServiceExternalIPInfo contains the essential information for Services with type of Loadbalancer managed by Antrea.
type ServiceExternalIPStatusQuerier ¶ added in v1.5.3
type ServiceExternalIPStatusQuerier interface {
GetServiceExternalIPStatus() []ServiceExternalIPInfo
}
ServiceExternalIPStatusQuerier queries the Service external IP status for debugging purposes. Ideally, every Node should have consistent results eventually. This should only be used when ServiceExternalIP feature is enabled.