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

When I follow the doc of the 'multiple-functions-go' sample But failed #95

Open
Charlie17Li opened this issue Oct 21, 2022 · 5 comments

Comments

@Charlie17Li
Copy link

the sample is samples/functions/knative/multiple-functions-go

when I build the function locally and attempt to edit function-sample.yaml to deploy in the cluster. But it shows me that fn.spec.serving is necessary. Then I add fn.spec.serving.runtime: knative to the file, But a new error has occurred.

➜  multiple-functions-go git:(main) ✗ k get fn
NAME              BUILDSTATE   SERVINGSTATE   BUILDER   SERVING         ADDRESS   AGE
function-sample   Skipped      Failed                   serving-lt2wd             57s

BTW, how to get the log info for the function, Thx :)

@lizzzcai
Copy link
Member

Hi @Charlie17Li , can you share some details about your k8s version, openfunction version etc.

@Charlie17Li
Copy link
Author

Charlie17Li commented Oct 21, 2022

@lizzzcai I create the cluster with kind, here is some env info:

  1. k8s: v1.23.12
  2. kind: v0.16.0
  3. openfuncion: v0.7.0

I just follow the sample samples/functions/knative/multiple-functions-go step by step

@lizzzcai
Copy link
Member

lizzzcai commented Oct 21, 2022

Hi @Charlie17Li , I can reproduce your error. You skip the build stage and use the image openfunctiondev/sample-go-multi-func:latest is not available. You can use this image for a quick try. lizzzcai/sample-go-multi-func:latest.

For debug , you can take a look of this (probably not up-to-date).

@benjaminhuo , can you help to create openfunctiondev/sample-go-multi-func:latest by copying lizzzcai/sample-go-multi-func:latest.

@benjaminhuo
Copy link
Member

Hi @Charlie17Li , I can reproduce your error. You skip the build stage and use the image openfunctiondev/sample-go-multi-func:latest is not available. You can use this image for a quick try. lizzzcai/sample-go-multi-func:latest.

For debug , you can take a look of this (probably not up-to-date).

@benjaminhuo , can you help to create openfunctiondev/sample-go-multi-func:latest by copying lizzzcai/sample-go-multi-func:latest.

sure

@benjaminhuo
Copy link
Member

openfunctiondev/sample-go-multi-func:latest created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants