Skip to content

Commit

Permalink
Added Network Conatiner Status to include the latest error code for a…
Browse files Browse the repository at this point in the history
… Network Container
  • Loading branch information
nairashu committed Aug 30, 2023
1 parent e789e04 commit 64c2500
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
15 changes: 11 additions & 4 deletions crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,17 @@ const (
type NodeNetworkConfigStatus struct {
// +kubebuilder:default=0
// +kubebuilder:validation:Optional
AssignedIPCount int `json:"assignedIPCount"`
Scaler Scaler `json:"scaler,omitempty"`
Status Status `json:"status,omitempty"`
NetworkContainers []NetworkContainer `json:"networkContainers,omitempty"`
AssignedIPCount int `json:"assignedIPCount"`
Scaler Scaler `json:"scaler,omitempty"`
Status Status `json:"status,omitempty"`
NetworkContainers []NetworkContainer `json:"networkContainers,omitempty"`
NetworkContainerStatuses []NetworkContainerStatus `json:"networkContainerStatuses,omitempty"`
}

// NetworkContainerStatus defines the status of the Network Containers
type NetworkContainerStatus struct {
NCID string `json:"id,omitempty"`
LatestErrorCode string `json:"latestErrorCode,omitempty"`
}

// Scaler groups IP request params together
Expand Down
20 changes: 20 additions & 0 deletions crd/nodenetworkconfig/api/v1alpha/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ spec:
assignedIPCount:
default: 0
type: integer
networkContainerStatuses:
items:
description: NetworkContainerStatus defines the status of the Network
Containers
properties:
id:
type: string
latestErrorCode:
type: string
type: object
type: array
networkContainers:
items:
description: NetworkContainer defines the structure of a Network
Expand Down

0 comments on commit 64c2500

Please sign in to comment.