Skip to content

Commit

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

[release-1.2] ✨Implements Getter interface for IPAddressClaim object
  • Loading branch information
k8s-ci-robot committed Mar 27, 2023
2 parents b5bcbd2 + 86862d6 commit c22b0b0
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 c22b0b0

Please sign in to comment.