Skip to content

Commit

Permalink
update comments to match resource type
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Borrelli <[email protected]>
  • Loading branch information
stevendborrelli committed May 20, 2024
1 parent 434972f commit 53155a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resource/composed/composed.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,15 @@ func (cd *Unstructured) SetInteger(path string, value int64) error {
return cd.SetValue(path, value)
}

// SetObservedGeneration of this composite resource claim.
// SetObservedGeneration of this Composed resource.
func (cd *Unstructured) SetObservedGeneration(generation int64) {
status := &xpv1.ObservedStatus{}
_ = fieldpath.Pave(cd.Object).GetValueInto("status", status)
status.SetObservedGeneration(generation)
_ = fieldpath.Pave(cd.Object).SetValue("status.observedGeneration", status.ObservedGeneration)
}

// GetObservedGeneration of this composite resource claim.
// GetObservedGeneration of this Composed resource.
func (cd *Unstructured) GetObservedGeneration() int64 {
status := &xpv1.ObservedStatus{}
_ = fieldpath.Pave(cd.Object).GetValueInto("status", status)
Expand Down
4 changes: 2 additions & 2 deletions resource/composite/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,15 @@ func (xr *Unstructured) SetInteger(path string, value int64) error {
return xr.SetValue(path, value)
}

// SetObservedGeneration of this composite resource claim.
// SetObservedGeneration of this Composite resource.
func (xr *Unstructured) SetObservedGeneration(generation int64) {
status := &xpv1.ObservedStatus{}
_ = fieldpath.Pave(xr.Object).GetValueInto("status", status)
status.SetObservedGeneration(generation)
_ = fieldpath.Pave(xr.Object).SetValue("status.observedGeneration", status.ObservedGeneration)
}

// GetObservedGeneration of this composite resource claim.
// GetObservedGeneration of this Composite resource.
func (xr *Unstructured) GetObservedGeneration() int64 {
status := &xpv1.ObservedStatus{}
_ = fieldpath.Pave(xr.Object).GetValueInto("status", status)
Expand Down

0 comments on commit 53155a2

Please sign in to comment.