Skip to content

Consider naming TypedLocalObjectReference fields fooRef #50

Closed
@jpeach

Description

@jpeach

https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#naming-conventions

The name of a field referring to another resource of kind Foo by name should be called fooName. The name of a field referring to another resource of kind Foo by ObjectReference (or subset thereof) should be called fooRef.

Following this recommendation would replace Extension with ExtensionRef, but it would also replace ForwardTo with something less wieldy (maybe TargetRef). So maybe it's better not to follow this convention in all cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions