Skip to content

Document where to use versioned struct and where not #289

Open
@discordianfish

Description

Hi,

I'm using client-go's NewSharedInformer to access ingresses but I'm not sure which expectedType to use.

I've started out using (k8s.io/client-go/pkg/apis/)extensions.Ingress which worked on my 1.7 clusters but another user reported their got the error expected type *extensions.Ingress, but watch event object had type *v1beta1.Ingress" component. If I use (k8s.io/client-go/pkg/apis/extensions/)v1beta1.Ingress it seems to work on all cluster but I couldn't find any authoritative information about The Right Way.

Please document which structs to use with NewSharedInformer, preferably in a way that still works when Ingress get moved out of beta.

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions