From 3e1e4be4b35102a04c74fd4213f5b64ecaf158f4 Mon Sep 17 00:00:00 2001 From: ronahk <74967920+ronahk@users.noreply.github.com> Date: Sat, 31 Dec 2022 11:26:55 +0200 Subject: [PATCH 01/10] Update plugin.yaml to latest release version (#155) --- plugin.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.yaml b/plugin.yaml index 3167967..b709442 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -1,5 +1,5 @@ name: "dashboard" -version: "0.3.0" +version: "0.3.1" usage: "A simplified way of working with Helm" description: "View HELM situation in nice web UI" command: "$HELM_PLUGIN_DIR/bin/helm-dashboard" From fd650f10b6128cd3f5cec81b9f20c09832960270 Mon Sep 17 00:00:00 2001 From: Om Aximani <75031769+OmAximani0@users.noreply.github.com> Date: Sun, 1 Jan 2023 22:00:45 +0530 Subject: [PATCH 02/10] Changed version of action (#160) - fix: #159 --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8d165d..01e71de 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: timeout-minutes: 60 steps: - name: Check out the repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Build and push uses: docker/build-push-action@v2 @@ -60,7 +60,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Helm Template Check For Sanity From c5cd12b6b22669b171745259c0f9ad6c29b8a220 Mon Sep 17 00:00:00 2001 From: Om Aximani <75031769+OmAximani0@users.noreply.github.com> Date: Mon, 2 Jan 2023 18:59:10 +0530 Subject: [PATCH 03/10] Ignore cover profile file (#165) - Added `.cov` extension to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 122c627..f4d213e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out +*.cov # Dependency directories (remove the comment below to include it) # vendor/ From 74aab13e3eb9c0f4a87eef2a78894216984d5b41 Mon Sep 17 00:00:00 2001 From: Harshit Mehta Date: Thu, 5 Jan 2023 17:12:47 +0530 Subject: [PATCH 04/10] Use github api to fetch latest release version (#170) * Use github api to fetch latest release version * Use grep instead of jq for querying json response Co-authored-by: Harshit Mehta --- scripts/install_plugin.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install_plugin.sh b/scripts/install_plugin.sh index a13e74f..663e5f0 100755 --- a/scripts/install_plugin.sh +++ b/scripts/install_plugin.sh @@ -4,14 +4,17 @@ name="helm-dashboard" repo="https://github.com/komodorio/${name}" +api_repo="https://api.github.com/repos/komodorio/${name}/releases/latest" if [ -n "${HELM_PUSH_PLUGIN_NO_INSTALL_HOOK}" ]; then echo "Development mode: not downloading versioned release." exit 0 fi -version="$(cat plugin.yaml | grep "version" | cut -d '"' -f 2)" -# TODO: if no version provided, get it from https://api.github.com/repos/komodorio/helm-dashboard/releases/latest +version="$(curl -X GET --header \"Accept: application/json\" ${api_repo} | grep '\"name\": "v.*\"' | cut -d 'v' -f 2 | cut -d '"' -f 1)" +[ -z "$version" ] && { + version="$(cat plugin.yaml | grep "version" | cut -d '"' -f 2)" +} echo "Downloading and installing ${name} v${version} ..." url="" From 450190a1aaef93aef873da2889d4c12181df75e3 Mon Sep 17 00:00:00 2001 From: Harshit Mehta Date: Fri, 6 Jan 2023 13:56:13 +0530 Subject: [PATCH 05/10] Add auto labeler for PR's (#172) Co-authored-by: Harshit Mehta --- .github/labeler.yml | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..6eaa2dc --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,63 @@ +# This configures label matching for PR's. +# +# The keys are labels, and the values are lists of minimatch patterns +# to which those labels apply. +# +# NOTE: This can only add labels, not remove them. +# NOTE: Due to YAML syntax limitations, patterns or labels which start +# with a character that is part of the standard YAML syntax must be +# quoted. +# +# Please keep the labels sorted and deduplicated. + +api: + - pkg/dashboard/api.go + +app: + - main.go + - pkg/dashboard/server.go + - pkg/dashboard/subproc/* + - pkg/dashboard/utils/* + +backend: + - pkg/dashboard/handlers/* + - pkg/dashboard/scanners/* + +ci: + - .github/workflow/build.yml + - ci/* + - Makefile + - scripts/* + +docs: + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md + - LICENSE + - README.md + - screenshot*.png + - screenshot*.svg + +docker: + - .dockerignore + - Dockerfile + +helm-charts: + - charts/* + +github-actions: + - .github/ISSUE_TEMPLATE/* + - .github/labeler.yml + - .github/pull_request_template + +release: + - .github/workflows/publish-chart.yaml + - .github/workflows/release.yaml + - .goreleaser.yml + - artifacthub-repo.yml + - plugin.yaml + +scanners: + - pkg/dashboard/scanners/* + +frontend: + - pkg/dashboard/static/* From d0d2ed3ef1539e2a3dd399bb3c03eb1087527110 Mon Sep 17 00:00:00 2001 From: Harshit Mehta Date: Mon, 9 Jan 2023 20:05:02 +0530 Subject: [PATCH 06/10] Add github workflow for auto PR labeling (#179) Co-authored-by: Harshit Mehta --- .github/labeler.yml | 1 + .github/workflows/pull-request-labeler.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/pull-request-labeler.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml index 6eaa2dc..6c77ea8 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -48,6 +48,7 @@ github-actions: - .github/ISSUE_TEMPLATE/* - .github/labeler.yml - .github/pull_request_template + - .github/workflow/pull-request-labeler.yaml release: - .github/workflows/publish-chart.yaml diff --git a/.github/workflows/pull-request-labeler.yaml b/.github/workflows/pull-request-labeler.yaml new file mode 100644 index 0000000..680f9d1 --- /dev/null +++ b/.github/workflows/pull-request-labeler.yaml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file From 6e5bce26e89dc4efad9aefec82486d8370f8284f Mon Sep 17 00:00:00 2001 From: Udi Hofesh <85063091+Udi-Hofesh@users.noreply.github.com> Date: Thu, 12 Jan 2023 11:29:21 +0200 Subject: [PATCH 07/10] Update Kommunity link (#183) The previous link has expired. Adding a never failing signup page: https://komodorkommunity.slack.com/ --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 67c7de5..3940ab8 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ button at the bottom of the dialog: ## Support Channels We have two main channels for supporting the Helm Dashboard -users: [Slack community](https://join.slack.com/t/komodorkommunity/shared_invite/zt-1dm3cnkue-ov1Yh~_95teA35QNx5yuMg) for general conversations +users: [Slack community](https://komodorkommunity.slack.com) for general conversations and [GitHub issues](https://github.com/komodorio/helm-dashboard/issues) for real bugs. ## Contributing From af1c09ae027ad247d4fccf92eb4ee345a0cf024f Mon Sep 17 00:00:00 2001 From: Harshit Mehta Date: Thu, 12 Jan 2023 16:51:04 +0530 Subject: [PATCH 08/10] Update Kommunity link (#184) --- .github/ISSUE_TEMPLATE/bug.yaml | 2 +- CONTRIBUTING.md | 2 +- pkg/dashboard/static/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yaml b/.github/ISSUE_TEMPLATE/bug.yaml index dbfb34a..84fcc97 100644 --- a/.github/ISSUE_TEMPLATE/bug.yaml +++ b/.github/ISSUE_TEMPLATE/bug.yaml @@ -54,6 +54,6 @@ body: value: | - You can also join our slack community [here](https://join.slack.com/t/komodorkommunity/shared_invite/zt-1dm3cnkue-ov1Yh~_95teA35QNx5yuMg) + You can also join our slack community [here](https://komodorkommunity.slack.com) Feel free to check out other cool repositories of the [komodorio](https://github.com/komodorio) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6cd72a0..852768e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -52,4 +52,4 @@ By contributing, you agree that your contributions will be licensed under its Ap ## Questions? -Contact us on [Slack](https://join.slack.com/t/komodorkommunity/shared_invite/zt-1dm3cnkue-ov1Yh~_95teA35QNx5yuMg). +Contact us on [Slack](https://komodorkommunity.slack.com). diff --git a/pkg/dashboard/static/index.html b/pkg/dashboard/static/index.html index e950455..47df5ca 100644 --- a/pkg/dashboard/static/index.html +++ b/pkg/dashboard/static/index.html @@ -42,7 +42,7 @@