From d8b4ce2c74fd3d658075a887ac7ee50b1ad0b7e6 Mon Sep 17 00:00:00 2001 From: Matthew Long <61910737+thatmattlong@users.noreply.github.com> Date: Tue, 22 Feb 2022 20:18:57 -0800 Subject: [PATCH] fix: CRD status should include Node IP (#1249) --- crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go | 1 + .../manifests/acn.azure.com_nodenetworkconfigs.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go b/crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go index 6c89aff4d..afdcc0662 100644 --- a/crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go +++ b/crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go @@ -80,6 +80,7 @@ type NetworkContainer struct { DefaultGateway string `json:"defaultGateway,omitempty"` SubnetAddressSpace string `json:"subnetAddressSpace,omitempty"` Version int64 `json:"version,omitempty"` + NodeIP string `json:"nodeIP,omitempty"` } // IPAssignment groups an IP address and Name. Name is a UUID set by the the IP address assigner. diff --git a/crd/nodenetworkconfig/manifests/acn.azure.com_nodenetworkconfigs.yaml b/crd/nodenetworkconfig/manifests/acn.azure.com_nodenetworkconfigs.yaml index a83ac1b8d..716dd1628 100644 --- a/crd/nodenetworkconfig/manifests/acn.azure.com_nodenetworkconfigs.yaml +++ b/crd/nodenetworkconfig/manifests/acn.azure.com_nodenetworkconfigs.yaml @@ -93,6 +93,8 @@ spec: type: string type: object type: array + nodeIP: + type: string primaryIP: type: string subnetAddressSpace: