Skip to content

Commit 1e3b538

Browse files
Merge pull request #173 from PeterYurkovich/ou-962-merge-main-into-release
OU-962: Update release branch with main
2 parents 8a17ddd + e043630 commit 1e3b538

45 files changed

Lines changed: 14134 additions & 15641 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi8/nodejs-18:latest AS web-builder
1+
FROM registry.access.redhat.com/ubi8/nodejs-22:latest AS web-builder
22

33
WORKDIR /opt/app-root
44

@@ -11,7 +11,7 @@ RUN make install-frontend
1111
COPY web/ web/
1212
RUN make build-frontend
1313

14-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.22-openshift-4.17 as go-builder
14+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.24-openshift-4.20 as go-builder
1515

1616
WORKDIR /opt/app-root
1717

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This Dockerfile is used for local testing of images. All images should be available for public use
2-
FROM registry.access.redhat.com/ubi9/nodejs-18:latest AS web-builder
2+
FROM registry.access.redhat.com/ubi9/nodejs-22:latest AS web-builder
33

44
WORKDIR /opt/app-root
55

Dockerfile.konflux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.redhat.io/ubi9/nodejs-18:latest AS web-builder
1+
FROM registry.redhat.io/ubi9/nodejs-22:latest AS web-builder
22

33
WORKDIR /opt/app-root
44

@@ -12,7 +12,7 @@ RUN make install-frontend-ci
1212
COPY web/ web/
1313
RUN make build-frontend
1414

15-
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.22 as go-builder
15+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24 as go-builder
1616

1717
WORKDIR /opt/app-root
1818

Dockerfile.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.redhat.io/ubi9/nodejs-18:latest AS web-builder
1+
FROM registry.redhat.io/ubi9/nodejs-22:latest AS web-builder
22

33
WORKDIR /opt/app-root
44

@@ -11,4 +11,4 @@ RUN make install-frontend-ci
1111

1212
COPY web/ web/
1313

14-
ENTRYPOINT ["make", "lint-frontend"]
14+
ENTRYPOINT ["make", "lint-frontend"]

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install-frontend-ci-clean: install-frontend-ci
1818
cd web && npm cache clean --force
1919

2020
.PHONY: build-frontend
21-
build-frontend:
21+
build-frontend: lint-frontend
2222
cd web && npm run i18n && npm run build
2323

2424
.PHONY: start-frontend
@@ -31,7 +31,7 @@ start-console:
3131

3232
.PHONY: lint-frontend
3333
lint-frontend:
34-
cd web && npm run lint
34+
cd web && npm run lint && npm run lint:tsc
3535

3636
.PHONY: install-backend
3737
install-backend:
@@ -45,15 +45,18 @@ build-backend:
4545
start-backend:
4646
go run ./cmd/plugin-backend.go -port='9002' -config-path='./web/dist' -static-path='./web/dist' -plugin-config-path='ct.yaml'
4747

48+
.PHONY: install
49+
install: install-frontend install-backend
50+
4851
.PHONY: build-image
49-
build-image: test-frontend
52+
build-image: build-frontend test-frontend
5053
./scripts/build-image.sh
5154

5255
.PHONY: start-forward
5356
start-forward:
5457
./scripts/start-forward.sh
5558

56-
export REGISTRY_ORG?=openshift-observability-ui
59+
export REGISTRY_ORG?= openshift-observability-ui
5760
export TAG?=latest
5861
IMAGE=quay.io/${REGISTRY_ORG}/troubleshooting-panel-console-plugin:${TAG}
5962

devspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dev:
3131
sync:
3232
- path: ./web/dist:/opt/app-root/web/dist
3333
startContainer: true
34+
printLogs: true
3435
command: ["make"]
3536
args: ["start-devspace-backend"]
3637
# Inject a lightweight SSH server into the container (so your IDE can connect to the remote dev env)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openshift/troubleshooting-panel-console-plugin
22

3-
go 1.22.1
3+
go 1.24.0
44

