diff --git a/.github/workflows/publish-chart.yaml b/.github/workflows/publish-chart.yaml index abbd349..cefa903 100644 --- a/.github/workflows/publish-chart.yaml +++ b/.github/workflows/publish-chart.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Bump versions diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 811e6c5..df83219 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -64,7 +64,7 @@ jobs: timeout-minutes: 60 steps: - name: Check out the repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Docker meta uses: docker/metadata-action@v3 @@ -95,7 +95,7 @@ jobs: if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Bump versions diff --git a/README.md b/README.md index cebbd2b..af747d2 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Download the appropriate [release package](https://github.com/komodorio/helm-das ## Execute Helm tests -For all the release(s) (istalled helm charts), you can execute helm tests for that release. For the tests to execute successfully, you need to have existing tests for that helm chart +For all the release(s) (installed helm charts), you can execute helm tests for that release. For the tests to execute successfully, you need to have existing tests for that helm chart. You can execute `helm test` for the specific release as below: ![](screenshot_run_test.png) diff --git a/pkg/dashboard/static/list-view.js b/pkg/dashboard/static/list-view.js index ca2ee23..b8530a2 100644 --- a/pkg/dashboard/static/list-view.js +++ b/pkg/dashboard/static/list-view.js @@ -45,9 +45,15 @@ function buildChartCard(elm) { `) let chartName = elm.chart + let match = null // semver2 regex , add optional v prefix const chartNameRegex = 'v?(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?' - const match = elm.chart.match(chartNameRegex); + if (!new RegExp(chartNameRegex).test(chartName)) { + alert('Chart name does not match chart name regex.') + } else { + match = chartName.match(chartNameRegex); + } + if (match) { chartName = elm.chart.substring(0, match.index - 1) } else { diff --git a/pkg/dashboard/static/styles.css b/pkg/dashboard/static/styles.css index 3d28599..58d9eb9 100644 --- a/pkg/dashboard/static/styles.css +++ b/pkg/dashboard/static/styles.css @@ -89,10 +89,11 @@ body > .container-fluid { #filters { overflow: hidden; - white-space: nowrap; text-overflow: ellipsis; font-size: 0.8rem; line-height: 175%; + inline-size: auto; + overflow-wrap: break-word; } #cluster input, #cluster span {