feat: set primaryInterfaceIdentifier for cns.CreateNetworkContainerRequest
This commit is contained in:
Родитель
fa77d4348f
Коммит
219e7efee4
|
@ -127,7 +127,9 @@ func (r *multiTenantCrdReconciler) Reconcile(request reconcile.Request) (reconci
|
|||
},
|
||||
GatewayIPAddress: nc.Status.Gateway,
|
||||
},
|
||||
PrimaryInterfaceIdentifier: nc.Status.PrimaryInterfaceIdentifier,
|
||||
}
|
||||
logger.Printf("CreateOrUpdateNC with networkContainerRequest: %#v", networkContainerRequest)
|
||||
if err = r.CNSClient.CreateOrUpdateNC(networkContainerRequest); err != nil {
|
||||
logger.Errorf("Failed to persist state for NC %s (UUID: %s) to CNS: %v", request.NamespacedName.String(), nc.Spec.UUID, err)
|
||||
return ctrl.Result{}, err
|
||||
|
|
|
@ -48,6 +48,8 @@ type MultiTenantNetworkContainerStatus struct {
|
|||
State string `json:"state,omitempty"`
|
||||
// The subnet CIDR
|
||||
IPSubnet string `json:"ipSubnet,omitempty"`
|
||||
// The primary interface identifier
|
||||
PrimaryInterfaceIdentifier string `json:"primaryInterfaceIdentifier,omitempty"`
|
||||
}
|
||||
|
||||
// +kubebuilder:object:root=true
|
||||
|
|
|
@ -70,6 +70,9 @@ spec:
|
|||
ipSubnet:
|
||||
description: The subnet CIDR
|
||||
type: string
|
||||
primaryInterfaceIdentifier:
|
||||
description: The primary interface identifier
|
||||
type: string
|
||||
state:
|
||||
description: The state of network container
|
||||
type: string
|
||||
|
|
Загрузка…
Ссылка в новой задаче