vmware-tanzu/sources-for-knative

Add `vsphereapiversion` CE attribute

embano1 opened this issue · 2 comments

Even though not explicitly stated, event schemas for vSphere are tied to a particular vSphere release, i.e. could break between major releases (even minor). Currently there is no way to detect the vSphere version that generated a particular event. This could lead to decoding errors in functions if a schema breaks in a non-compatible way between vSphere releases.

Ideally, vSphere events should carry a version indicating the schema version/contract consumers can rely on. Providing OpenAPI schemas would be neat to but seems not feasible as an implementation in vSphere currently.

The short-term solution would be to use a custom context attribute vsphereapiversion to reflect the vSphere API version an adapter is connected to.

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

/remove-lifecycle stale