Skip to content

Commit 0280790

Browse files
authored
Added Network Conatiner Status to include the latest error code for a Network Container
1 parent 0b743ac commit 0280790

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go

+11-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,17 @@ const (
6262
type NodeNetworkConfigStatus struct {
6363
// +kubebuilder:default=0
6464
// +kubebuilder:validation:Optional
65-
AssignedIPCount int `json:"assignedIPCount"`
66-
Scaler Scaler `json:"scaler,omitempty"`
67-
Status Status `json:"status,omitempty"`
68-
NetworkContainers []NetworkContainer `json:"networkContainers,omitempty"`
65+
AssignedIPCount int `json:"assignedIPCount"`
66+
Scaler Scaler `json:"scaler,omitempty"`
67+
Status Status `json:"status,omitempty"`
68+
NetworkContainers []NetworkContainer `json:"networkContainers,omitempty"`
69+
NetworkContainerStatuses []NetworkContainerStatus `json:"networkContainerStatuses,omitempty"`
70+
}
71+
72+
// NetworkContainerStatus defines the status of the Network Containers
73+
type NetworkContainerStatus struct {
74+
NCID string `json:"id,omitempty"`
75+
LatestErrorCode string `json:"latestErrorCode,omitempty"`
6976
}
7077

7178
// Scaler groups IP request params together

crd/nodenetworkconfig/api/v1alpha/zz_generated.deepcopy.go

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/nodenetworkconfig/manifests/acn.azure.com_nodenetworkconfigs.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ spec:
8181
assignedIPCount:
8282
default: 0
8383
type: integer
84+
networkContainerStatuses:
85+
items:
86+
description: NetworkContainerStatus defines the status of the Network
87+
Containers
88+
properties:
89+
id:
90+
type: string
91+
latestErrorCode:
92+
type: string
93+
type: object
94+
type: array
8495
networkContainers:
8596
items:
8697
description: NetworkContainer defines the structure of a Network

0 commit comments

Comments
 (0)