Skip to content

informers: take GVK directly in ObjectTracker.Watch#76

Open
tamalsaha wants to merge 1 commit into
masterfrom
refactor/drop-getRuntimeObject
Open

informers: take GVK directly in ObjectTracker.Watch#76
tamalsaha wants to merge 1 commit into
masterfrom
refactor/drop-getRuntimeObject

Conversation

@tamalsaha

Copy link
Copy Markdown
Contributor

Summary

`ObjectTracker.Watch` only used the passed-in `runtime.Object` to extract its GVK. Pass the GVK directly, drop the `getRuntimeObject` helper plus the unused `unstructured.Unstructured` allocation. `RegisterWatcher` hands the source's GVK through unwrapped.

No behavior change.

Test plan

  • `go build ./...`
  • Reconcile an ExternalDNS against each supported source kind and confirm the informer is still attached

ObjectTracker.Watch only used the object to extract its GVK. Pass the
GVK directly and drop the getRuntimeObject helper plus the now-unused
unstructured.Unstructured allocation. RegisterWatcher hands through the
source's GVK without wrapping.

No behavior change.

Signed-off-by: Tamal Saha <tamal@appscode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant