Skip to content

Commit

Permalink
Merge pull request #327 from 2-alchemists/fix/clusters-usage
Browse files Browse the repository at this point in the history
fix(page)!: rename namespaces-usage by clusters-usage
  • Loading branch information
rchakode authored Apr 3, 2024
2 parents b1dd081 + 7e0b995 commit d49718c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 34 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Build Docker image
on:
push:
Expand All @@ -7,15 +6,20 @@ on:
pull_request:
branches:
- main

concurrency:
group: build-images-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]

- uses: actions/setup-node@v2
with:
node-version: '12.16.2'
node-version: "12.16.2"
- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

Expand Down
52 changes: 27 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ name: build

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
check-commits:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v2
Expand All @@ -20,27 +24,25 @@ jobs:
uses: wagoid/commitlint-github-action@v2

build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v2
with:
node-version: '12.16.2'
- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install dependencies
run: yarn
- name: analyse code
run: yarn lint
- name: build
run: yarn build


- uses: actions/[email protected]
- uses: actions/setup-node@v2
with:
node-version: "12.16.2"
- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install dependencies
run: yarn
- name: analyse code
run: yarn lint
- name: build
run: yarn build
10 changes: 5 additions & 5 deletions src/app/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

import { useEffect, useState } from 'react'
import { matchPath, useLocation } from 'react-router'
import { ClusterUsageView } from '../pages/ClusterUsage'
import { ClusterUsageCurrentView } from '../pages/ClusterUsageCurrent'
import { ClusterUsageHistoryView } from '../pages/ClusterUsageHistory'
import { NamespaceUsageView } from '../pages/NamespaceUsage'
import { NodeUsageHistoryView } from '../pages/NodeUsageHistory'
import { NodeUsageRecentOccupationView } from '../pages/NodeUsageRecentOccupation'

Expand Down Expand Up @@ -52,10 +52,10 @@ export const menus: IMenu[][] = [
],
[
{
to: '/namespaces-usage',
primary: 'Namespaces usage',
secondary: 'Namespaces Usage',
view: NamespaceUsageView
to: '/cluster-usage',
primary: 'Cluster usage',
secondary: 'Cluster Usage',
view: ClusterUsageView
}
],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const useStyles = makeStyles(theme => ({
}
}))

export const NamespaceUsageView = () => {
export const ClusterUsageView = () => {
const classes = useStyles()
const store = useStore()
const dateRange = useLocalStore(() => ({
Expand Down

0 comments on commit d49718c

Please sign in to comment.