Skip to content

Commit ad1c23d

Browse files
committed
Make IPAddressClaim.Status.AddressRef optional
to be able to set conditions on the claim without setting the addressRef, in the case of failure. Signed-off-by: Christian Ang <[email protected]>
1 parent 4f60841 commit ad1c23d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

config/crd/bases/ipam.cluster.x-k8s.io_ipaddressclaims.yaml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exp/ipam/api/v1alpha1/ipaddressclaim_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ type IPAddressClaimSpec struct {
3232
// IPAddressClaimStatus is the observed status of a IPAddressClaim.
3333
type IPAddressClaimStatus struct {
3434
// AddressRef is a reference to the address that was created for this claim.
35-
AddressRef corev1.LocalObjectReference `json:"addressRef"`
35+
// +optional
36+
AddressRef corev1.LocalObjectReference `json:"addressRef,omitempty"`
3637

3738
// Conditions summarises the current state of the IPAddressClaim
3839
// +optional

0 commit comments

Comments
 (0)