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

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

Closed
danieloh30 opened this issue Sep 24, 2023 · 1 comment · Fixed by #3319
Closed

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

danieloh30 opened this issue Sep 24, 2023 · 1 comment · Fixed by #3319
Assignees
Labels
Milestone

Comments

@danieloh30
Copy link

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.

@mohitsuman
Copy link
Collaborator

@msivasubramaniaan Can you please look at this issue on priority?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment