Skip to content

Commit 129b83a

Browse files
Merge pull request #120 from alanconway/gen-client
refactor: NO-JIRA: Use code-generated client from korrel8r swagger spec.
2 parents bbb6026 + 3d9b943 commit 129b83a

32 files changed

Lines changed: 1570 additions & 97 deletions

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,11 @@ deploy: test-frontend ## Build and push image, reinstall on cluster using helm.
6262
helm uninstall troubleshooting-panel-console-plugin -n troubleshooting-panel-console-plugin || true
6363
PUSH=1 scripts/build-image.sh
6464
helm install troubleshooting-panel-console-plugin charts/openshift-console-plugin -n troubleshooting-panel-console-plugin --create-namespace --set plugin.image=$(IMAGE)
65+
66+
## Code generation
67+
gen-client: web/src/korrel8r/client
68+
69+
# NOTE: copied from https://github.com/korrel8r/korrel8r/blob/main/pkg/rest/docs/swagger.json
70+
web/src/korrel8r/client: korrel8r/swagger.json
71+
cd web && npx openapi-typescript-codegen --input ../$< --output ../$@ --name Korrel8rClient
72+
@touch $@

0 commit comments

Comments
 (0)