-
Notifications
You must be signed in to change notification settings - Fork 12
Change plural for RemoteResourceS3 from remoteresourcess3
to remoteresources3s
#80
Comments
I can see how the plural may seem unorthodox, but the idea is that the At this point i think it creates unneeded confusion to change the plural, as it would create a new CRD name in Kubernetes, and would look like a duplicate on systems already using razee. To me it seems like more of a bug with the code generator, and an issue should be opened with them. The code generator should respect that the english language uses more than just an
Until the issue you create for the code generator is resolved, I can investigate this, but i dont fully understand what it means. Can you elaborate on what work this would entail and where i can learn more on how to do what you are asking? |
for reference, here is the issue i was talking about for kubectl: and the corresponding fix: |
We are creating and deploying the |
Unfortunately, we cant change the plural form without breaking existing users. Luckily you have a work around, and we dont change the actual definition all that often, so it shouldnt be that much extra work for the time being. I have gone ahead and opened an issue kubernetes/code-generator#101 to get the code generator on par with the expected kubernetes behavior. If this isnt enough and you still feel blocked, please let me know. |
Closing as a workaround is available. We'll use https://github.com/dvasilen/razee-rrs3/tree/master/pkg for now and revisit if/when kubernetes/code-generator#101 is addressed. |
Is your feature request related to a problem? Please describe.
The
plural
name for the RemoteResourceS3 in YAML is somewhat unorthodox and makes it difficult to use k8s code-generator to create go-lang clientset bindings.Describe the solution you'd like
Change
plural: remoteresourcess3
toplural: remoteresources3s
in RemoteResourceS3 YAML or provide go-lang clientset bindings for the Razee CRDs.Describe alternatives you've considered
To workaround the problem we have to manually update the generated go-lang code and change the
remoteresources3s
toremoteresourcess3
Additional context
Here is the attempt to work around the problem. The generated code is on the right. The edited code is on the left.
The text was updated successfully, but these errors were encountered: