diff --git a/install/ipamcontroller.openshift.io_ippools.yaml b/install/ipamcontroller.openshift.io_ippools.yaml index 22ba8acf..0bd4059d 100644 --- a/install/ipamcontroller.openshift.io_ippools.yaml +++ b/install/ipamcontroller.openshift.io_ippools.yaml @@ -65,6 +65,10 @@ spec: - address-cidr - prefix type: object + status: + description: status represents the current information/status for the + IP pool. Populated by the system. Read-only. + type: object required: - spec type: object diff --git a/pkg/apis/ipamcontroller.openshift.io/v1/types.go b/pkg/apis/ipamcontroller.openshift.io/v1/types.go index b3c9acab..ebbb497c 100644 --- a/pkg/apis/ipamcontroller.openshift.io/v1/types.go +++ b/pkg/apis/ipamcontroller.openshift.io/v1/types.go @@ -24,6 +24,12 @@ type IPPool struct { // +required Spec IPPoolSpec `json:"spec"` + + // status represents the current information/status for the IP pool. + // Populated by the system. + // Read-only. + // +optional + Status IPPoolStatus `json:"status,omitempty"` } // IPPoolSpec is the spec for an IPPool @@ -41,6 +47,10 @@ type IPPoolSpec struct { Nameserver []string `json:"nameserver"` } +// IPPoolStatus is the current status of an IPPool. +type IPPoolStatus struct { +} + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type IPPoolList struct { diff --git a/pkg/apis/ipamcontroller.openshift.io/v1/zz_generated.deepcopy.go b/pkg/apis/ipamcontroller.openshift.io/v1/zz_generated.deepcopy.go index 3151ec9a..a55ff7ed 100644 --- a/pkg/apis/ipamcontroller.openshift.io/v1/zz_generated.deepcopy.go +++ b/pkg/apis/ipamcontroller.openshift.io/v1/zz_generated.deepcopy.go @@ -15,6 +15,7 @@ func (in *IPPool) DeepCopyInto(out *IPPool) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status return } @@ -89,3 +90,19 @@ func (in *IPPoolSpec) DeepCopy() *IPPoolSpec { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IPPoolStatus) DeepCopyInto(out *IPPoolStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolStatus. +func (in *IPPoolStatus) DeepCopy() *IPPoolStatus { + if in == nil { + return nil + } + out := new(IPPoolStatus) + in.DeepCopyInto(out) + return out +}