fission / fission

Fast and Simple Serverless Functions for Kubernetes
https://fission.io
Apache License 2.0
8.43k stars 785 forks source link

Fission Operator - for managing functions with CRDs #2742

Open yairyairyair opened 1 year ago

yairyairyair commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like I want a simple CRD kind: Function where i give it runtime lang, and raw code, apply it to the cluster and i can get the function running simple example is this: https://github.com/vmware-archive/kubeless/blob/master/examples/nodejs/function1.yaml

apiVersion: kubeless.io/v1beta1
kind: Function
metadata:
  name: hello
spec:
  handler: handler.foobar
  runtime: nodejs8
  function: |
      module.exports = {
        foobar: function (event, context) {
        return(event.data)
      }
 }

That way i do not need to build and manage dockerfile and docker images, all i have is the code, simple and useful.

Describe alternatives you've considered Considered using kubeless or openfaas but kubeless is archived and openfaas operator requires you to build a docker image and many configurations

Additional context This feature is valuable to me, if one can help me with it i would be very happy

NikhilSharmaWe commented 1 year ago

@yairyairyair Currently, fission does not have an alternative to create fission functions through config YAML. Maybe we can work on it in the coming releases.

@sanketsudake What do you think?