apache / openwhisk-cli

Apache OpenWhisk Command Line Interface (CLI)
https://openwhisk.apache.org/
Apache License 2.0
103 stars 98 forks source link

Rust file (.rs) is not a supported action runtime #494

Closed kingledion closed 3 years ago

kingledion commented 3 years ago

Environment details:

Steps to reproduce the issue:

  1. Set up OpenWhisk locally with instructions here
  2. Start OpenWhisk with `helm install owdev ./path/to/openwhisk-deploy-kube/helm/openwhisk -n openwhisk --create-namespace -f mycluster.yaml
  3. mycluster.yaml looks like:
    
    whisk:
    ingress:
    type: NodePort
    apiHostName: 192.168.65.3
    apiHostPort: 31001

nginx: httpsNodePort: 31001

4.   Wait for OpenWhisk to launch (validate with `kubectl get pods -n openwhisk`)
5.   Follow rust setup instructions [here](https://github.com/apache/openwhisk/blob/master/docs/actions-rust.md)
6.   At the command `wsk action create helloRust hello.rs`

## Provide the expected results and outputs:

The action is built with output something like 

ok: created action helloRust


## Provide the actual results and outputs:

error: Invalid argument(s). '.rs' is not a supported action runtime Run 'wsk --help' for usage.



## Additional information you deem important:

 - There seems to be a missing step here to to enable Rust with OpenWhisk. I am not sure if this step is documented in any readme on this service. 
 - Is there something you have to put in mycluster.yaml to handle Rust?
dgrove-oss commented 3 years ago

try wsk action create -kind rust helloRust hello.rs

it looks to me like there's an oversight in the CLI where .rs was not added as a default extension for the kind rust

kingledion commented 3 years ago

@dgrove-oss That solved the problem. I used wsk action create --kind rust:1.34 helloRust hello.rs.

I have a pull request to update the example here: https://github.com/apache/openwhisk/pull/5056

dgrove-oss commented 3 years ago

Thanks. Going to move this issue to the openwhisk-cli repo because we should fix the cli so that it recognizes the .rs extension.