Skip to content

Commit

Permalink
Merge pull request #8379 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…8374-to-release-1.4

[release-1.4] ✨Implements Getter interface for IPAddressClaim object
  • Loading branch information
k8s-ci-robot committed Mar 27, 2023
2 parents f3a511a + 64a5a2a commit 8c09e09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions exp/ipam/api/v1alpha1/ipaddressclaim_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ type IPAddressClaim struct {
Status IPAddressClaimStatus `json:"status,omitempty"`
}

// GetConditions returns the set of conditions for this object.
func (m *IPAddressClaim) GetConditions() clusterv1.Conditions {
return m.Status.Conditions
}

// SetConditions sets the conditions on this object.
func (m *IPAddressClaim) SetConditions(conditions clusterv1.Conditions) {
m.Status.Conditions = conditions
}

// +kubebuilder:object:root=true

// IPAddressClaimList is a list of IPAddressClaims.
Expand Down

0 comments on commit 8c09e09

Please sign in to comment.