Skip to content

Invoke a function using "OpenShift Toolkit" extension doesn't work #3316

@danieloh30

Description

@danieloh30

After I created a new function using the OpenShift Toolkit extension on VS Code, I tried to invoke the function using the extension GUI. But it failed with the following error:

Invoking 'cloudevent' function at http://localhost:8080/
Invoking 'cloudevent' function using 'cloud events' format
Error: format 'cloud events' not supported.

image

My func.yaml looks like

specVersion: 0.35.0
name: quarkus-awesome
runtime: quarkus
registry: quay.io/danieloh30
image: quay.io/danieloh/quarkus-awesome:latest
created: 2023-09-24T01:53:14.752Z
invoke: cloudevent
build:
builder: pack
buildEnvs:

  • name: BP_NATIVE_IMAGE
    value: "false"
  • name: BP_MAVEN_BUILT_ARTIFACT
    value: func.yaml target/quarkus-app/lib/ target/quarkus-app/*.jar target/quarkus-app/app/
    target/quarkus-app/quarkus/
  • name: BP_MAVEN_BUILD_ARGUMENTS
    value: package -DskipTests=true -Dmaven.javadoc.skip=true -Dquarkus.package.type=fast-jar
  • name: MAVEN_S2I_ARTIFACT_DIRS
    value: target/quarkus-app
  • name: S2I_SOURCE_DEPLOYMENTS_FILTER
    value: lib quarkus-run.jar app quarkus
    pvcSize: 256Mi

The Quarkus app runs well.
Adding 137 container CA certificates to JVM truststore
Picked up JAVA_TOOL_OPTIONS: -Djava.security.properties=/layers/paketo-buildpacks_bellsoft-liberica/java-security-properties/java-security.properties -XX:+ExitOnOutOfMemoryError -XX:ActiveProcessorCount=6 -XX:MaxDirectMemorySize=10M -Xmx10302293K -XX:MaxMetaspaceSize=71230K -XX:ReservedCodeCacheSize=240M -Xss1M -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=summary -XX:+PrintNMTStatistics


--/ __ / / / / _ | / _ / /// / / / __/
-/ /
/ / // / __ |/ , / ,< / // /\ \
--___
// |//|//||_//
2023-09-24 14:41:51,121 INFO [io.quarkus] (main) function 1.0.0-SNAPSHOT on JVM (powered by Quarkus 2.16.5.Final) started in 4.601s. Listening on: http://0.0.0.0:8080
2023-09-24 14:41:51,128 INFO [io.quarkus] (main) Profile prod activated.
2023-09-24 14:41:51,128 INFO [io.quarkus] (main) Installed features: [cdi, funqy-knative-events, smallrye-context-propagation, smallrye-health, vertex]

I think the format should be "cloudevent" rather than "Cloud Events" in GUI.

Metadata

Metadata

Labels

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions