Skip to content

Commit 7f396ca

Browse files
committed
ipnet: add marker for controller-gen
Needed to tell controller-gen we're implementing our own marshalling. Otherwise it fails for newer versions of controller-gen with ``` /go/src/github.com/openshift/installer/pkg/ipnet/ipnet.go:18:2: encountered struct field "" without JSON tag in type "IPNet" ```
1 parent b1a4abe commit 7f396ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/ipnet/ipnet.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ var nullBytes = []byte(nullString)
1414
var emptyIPNet = net.IPNet{}
1515

1616
// IPNet wraps net.IPNet to get CIDR serialization.
17+
// +kubebuilder:validation:Type=string
1718
type IPNet struct {
1819
net.IPNet
1920
}

0 commit comments

Comments
 (0)