55
require (
66
github.com/evanphx/json-patch v0.5.2

web/integration-tests/cypress.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
const { defineConfig } = require('cypress');
1+
import { defineConfig } from 'cypress';
2+
import plugin from './plugins/index';
23

3-
module.exports = defineConfig({
4+
export default defineConfig({
45
viewportWidth: 1920,
56
viewportHeight: 1080,
67
screenshotsFolder: './screenshots',
@@ -18,7 +19,7 @@ module.exports = defineConfig({
1819
},
1920
e2e: {
2021
setupNodeEvents(on, config) {
21-
return require('./plugins/index.ts')(on, config);
22+
return plugin(on, config);
2223
},
2324
specPattern: 'tests/**/*.cy.{js,jsx,ts,tsx}',
2425
supportFile: false,

web/integration-tests/plugins/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as wp from '@cypress/webpack-preprocessor';
1+
import wp from '@cypress/webpack-preprocessor';
22

33
module.exports = (on, config) => {
44
const options = {
Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
11
{
2+
"Advanced": "Advanced",
3+
"Ago": "Ago",
24
"Correlation result was empty.": "Correlation result was empty.",
3-
"Depth": "Depth",
4-
"Find related resources.": "Find related resources.",
5+
"Create a graph of items correlated from resources in the current page.": "Create a graph of items correlated from resources in the current page.",
6+
"Distance": "Distance",
7+
"Find all paths to items of the specified goal class.": "Find all paths to items of the specified goal class.",
58
"Focus": "Focus",
6-
"Generate a correlation graph starting from resources in the current view.": "Generate a correlation graph starting from resources in the current view.",
7-
"Goal directed search": "Goal directed search",
9+
"Follows correlation rules from the starting point to find related data, then continues the search from that data, up to the number of steps you specify.": "Follows correlation rules from the starting point to find related data, then continues the search from that data, up to the number of steps you specify.",
10+
"Goal Class": "Goal Class",
811
"Korrel8r Error": "Korrel8r Error",
12+
"Loading": "Loading",
913
"Logging Plugin Disabled": "Logging Plugin Disabled",
10-
"Neighbourhood search": "Neighbourhood search",
1114
"Netflow Plugin Disabled": "Netflow Plugin Disabled",
1215
"No Correlated Signals Found": "No Correlated Signals Found",
1316
"Open the Troubleshooting Panel": "Open the Troubleshooting Panel",
14-
"Query to select the starting resources for correlation.": "Query to select the starting resources for correlation.",
15-
"Refresh the graph using the current search settings": "Refresh the graph using the current search settings",
17+
"Query": "Query",
18+
"Quickly diagnose and resolve issues by exploring correlated observability signals for resources.": "Quickly diagnose and resolve issues by exploring correlated observability signals for resources.",
19+
"Range": "Range",
20+
"Recent": "Recent",
21+
"Refresh the graph using the current settings": "Refresh the graph using the current settings",
1622
"Request Failed": "Request Failed",
17-
"Search for correlated resources up to the specified depth.": "Search for correlated resources up to the specified depth.",
18-
"Search for paths to resources of the specified class.": "Search for paths to resources of the specified class.",
19-
"The current view does not support correlation.": "The current view does not support correlation.",
23+
"Return only results in the specified time range.": "Return only results in the specified time range.",
24+
"Return only results more recent than the specified duration.": "Return only results more recent than the specified duration.",
25+
"Search Type": "Search Type",
26+
"Selects the starting point for correlation search. This query is set automatically by the <1>Focus</1> button. You can edit it manually to specify a custom query.": "Selects the starting point for correlation search. This query is set automatically by the <1>Focus</1> button. You can edit it manually to specify a custom query.",
27+
"Since": "Since",
28+
"The current page does not support correlation.": "The current page does not support correlation.",
29+
"Time": "Time",
30+
"to": "to",
2031
"Troubleshooting": "Troubleshooting",
2132
"Troubleshooting Panel": "Troubleshooting Panel",
22-
"Unable to find Console Link": "Unable to find Console Link",
23-
"Update": "Update"
33+
"Unable to find Console Link": "Unable to find Console Link"
2434
}

0 commit comments

Comments
 (0)