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
When running a telemetry plugin within a DevWorkspace by running ./mvnw quarkus:dev, sometimes the plugin fails to retrieve the namespace the devworkspace pod is running in:
sh-4.4$ ./mvnw --settings=settings.xml quarkus:dev -Dquarkus.http.port=4167
[INFO] Scanning for projects...
[INFO]
[INFO] --< org.eclipse.che.incubator:devworkspace-telemetry-example-plugin >---
[INFO] Building devworkspace-telemetry-example-plugin 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.2.Final:dev (default-cli) @ devworkspace-telemetry-example-plugin ---
[INFO] Invoking org.apache.maven.plugins:maven-resources-plugin:2.6:resources) @ devworkspace-telemetry-example-plugin
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Invoking io.quarkus.platform:quarkus-maven-plugin:2.7.2.Final:generate-code) @ devworkspace-telemetry-example-plugin
[INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile) @ devworkspace-telemetry-example-plugin
[INFO] Nothing to compile - all classes are up to date
[INFO] Invoking org.apache.maven.plugins:maven-resources-plugin:2.6:testResources) @ devworkspace-telemetry-example-plugin
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /projects/devworkspace-telemetry-example-plugin/src/test/resources
[INFO] Invoking io.quarkus.platform:quarkus-maven-plugin:2.7.2.Final:generate-code-tests) @ devworkspace-telemetry-example-plugin
[INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile) @ devworkspace-telemetry-example-plugin
[INFO] No sources to compile
Listening for transport dt_socket at address: 5005
2022-03-09 17:05:46,530 INFO [io.qua.sma.openapi] (build-59) OpenAPI JSON saved: /projects/devworkspace-telemetry-example-plugin/target/openapi.json
2022-03-09 17:05:46,558 INFO [io.qua.sma.openapi] (build-59) OpenAPI YAML saved: /projects/devworkspace-telemetry-example-plugin/target/openapi.yaml
__ ____ __ _____ ___ __ ____ ______
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2022-03-09 17:05:47,866 WARN [io.fab.kub.cli.int.VersionUsageUtils] (Quarkus Main Thread) The client is using resource type 'devworkspaces' with unstable version 'v1alpha2'
2022-03-09 17:05:48,222 WARN [org.ecl.che.inc.wor.tel.fin.DevWorkspaceFinderImpl] (Quarkus Main Thread) Failed to find devworkspace with id: workspace694f8b9811b240be in namespace: null: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://172.30.0.1/apis/workspace.devfile.io/v1alpha2/devworkspaces. Message: Forbidden! User developer doesn't have permission. devworkspaces.workspace.devfile.io is forbidden: User "dkwon17" cannot list resource "devworkspaces" in API group "workspace.devfile.io" at the cluster scope.
Maybe we must further configure the Kubernetes client here:
When running a telemetry plugin within a DevWorkspace by running
./mvnw quarkus:dev
, sometimes the plugin fails to retrieve the namespace the devworkspace pod is running in:Maybe we must further configure the Kubernetes client here:
che-workspace-telemetry-client/backend-base/src/main/java/org/eclipse/che/incubator/workspace/telemetry/finder/DevWorkspaceFinderImpl.java
Line 44 in 06a27e1
The text was updated successfully, but these errors were encountered: