Open alexellis opened 5 years ago
I'll take a look at this, @alexellis
I'm quite keen to get this done quickly. Once you've had a look please can you reply if you can work on it and when you think that you may have a PR up?
The port is always fixed as: 8080
We have ways to translate the OpenFaaS scaling parameters but I am OK with just replicating the above YAML 1:1 with all the defaults for the first iteration then, we can improve on that. Secrets are also not needed for this PR.
We will definitely need the env
.
Expected Behaviour
The following should generate a Rancher Rio Service definition:
Current Behaviour
We have OpenFaaS CRD and Knative Serving CRD in place. I'd like to see the Rio CRD there next.
Possible Solution
Copy the approach used for the current generation as per: https://github.com/openfaas/faas-cli/blob/master/commands/generate.go#L164
Set all default / minimum needed to get a service running.
kubectl apply
for the sample YAML above