godaddy / godaddy/kubernetes-client

Singular issue with plurals that do not simply add 's' to the singular

Open
#640 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
963
Forks
189
PR merge metrics
No merged PRs in 30d

Description

If you have a crd with a plural that is not as simple as most e.g. `Repositories` and the singular is `Repository`
When you make a call using the client `kubeClient.apis['apiGroupHere']['apiVersion']` to find the crd
it will return `Repositorie` not `Repository`

This my opinion this is a pretty bad bug
Using standard api calls using postman for example work perfectly fine

Contributor guide

Open the contributing guide

Research direction

Start by tracing the CRD lookup through kubeClient.apis['apiGroupHere']['apiVersion'] and compare how plural and singular resource names are derived. Reproduce the issue with a CRD whose plural is Repositories and singular is Repository, then verify the client returns the declared singular name rather than Repositorie.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.