Skip to content

camel-tooling/camel-openshift-console-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camel Openshift Console Plugin

Warning

The project is still a work in progress that has not been released yet. Unstability is to be expected.

This project provides a console plugin for Camel. The project is created using openshift console plugin template

Current version: 0.0.1

It requires:

It can also leverage the Hawtio Online OpenShift Console Plugin.

Local Development

Node.js 20+ and Yarn are required to build and run this locally. To run OpenShift console in a container, podman 3.2.0+ or Docker is required.

For development you can login to an existing OpenShift and run the console with the plugin included locally.

In one terminal window, run:

  1. yarn install
  2. yarn run start

In another terminal window, run:

  1. oc login (requires oc and an OpenShift cluster)
  2. yarn run start-console (requires Docker or podman 3.2.0+)

This will run the OpenShift console in a container connected to the cluster you've logged into. The plugin HTTP server runs on port 9001 with CORS enabled. Navigate to http://localhost:9000/example to see the running plugin.

Deployment to OpenShift

To deploy the console plugin to an actual OpenShift cluster the following are needed:

Building the images locally

podman build -t quay.io/camel-tooling/camel-openshift-console-plugin:latest .
podman push quay.io/camel-tooling/camel-openshift-console-plugin:latest

Note: The image quay.io/camel-tooling/camel-openshift-console-plugin:latest is published so it can be pulled instead.

Deploying the plugin using Helm

oc new-project camel-dashboard
helm upgrade -i camel-openshift-console-plugin https://github.com/camel-tooling/camel-openshift-console-plugin/raw/refs/heads/main/docs/charts/camel-openshift-console-plugin-0.0.1.tgz --namespace camel-dashboard --set plugin.image=quay.io/camel-tooling/camel-openshift-console-plugin:latest

The Camel Tab

In the developer perpective the Camel section is now shown: The Camel Plugin Home

User Configuration

To be able to see your Camel integrations in the Camel Dashboard you need for your user to have access to the Custom Resources created by the camel-dashboard-operator with the following permissions:

- apiGroups:
  - "camel.apache.org"
  resources:
  - apps
  verbs:
  - get
  - list
  - watch

You can use the helm script installation with the your values to easily create Role/RoleBinding pairs:

appsCamelRbac:
  - namespace: my-project
    subjects:
      - apiGroup: rbac.authorization.k8s.io
        kind: User
        name: developer

About

Camel Openshift Console Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •