Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL Vs REST? #16

Open
mnkg561 opened this issue Mar 25, 2020 · 0 comments
Open

GraphQL Vs REST? #16

mnkg561 opened this issue Mar 25, 2020 · 0 comments
Labels
enhancement New feature or request question Further information is requested server

Comments

@mnkg561
Copy link
Contributor

mnkg561 commented Mar 25, 2020

Is this a BUG REPORT or FEATURE REQUEST?:
QUESTION

What happened:
We might have to take this opportunity to think and see if we can use graphQL to publish the APIs instead of REST.
Graphql comes with some good advantages but we are gonna have some challenges in terms of code generation tools. we already have two types of data structures i.e, one for controller where kube builder auto generates open API schema and CRDs and grpc .proto files with almost same fields but protogen generates its own structures and starting from latest release of go-protobuf, protogen generated structs will not have json tags for auto generated fields and for kubebuilder it is mandatory.

And, if we include grapql.schema where we need to define the types separetly. so if we needed to add/update/remove any field to the existing schema we need to do that change in 3 different places and in no time this gets very ugly.
I would love to see if someone comes up with any kind of tool for auto generation based one defination(.proto -> graphql as well as kubebuilder supported structures).

Looks like google already have https://github.com/google/rejoiner but thats specific to java.

What you expected to happen:
Finalize on how to publish APIs

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • manager version
  • Kubernetes version :
$ kubectl version -o yaml

Other debugging information (if applicable):

- controller logs:

$ kubectl logs

@mnkg561 mnkg561 added enhancement New feature or request question Further information is requested server labels Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested server
Projects
None yet
Development

No branches or pull requests

1 participant