controller-tools icon indicating copy to clipboard operation
controller-tools copied to clipboard

singular annotation does not get apply to the crd

Open danigrmartinez opened this issue 7 years ago • 4 comments

I wanted to get a specific single and plural name not base on the kind of the CRD. According to the documentation can be done using the +kubebuilder:resource:singular.

Reproduce the issue

// +kubebuilder:resource:singular=my-singular,path=my-plural,scope=namespaced

Expected CRD result

  group: group.com
  names:
    kind: MyKindType
    listKind: MyKindTypeList
    plural: my-plural
    singular: my-singular
  scope: namespaced

Actual CRD result

  group: group.com
  names:
    kind: MyKindType
    listKind: MyKindTypeList
    plural: my-plural
    singular: mykindtype
  scope: namespaced

This is because on the ApplyToCRD function, Singular filed is not use.

I saw some comments about singular but I couldn't understand if it is intentional ignore or it was just forgot. Thanks!

danigrmartinez avatar Oct 15 '19 14:10 danigrmartinez

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

fejta-bot avatar Jan 13 '20 14:01 fejta-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten

fejta-bot avatar Feb 12 '20 14:02 fejta-bot

/remove-lifecycle rotten

hypnoglow avatar Feb 26 '20 20:02 hypnoglow

/assign

hypnoglow avatar Feb 26 '20 20:02 hypnoglow