Documentation ¶
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type AgentCondition
- type AgentConditionType
- type AntreaAgentInfo
- type AntreaAgentInfoList
- type AntreaControllerInfo
- type AntreaControllerInfoList
- type ControllerCondition
- type ControllerConditionType
- type NetworkPolicyControllerInfo
- type OVSInfo
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{
Group: "clusterinformation.antrea.tanzu.vmware.com",
Version: "v1beta1",
}
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type AgentCondition ¶
type AgentCondition struct { Type AgentConditionType `json:"type"` // One of the AgentConditionType listed above Status corev1.ConditionStatus `json:"status"` // Mark certain type status, one of True, False, Unknown LastHeartbeatTime metav1.Time `json:"lastHeartbeatTime"` // The timestamp when AntreaAgentInfo is created/updated, ideally heartbeat interval is 60s Reason string `json:"reason,omitempty"` // Brief reason Message string `json:"message,omitempty"` // Human readable message indicating details }
func (*AgentCondition) DeepCopy ¶
func (in *AgentCondition) DeepCopy() *AgentCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentCondition.
func (*AgentCondition) DeepCopyInto ¶
func (in *AgentCondition) DeepCopyInto(out *AgentCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentConditionType ¶
type AgentConditionType string
const ( AgentHealthy AgentConditionType = "AgentHealthy" // Status is always set to be True and LastHeartbeatTime is used to check Agent health status. ControllerConnectionUp AgentConditionType = "ControllerConnectionUp" // Status True/False is used to mark the connection status between Agent and Controller. OVSDBConnectionUp AgentConditionType = "OVSDBConnectionUp" // Status True/False is used to mark OVSDB connection status. OpenflowConnectionUp AgentConditionType = "OpenflowConnectionUp" // Status True/False is used to mark Openflow connection status. )
type AntreaAgentInfo ¶
type AntreaAgentInfo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Version string `json:"version,omitempty"` // Antrea binary version PodRef corev1.ObjectReference `json:"podRef,omitempty"` // The Pod that Antrea Agent is running in NodeRef corev1.ObjectReference `json:"nodeRef,omitempty"` // The Node that Antrea Agent is running in NodeSubnets []string `json:"nodeSubnets,omitempty"` // Node subnets OVSInfo OVSInfo `json:"ovsInfo,omitempty"` // OVS Information NetworkPolicyControllerInfo NetworkPolicyControllerInfo `json:"networkPolicyControllerInfo,omitempty"` // Antrea Agent NetworkPolicy information LocalPodNum int32 `json:"localPodNum,omitempty"` // The number of Pods which the agent is in charge of AgentConditions []AgentCondition `json:"agentConditions,omitempty"` // Agent condition contains types like AgentHealthy APIPort int `json:"apiPort,omitempty"` // The port of antrea agent API Server }
+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AntreaAgentInfo) DeepCopy ¶
func (in *AntreaAgentInfo) DeepCopy() *AntreaAgentInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaAgentInfo.
func (*AntreaAgentInfo) DeepCopyInto ¶
func (in *AntreaAgentInfo) DeepCopyInto(out *AntreaAgentInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AntreaAgentInfo) DeepCopyObject ¶
func (in *AntreaAgentInfo) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AntreaAgentInfoList ¶
type AntreaAgentInfoList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AntreaAgentInfo `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AntreaAgentInfoList) DeepCopy ¶
func (in *AntreaAgentInfoList) DeepCopy() *AntreaAgentInfoList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaAgentInfoList.
func (*AntreaAgentInfoList) DeepCopyInto ¶
func (in *AntreaAgentInfoList) DeepCopyInto(out *AntreaAgentInfoList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AntreaAgentInfoList) DeepCopyObject ¶
func (in *AntreaAgentInfoList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AntreaControllerInfo ¶
type AntreaControllerInfo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Version string `json:"version,omitempty"` // Antrea binary version PodRef corev1.ObjectReference `json:"podRef,omitempty"` // The Pod that Antrea Controller is running in NodeRef corev1.ObjectReference `json:"nodeRef,omitempty"` // The Node that Antrea Controller is running in ServiceRef corev1.ObjectReference `json:"serviceRef,omitempty"` // Antrea Controller Service NetworkPolicyControllerInfo NetworkPolicyControllerInfo `json:"networkPolicyControllerInfo,omitempty"` // Antrea Controller NetworkPolicy information ConnectedAgentNum int32 `json:"connectedAgentNum,omitempty"` // Number of agents which are connected to this controller ControllerConditions []ControllerCondition `json:"controllerConditions,omitempty"` // Controller condition contains types like ControllerHealthy APIPort int `json:"apiPort,omitempty"` // The port of antrea controller API Server }
+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AntreaControllerInfo) DeepCopy ¶
func (in *AntreaControllerInfo) DeepCopy() *AntreaControllerInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaControllerInfo.
func (*AntreaControllerInfo) DeepCopyInto ¶
func (in *AntreaControllerInfo) DeepCopyInto(out *AntreaControllerInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AntreaControllerInfo) DeepCopyObject ¶
func (in *AntreaControllerInfo) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AntreaControllerInfoList ¶
type AntreaControllerInfoList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AntreaControllerInfo `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AntreaControllerInfoList) DeepCopy ¶
func (in *AntreaControllerInfoList) DeepCopy() *AntreaControllerInfoList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaControllerInfoList.
func (*AntreaControllerInfoList) DeepCopyInto ¶
func (in *AntreaControllerInfoList) DeepCopyInto(out *AntreaControllerInfoList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AntreaControllerInfoList) DeepCopyObject ¶
func (in *AntreaControllerInfoList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ControllerCondition ¶
type ControllerCondition struct { Type ControllerConditionType `json:"type"` // One of the ControllerConditionType listed above, controllerHealthy Status corev1.ConditionStatus `json:"status"` // Mark certain type status, one of True, False, Unknown LastHeartbeatTime metav1.Time `json:"lastHeartbeatTime"` // The timestamp when AntreaControllerInfo is created/updated, ideally heartbeat interval is 60s Reason string `json:"reason,omitempty"` // Brief reason Message string `json:"message,omitempty"` // Human readable message indicating details }
func (*ControllerCondition) DeepCopy ¶
func (in *ControllerCondition) DeepCopy() *ControllerCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerCondition.
func (*ControllerCondition) DeepCopyInto ¶
func (in *ControllerCondition) DeepCopyInto(out *ControllerCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerConditionType ¶
type ControllerConditionType string
const (
ControllerHealthy ControllerConditionType = "ControllerHealthy" // Status is always set to be True and LastHeartbeatTime is used to check Controller health status.
)
type NetworkPolicyControllerInfo ¶
type NetworkPolicyControllerInfo struct { NetworkPolicyNum int32 `json:"networkPolicyNum,omitempty"` AddressGroupNum int32 `json:"addressGroupNum,omitempty"` AppliedToGroupNum int32 `json:"appliedToGroupNum,omitempty"` }
func (*NetworkPolicyControllerInfo) DeepCopy ¶
func (in *NetworkPolicyControllerInfo) DeepCopy() *NetworkPolicyControllerInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyControllerInfo.
func (*NetworkPolicyControllerInfo) DeepCopyInto ¶
func (in *NetworkPolicyControllerInfo) DeepCopyInto(out *NetworkPolicyControllerInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OVSInfo ¶
type OVSInfo struct { Version string `json:"version,omitempty"` BridgeName string `json:"bridgeName,omitempty"` FlowTable map[string]int32 `json:"flowTable,omitempty"` // Key: flow table name, Value: flow number }
func (*OVSInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OVSInfo.
func (*OVSInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.