Skip to content

Commit

Permalink
Merge pull request #12 from vr4manta/add-status-to-ippool-crd
Browse files Browse the repository at this point in the history
Added status field to IPPool CRD.
  • Loading branch information
rvanderp3 authored Jul 14, 2023
2 parents ae58548 + 7073769 commit 85256c8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/ipamcontroller.openshift.io_ippools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions pkg/apis/ipamcontroller.openshift.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down
17 changes: 17 additions & 0 deletions pkg/apis/ipamcontroller.openshift.io/v1/zz_generated.deepcopy.go

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

0 comments on commit 85256c8

Please sign in to comment.