Skip to content

Commit fd51875

Browse files
authored
Merge pull request #8493 from christianang/ipam-address-ref-optional
🌱 Make IPAddressClaim.Status.AddressRef optional
2 parents 67f3a1c + ad1c23d commit fd51875

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)