You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
helloworld-go : no matches for kind "Function" in version "core.openfunction.io/v1beta1" #46
@tpiperatgod hi , i can apply yaml successful, but the BUILDSTATE of function-sample is UndefinedParameter, see:
roott@kube-PC:~/openfunction/hello-world-go# k get function
NAME BUILDSTATE SERVINGSTATE BUILDER SERVING AGE
function-sample UndefinedParameter builder-gjkgr 11s
Can you paste the information about the inventory of components in the current cluster? The inventory file is located in the ~/.ofn/ directory by default, with a name such as *-inventory.yaml.
Thx @aBreaking , but I still haven't found the exact reason 😂
The components in your cluster look correct, can you delete the function and apply the following configuration? Pls let me know if this works properly...
@tpiperatgod unfortunately, still the same error 😶
root@kube-PC:~/openfunction/hello-world-go# k get function
NAME BUILDSTATE SERVINGSTATE BUILDER SERVING AGE
function-demo UndefinedParameter builder-9trqz 4s
root@kube-PC:~/openfunction/hello-world-go# k get builds
NAME REGISTERED REASON BUILDSTRATEGYKIND BUILDSTRATEGYNAME CREATIONTIME
builder-9trqz-build-97s4s False UndefinedParameter ClusterBuildStrategy openfunction 8s
OK, while I don't know what causes this exception in your cluster, the problem occurs for the following reason:
The OpenFunction controller creates the builds.shipwright.io resource when it builds the function, and there is an APP_IMAGE parameter (it was present in versions earlier than 0.5) in there that cannot be passed to clusterbuildstrategies.
I have not had this problem so far after verifying it in my cluster, so I can't be sure what is wrong with the configuration.
BUT! There is another way to get a taste of OpenFunction: you can use the ofn demo, like: ofn demo --auto-prune=false (this command would save the demo env)
@tpiperatgod ok , thanks very much for your time, the demo I will try it later . and let me try out shipwright-io, or maybe the issue is belongs shipwright-io.
@tpiperatgod ok , thanks very much for your time, the demo I will try it later . and let me try out shipwright-io, or maybe the issue is belongs shipwright-io.
Deleting Shipwright and then install it using ofn could solve the problem
Activity
tpiperatgod commentedon Feb 10, 2022
The
ofninstalls the latest stable version of OpenFunction (v0.5.0 for now) by default, with the branch of the corresponding sample as release-0.5.Can you paste the contents of the
functions-sample.yaml?aBreaking commentedon Feb 11, 2022
@tpiperatgod
functions-sample.yaml
and i also used official yaml , also same error occurred.
my minikube version:
pods of openfunction status is :
tpiperatgod commentedon Feb 11, 2022
Hi, @aBreaking , you should use this yaml file: https://github.com/OpenFunction/samples/blob/release-0.5/functions/Knative/hello-world-go/function-sample.yaml
Note that
spec.build.srcRepo.revisionneeds to be set to "release-0.5"aBreaking commentedon Feb 11, 2022
@tpiperatgod hi , i can apply yaml successful, but the BUILDSTATE of function-sample is
UndefinedParameter, see:describe:
Is there something wrong with my environment?
thanks
tpiperatgod commentedon Feb 11, 2022
There should be an exception in the process of building the function image.
Could you please paste the details of the
buildruns.shipwright.ioresource?For example:
aBreaking commentedon Feb 11, 2022
@tpiperatgod
describe:
benjaminhuo commentedon Feb 11, 2022
If a build failed, the builder CR will be kept. Take a look at the build pod's log to find out the failure reason
tpiperatgod commentedon Feb 11, 2022
and could you pls paste the details of the
builds.shipwright.ioresourcebuilder-gjkgr-build-8zd57?aBreaking commentedon Feb 11, 2022
@tpiperatgod
is somewhere needs
APP_IMAGE?aBreaking commentedon Feb 11, 2022
@benjaminhuo No pods found related to ofn in default namespace, need i paste the log of pods which in the namespace shipwright-build or openfunction ?
tpiperatgod commentedon Feb 11, 2022
Can you paste the information about the inventory of components in the current cluster? The inventory file is located in the
~/.ofn/directory by default, with a name such as*-inventory.yaml.And can you paste the information of the
clusterbuildstrategies.shipwright.ioresourceopenfunctionin your cluster?aBreaking commentedon Feb 11, 2022
@tpiperatgod
and
tpiperatgod commentedon Feb 11, 2022
Thx @aBreaking , but I still haven't found the exact reason 😂
The components in your cluster look correct, can you delete the function and apply the following configuration? Pls let me know if this works properly...
aBreaking commentedon Feb 11, 2022
@tpiperatgod unfortunately, still the same error 😶
tpiperatgod commentedon Feb 11, 2022
OK, while I don't know what causes this exception in your cluster, the problem occurs for the following reason:
The OpenFunction controller creates the
builds.shipwright.ioresource when it builds the function, and there is anAPP_IMAGEparameter (it was present in versions earlier than 0.5) in there that cannot be passed toclusterbuildstrategies.I have not had this problem so far after verifying it in my cluster, so I can't be sure what is wrong with the configuration.
BUT! There is another way to get a taste of OpenFunction: you can use the
ofn demo, like:ofn demo --auto-prune=false(this command would save the demo env)See more at: https://github.com/OpenFunction/cli/blob/main/docs/demo.md
aBreaking commentedon Feb 11, 2022
@tpiperatgod ok , thanks very much for your time, the demo I will try it later . and let me try out shipwright-io, or maybe the issue is belongs shipwright-io.
tpiperatgod commentedon Feb 11, 2022
Hi @aBreaking , you can join our community group chat 😄

benjaminhuo commentedon Feb 11, 2022
Deleting Shipwright and then install it using ofn could solve the problem