Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
feat: restyle TMonitor page
Browse files Browse the repository at this point in the history
Add TNodesMonitorChart component and restyle TMonitor page's Charts

Signed-off-by: evgeniybryzh<evgeniy@merge.rocks>
Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
evgeniybryzh authored and Unix4ever committed Mar 24, 2022
1 parent f0377e2 commit b4cb9c7
Show file tree
Hide file tree
Showing 55 changed files with 557 additions and 195 deletions.
4 changes: 2 additions & 2 deletions .conform.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2021-11-05T12:13:36Z by kres 6a46ad7-dirty.
# Generated on 2022-03-24T12:00:33Z by kres latest.

---
policies:
Expand All @@ -10,7 +10,7 @@ policies:
gpg:
required: true
identity:
gitHubOrganization: talos-systems
gitHubOrganization: siderolabs
spellcheck:
locale: US
maximumOfOneCommit: true
Expand Down
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2022-01-21T16:59:14Z by kres latest.
# Generated on 2022-03-24T11:54:05Z by kres latest.

**
!frontend/src
Expand All @@ -9,6 +9,7 @@
!api
!cmd
!internal
!docs
!frontend/*.json
!frontend/*.js
!.eslintrc.yaml
Expand Down
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2021-10-22T16:23:42Z by kres f6c7130-dirty.
# Generated on 2022-03-24T12:00:33Z by kres latest.

# options for analysis running
run:
Expand Down Expand Up @@ -36,7 +36,7 @@ linters-settings:
lines: 60
statements: 40
gci:
local-prefixes: github.com/talos-systems/theila
local-prefixes: github.com/siderolabs/theila
gocognit:
min-complexity: 30
nestif:
Expand All @@ -58,7 +58,7 @@ linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: github.com/talos-systems/theila
local-prefixes: github.com/siderolabs/theila
golint:
min-confidence: 0.8
gomnd:
Expand Down
12 changes: 6 additions & 6 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ spec:
- source: https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/status.proto
subdirectory: google/rpc/
genGateway: true
- source: https://raw.githubusercontent.com/talos-systems/talos/master/api/common/common.proto
- source: https://raw.githubusercontent.com/siderolabs/talos/master/api/common/common.proto
subdirectory: common/
genGateway: true
- source: https://raw.githubusercontent.com/talos-systems/talos/master/api/resource/resource.proto
- source: https://raw.githubusercontent.com/siderolabs/talos/master/api/resource/resource.proto
subdirectory: talos/resource/
genGateway: true
- source: https://raw.githubusercontent.com/talos-systems/talos/master/api/machine/machine.proto
- source: https://raw.githubusercontent.com/siderolabs/talos/master/api/machine/machine.proto
subdirectory: talos/machine/
genGateway: true
- source: https://raw.githubusercontent.com/cosi-project/runtime/master/api/v1alpha1/state.proto
Expand Down Expand Up @@ -98,10 +98,10 @@ spec:
- source: https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/status.proto
subdirectory: google/rpc/
genGateway: true
- source: https://raw.githubusercontent.com/talos-systems/talos/master/api/resource/resource.proto
- source: https://raw.githubusercontent.com/siderolabs/talos/master/api/resource/resource.proto
subdirectory: talos/resource
genGateway: true
- source: https://raw.githubusercontent.com/talos-systems/talos/master/api/machine/machine.proto
- source: https://raw.githubusercontent.com/siderolabs/talos/master/api/machine/machine.proto
subdirectory: talos/machine
genGateway: true
- source: https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/any.proto
Expand All @@ -119,7 +119,7 @@ spec:
- source: https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/code.proto
subdirectory: google/rpc/
genGateway: true
- source: https://raw.githubusercontent.com/talos-systems/talos/master/api/common/common.proto
- source: https://raw.githubusercontent.com/siderolabs/talos/master/api/common/common.proto
subdirectory: common/
genGateway: true
- source: https://raw.githubusercontent.com/cosi-project/runtime/master/api/v1alpha1/resource.proto
Expand Down
23 changes: 12 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2022-01-21T16:59:14Z by kres latest.
# Generated on 2022-03-24T12:29:51Z by kres latest.

ARG JS_TOOLCHAIN
ARG TOOLCHAIN

FROM ghcr.io/talos-systems/ca-certificates:v0.3.0-12-g90722c3 AS image-ca-certificates
FROM ghcr.io/siderolabs/ca-certificates:v1.0.0 AS image-ca-certificates

FROM ghcr.io/talos-systems/fhs:v0.3.0-12-g90722c3 AS image-fhs
FROM ghcr.io/siderolabs/fhs:v1.0.0 AS image-fhs

# base toolchain image
FROM ${JS_TOOLCHAIN} AS js-toolchain
Expand All @@ -26,6 +26,7 @@ RUN npm i -g markdownlint-cli@0.23.2
RUN npm i sentences-per-line@0.2.1
WORKDIR /src
COPY .markdownlint.json .
COPY ./docs ./docs
COPY ./CHANGELOG.md ./CHANGELOG.md
COPY ./CONTRIBUTING.md ./CONTRIBUTING.md
COPY ./README.md ./README.md
Expand All @@ -39,9 +40,9 @@ ADD api/rpc/resource.proto /api/rpc/
ADD api/rpc/context.proto /api/rpc/
ADD api/rpc/management.proto /api/rpc/
ADD https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/status.proto /api/google/rpc/
ADD https://raw.githubusercontent.com/talos-systems/talos/master/api/common/common.proto /api/common/
ADD https://raw.githubusercontent.com/talos-systems/talos/master/api/resource/resource.proto /api/talos/resource/
ADD https://raw.githubusercontent.com/talos-systems/talos/master/api/machine/machine.proto /api/talos/machine/
ADD https://raw.githubusercontent.com/siderolabs/talos/master/api/common/common.proto /api/common/
ADD https://raw.githubusercontent.com/siderolabs/talos/master/api/resource/resource.proto /api/talos/resource/
ADD https://raw.githubusercontent.com/siderolabs/talos/master/api/machine/machine.proto /api/talos/machine/
ADD https://raw.githubusercontent.com/cosi-project/runtime/master/api/v1alpha1/state.proto /api/v1alpha1/
ADD https://raw.githubusercontent.com/cosi-project/runtime/master/api/v1alpha1/resource.proto /api/v1alpha1/

Expand All @@ -53,14 +54,14 @@ ADD api/rpc/resource.proto /frontend/src/api/rpc/
ADD api/rpc/context.proto /frontend/src/api/rpc/
ADD api/rpc/management.proto /frontend/src/api/rpc/
ADD https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/status.proto /frontend/src/api/google/rpc/
ADD https://raw.githubusercontent.com/talos-systems/talos/master/api/resource/resource.proto /frontend/src/api/talos/resource/
ADD https://raw.githubusercontent.com/talos-systems/talos/master/api/machine/machine.proto /frontend/src/api/talos/machine/
ADD https://raw.githubusercontent.com/siderolabs/talos/master/api/resource/resource.proto /frontend/src/api/talos/resource/
ADD https://raw.githubusercontent.com/siderolabs/talos/master/api/machine/machine.proto /frontend/src/api/talos/machine/
ADD https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/any.proto /frontend/src/api/google/protobuf/
ADD https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/duration.proto /frontend/src/api/google/protobuf/
ADD https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/empty.proto /frontend/src/api/google/protobuf/
ADD https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/timestamp.proto /frontend/src/api/google/protobuf/
ADD https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/code.proto /frontend/src/api/google/rpc/
ADD https://raw.githubusercontent.com/talos-systems/talos/master/api/common/common.proto /frontend/src/api/common/
ADD https://raw.githubusercontent.com/siderolabs/talos/master/api/common/common.proto /frontend/src/api/common/
ADD https://raw.githubusercontent.com/cosi-project/runtime/master/api/v1alpha1/resource.proto /frontend/src/api/v1alpha1/

# base toolchain image
Expand Down Expand Up @@ -194,7 +195,7 @@ COPY --from=proto-compile /api/ /api/
FROM base AS lint-gofumpt
RUN find . -name '*.pb.go' | xargs -r rm
RUN find . -name '*.pb.gw.go' | xargs -r rm
RUN FILES="$(gofumports -l -local github.com/talos-systems/theila .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'gofumports -w -local github.com/talos-systems/theila .':\n${FILES}"; exit 1)
RUN FILES="$(gofumports -l -local github.com/siderolabs/theila .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'gofumports -w -local github.com/siderolabs/theila .':\n${FILES}"; exit 1)

# runs golangci-lint
FROM base AS lint-golangci-lint
Expand Down Expand Up @@ -276,6 +277,6 @@ ARG TARGETARCH
COPY --from=theila theila-linux-${TARGETARCH} /theila
COPY --from=image-fhs / /
COPY --from=image-ca-certificates / /
LABEL org.opencontainers.image.source https://github.com/talos-systems/theila
LABEL org.opencontainers.image.source https://github.com/siderolabs/theila
ENTRYPOINT ["/theila"]

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2021-12-13T13:09:51Z by kres c4d092b-dirty.
# Generated on 2022-03-24T12:00:33Z by kres latest.

# common variables

Expand All @@ -9,7 +9,7 @@ TAG := $(shell git describe --tag --always --dirty)
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
ARTIFACTS := _out
REGISTRY ?= ghcr.io
USERNAME ?= talos-systems
USERNAME ?= siderolabs
REGISTRY_AND_USERNAME ?= $(REGISTRY)/$(USERNAME)
PROTOBUF_TS_VERSION ?= 1.79.2
PROTOBUF_GRPC_GATEWAY_TS_VERSION ?= 1.1.0
Expand All @@ -21,7 +21,7 @@ GRPC_GO_VERSION ?= 1.1.0
GRPC_GATEWAY_VERSION ?= 2.4.0
VTPROTOBUF_VERSION ?= 81d623a9a700ede8ef765e5ab08b3aa1f5b4d5a8
TESTPKGS ?= ./...
KRES_IMAGE ?= ghcr.io/talos-systems/kres:latest
KRES_IMAGE ?= ghcr.io/siderolabs/kres:latest

# docker build settings

Expand Down Expand Up @@ -128,7 +128,7 @@ fmt: ## Formats the source code
@docker run --rm -it -v $(PWD):/src -w /src golang:$(GO_VERSION) \
bash -c "export GO111MODULE=on; export GOPROXY=https://proxy.golang.org; \
go install mvdan.cc/gofumpt/gofumports@$(GOFUMPT_VERSION) && \
gofumports -w -local github.com/talos-systems/theila ."
gofumports -w -local github.com/siderolabs/theila ."

generate: ## Generate .proto definitions.
@$(MAKE) local-$@ DEST=./
Expand Down
10 changes: 5 additions & 5 deletions api/common/theila.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/common/theila.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package common;

option go_package = "github.com/talos-systems/theila/api/common";
option go_package = "github.com/siderolabs/theila/api/common";

// Data source.
enum Runtime {
Expand Down
8 changes: 4 additions & 4 deletions api/rpc/context.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/rpc/context.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package cluster;

option go_package = "github.com/talos-systems/theila/api/rpc";
option go_package = "github.com/siderolabs/theila/api/rpc";

message Context {
// Name is the name of the Context.
Expand Down
10 changes: 5 additions & 5 deletions api/rpc/management.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/rpc/management.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package management;

option go_package = "github.com/talos-systems/theila/api/rpc";
option go_package = "github.com/siderolabs/theila/api/rpc";

import "common/theila.proto";
import "google/protobuf/empty.proto";
Expand Down
9 changes: 4 additions & 5 deletions api/rpc/resource.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions api/rpc/resource.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/rpc/resource.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package theila.resource;

option go_package = "github.com/talos-systems/theila/api/rpc";
option go_package = "github.com/siderolabs/theila/api/rpc";

import "talos/resource/resource.proto";
import "common/theila.proto";
Expand Down
2 changes: 1 addition & 1 deletion api/rpc/resource_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/socket/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package socket;

option go_package = "github.com/talos-systems/theila/api/socket/message/";
option go_package = "github.com/siderolabs/theila/api/socket/message/";

import "common/theila.proto";
import "talos/resource/resource.proto";
Expand Down
10 changes: 5 additions & 5 deletions api/socket/message/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b4cb9c7

Please sign in to comment.