Skip to content

Commit

Permalink
Add Kompose plugin
Browse files Browse the repository at this point in the history
It's still at a very early stage

Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
  • Loading branch information
joaquimrocha committed Jul 18, 2024
1 parent 718449e commit c3988e7
Show file tree
Hide file tree
Showing 13 changed files with 38,414 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Plugin | Description
------ | ----------- | ----------
[app-catalog](./app-catalog) | Provides a new area where users can install Helm charts and manage releases. | Desktop only.
[prometheus](./prometheus) | Provides a Prometheus powered chart in the details views of workloads. | Needs Prometheus installed in the cluster for the chart to be shown.
[kompose](./kompose) | Translates docker-compose manifests to Kubernetes's. | Runs kompose in a job in the cluster for now.

## Development

Expand Down
5 changes: 5 additions & 0 deletions kompose/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
17 changes: 17 additions & 0 deletions kompose/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Place your settings in this file to overwrite default and user settings.
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
33 changes: 33 additions & 0 deletions kompose/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"problemMatcher": ["$tsc-watch", "$eslint-compact"],
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "npm",
"script": "test",
"problemMatcher": ["$tsc-watch", "$eslint-compact"],
"isBackground": true,
"presentation": {
"reveal": "always"
},
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
18 changes: 18 additions & 0 deletions kompose/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Kompose

This plugin allows to use the Kompose tool from Headlamp.
At the moment it is only working via a Job in a Kubernetes cluster but
the idea is that we can also run it locally when using Headlamp desktop
version.

The Kompose related jobs are run in a *headlamp-tools* namespace. If the
namespace does not exist, it will be created.

In the future we will also add the possibility to run Kompose locally
when using Headlamp desktop version.

## Usage

The plugin adds a new "Kompose" sidebar item when in a cluster. This
item will show a UI for generating Kubernetes YAML from a docker-compose
one.
Loading

0 comments on commit c3988e7

Please sign in to comment.