Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@
Failed InfinibandStatus = "Failed"
)

// MTPNCStatus indicates the high-level status of MultitenantPodNetworkConfig
// +kubebuilder:validation:Enum=Ready;Pending;InternalError;PNINotFound;PNINotReady;NodeCapacityExceeded;SubnetExhaustionError
type MTPNCStatus string

const (
MTPNCStatusReady MTPNCStatus = "Ready"

Check failure on line 69 in crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest)

File is not properly formatted (gofmt)

Check failure on line 69 in crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

View workflow job for this annotation

GitHub Actions / Lint (windows-latest)

File is not properly formatted (gofmt)
MTPNCStatusPending MTPNCStatus = "Pending"
MTPNCStatusInternalError MTPNCStatus = "InternalError"
MTPNCStatusPNINotFound MTPNCStatus = "PNINotFound"
MTPNCStatusPNINotReady MTPNCStatus = "PNINotReady"
MTPNCStatusNodeCapacityExceeded MTPNCStatus = "NodeCapacityExceeded"
MTPNCStatusSubnetExhaustionError MTPNCStatus = "SubnetExhaustionError"
)

type InterfaceInfo struct {
// NCID is the network container id
NCID string `json:"ncID,omitempty"`
Expand Down Expand Up @@ -105,6 +119,9 @@
// DefaultDenyACL bool indicates whether default deny policy will be present on the pods upon pod creation
// +kubebuilder:validation:Optional
DefaultDenyACL bool `json:"defaultDenyACL"`
// Status represents the overall status of the MTPNC
// +kubebuilder:validation:Optional
Status MTPNCStatus `json:"status,omitempty"`
}

func init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,17 @@ spec:
primaryIP:
description: Deprecated - use InterfaceInfos
type: string
status:
description: Status represents the overall status of the MTPNC
enum:
- Ready
- Pending
- InternalError
- PNINotFound
- PNINotReady
- NodeCapacityExceeded
- SubnetExhaustionError
type: string
type: object
type: object
served: true
Expand Down
Loading