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

backstage: Init backstage plugin #91

Merged
merged 8 commits into from
Nov 8, 2024
Merged

backstage: Init backstage plugin #91

merged 8 commits into from
Nov 8, 2024

Conversation

yolossn
Copy link
Contributor

@yolossn yolossn commented Oct 22, 2024

Adds backstage plugin for headlamp, In the details view of a resource if the resource has labels related to backstage an Icon Button is added to open the corresponding backstage service. The plugin also provides a way to configure the backstage url for each cluster. If headlamp with this plugin is used as an iframe it sends a message to the parent window with the path to redirect to for the parent to handle and redirect.

Steps to test (Without running backstage):

  1. Run the following command to create resources with backstage related labels

kubectl apply -f https://raw.githubusercontent.com/backstage/backstage/refs/heads/master/plugins/kubernetes-backend/examples/dice-roller/dice-roller-manifests.yaml

  1. Run the backend,frontend and the backstage plugin.
  2. Navigate to the plugin settings and configure URL and configure the value for the cluster to say http://google.com
    image
  3. Navigate to the detail view of any of the dice-roller resource, Click on the backstage button.
    image
  4. Click on the backstage button a new window should be opened with the following url
    http://google.com/catalog/default/component/dice-roller

@joaquimrocha
Copy link
Contributor

@yolossn , PTAL at my changes. I added the Backstage official logo too, but I am not entire sure. If we keep it, then please add it locally, for air-gapped envs: https://icon-sets.iconify.design/simple-icons/backstage/
Ashu can help if you need.

@yolossn
Copy link
Contributor Author

yolossn commented Nov 4, 2024

@yolossn , PTAL at my changes.

Looks good to me, there were a couple of lint errors, I have fixed them.

I added the Backstage official logo too, but I am not entire sure. If we keep it, then please add it locally, for air-gapped envs: https://icon-sets.iconify.design/simple-icons/backstage/ Ashu can help if you need.

Sorry I didn't get why this will be an issue for simple-icons? We use mdi icons in a similar fashion right.

backstage/README.md Outdated Show resolved Hide resolved
yolossn and others added 7 commits November 8, 2024 19:03
This patch adds backstage plugin for headlamp

Signed-off-by: yolossn <[email protected]>
The cluster list in the settings was not showing which clusters
already had some settings changed for them, so this patch adds that
and styles the UI a bit.

Signed-off-by: Joaquim Rocha <[email protected]>
this patch adds the generated snapshots

Signed-off-by: yolossn <[email protected]>
@yolossn yolossn merged commit 3ae8862 into main Nov 8, 2024
11 checks passed
@illume illume deleted the backstage-init branch November 9, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants