@@ -38,6 +38,8 @@ var InternalFabricGroupVersionResource = GroupVersion.WithResource(InternalFabri
38
38
type InternalFabricSpecInterfaceNode struct {
39
39
// Name is the name of the interface added to the nodes.
40
40
Name string `json:"name"`
41
+ // IP is the IP of the interface added to the nodes.
42
+ IP IP `json:"ip"`
41
43
}
42
44
43
45
// InternalFabricSpecInterface contains the information about network interfaces.
@@ -59,6 +61,23 @@ type InternalFabricSpec struct {
59
61
GatewayIP IP `json:"gatewayIP"`
60
62
}
61
63
64
+ // InternalFabricStatusInterfaceNode contains the information about the node interface.
65
+ type InternalFabricStatusInterfaceNode struct {
66
+ // Mac contains the MAC address of the node interface.
67
+ Mac string `json:"mac"`
68
+ }
69
+
70
+ // InternalFabricStatusInterface contains the information about the interface status.
71
+ type InternalFabricStatusInterface struct {
72
+ // Node contains the information about the node interface.
73
+ Node InternalFabricStatusInterfaceNode `json:"node"`
74
+ }
75
+
76
+ // InternalFabricStatus defines the observed state of InternalFabric.
77
+ type InternalFabricStatus struct {
78
+ Interface InternalFabricStatusInterface `json:"interface"`
79
+ }
80
+
62
81
// +kubebuilder:object:root=true
63
82
// +kubebuilder:resource:categories=liqo
64
83
// +kubebuilder:printcolumn:name="Gateway IP",type=string,JSONPath=`.spec.gatewayIP`
@@ -71,7 +90,8 @@ type InternalFabric struct {
71
90
metav1.TypeMeta `json:",inline"`
72
91
metav1.ObjectMeta `json:"metadata,omitempty"`
73
92
74
- Spec InternalFabricSpec `json:"spec,omitempty"`
93
+ Spec InternalFabricSpec `json:"spec,omitempty"`
94
+ Status InternalFabricStatus `json:"status,omitempty"`
75
95
}
76
96
77
97
// +kubebuilder:object:root=true
0 commit comments