kubernetes-client icon indicating copy to clipboard operation
kubernetes-client copied to clipboard

feat: add getDefaultPluralFor method

Open metacosm opened this issue 1 year ago • 3 comments

Fixes #6313

Description

Type of change

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] Feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change
  • [ ] Chore (non-breaking change which doesn't affect codebase; test, version modification, documentation, etc.)

Checklist

  • [x] Code contributed by me aligns with current project license: Apache 2.0
  • [x] I Added CHANGELOG entry regarding this change
  • [ ] I have implemented unit tests to cover my changes
  • [x] I have added/updated the javadocs and other documentation accordingly
  • [ ] No new bugs, code smells, etc. in SonarCloud report
  • [ ] I tested my code in Kubernetes
  • [ ] I tested my code in OpenShift

metacosm avatar Aug 29 '24 13:08 metacosm

I would make it explicit in the javadoc that this might give an unexpected result, thus the plural form is not necessarily same as the plural form on the server.

Added a comment to that effect.

metacosm avatar Mar 06 '25 18:03 metacosm