Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement devfile state in odo api #6941

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
19432bf
POST /devstate/container
feloy Jun 28, 2023
790a6af
Implement POST /devstate/container
feloy Jun 28, 2023
861fee8
Generate DELETE /devstate/container/{containerName}
feloy Jun 29, 2023
8f08934
Implement DELETE /devstate/container/{containerName}
feloy Jun 29, 2023
8cbefc8
Serve /devstate/image
feloy Jun 29, 2023
d575f7b
Implement /devstate/image
feloy Jun 29, 2023
88c6d3d
Serve /devstate/resource
feloy Jun 29, 2023
4fb98cf
Implement /devstate/resource
feloy Jun 29, 2023
35e5837
Move Components specific code to components.go
feloy Jun 29, 2023
41da777
Serve /devstate/*command
feloy Jun 29, 2023
f691407
Implement /devstate/*command
feloy Jun 29, 2023
02e0419
Serve /devstate/metadata
feloy Jun 29, 2023
b265cfc
Implement /devstate/metadata
feloy Jun 29, 2023
230d89e
Serve devstate/chart
feloy Jun 30, 2023
376249c
Implement /devstate/chart
feloy Jun 30, 2023
f8480b1
Create a DevfileContent schema reference
feloy Jun 30, 2023
1d15e55
Use `DELETE /command/{name}` instead of `DELETE /*Command/{name}`
feloy Jun 30, 2023
482f0c6
Serve /devstate/command/move
feloy Jun 30, 2023
7e4f329
Implement /devstate/command/move
feloy Jun 30, 2023
d0e8a40
Serve /devstate/command/{name}/[un]setDefault
feloy Jun 30, 2023
4f1a1b1
Implement /devstate/command/{name}/[un]setDefault
feloy Jun 30, 2023
c161bf8
serve /devstate/events
feloy Jun 30, 2023
a3c1e58
Implement /devstate/events
feloy Jun 30, 2023
307a40b
Serve /devstate/quantityValid
feloy Jun 30, 2023
8de7916
Implement /devstate/quantityValid
feloy Jun 30, 2023
be6d72a
Add json tag to API result value
feloy Jul 3, 2023
0e14a1f
Sets a proxy for the API
feloy Jul 3, 2023
8c29192
Move calls from wasm to api (first part)
feloy Jul 3, 2023
960a534
Implement PUT /devsatte/devfile
feloy Jul 3, 2023
a7d66f7
Move calls from wasm to api (end)
feloy Jul 3, 2023
40e8421
Implement GET /devstate/devfile
feloy Jul 3, 2023
4412286
Implement DELETE /devstate/devfile
feloy Jul 3, 2023
84c558b
At startup, get devfile from api, not from localStorage
feloy Jul 3, 2023
c63ee37
Rename service wasmGo -> devstate
feloy Jul 3, 2023
4a7b298
Remove wasm module
feloy Jul 3, 2023
a9bd13e
Update to latest devfile-lifecycle version, license compatible
feloy Jul 3, 2023
500ad16
Apply suggestions from code review
feloy Jul 4, 2023
94208d3
Remove wasm from ui/{Makefile/devfile.yaml}
feloy Jul 4, 2023
a9c3ef8
Define DevfileContent into apispec
feloy Jul 4, 2023
372d3fc
Define required fields
feloy Jul 4, 2023
2916f16
Generate API models from front
feloy Jul 4, 2023
68d5bb7
Regenerate API server after spec changes
feloy Jul 4, 2023
11299bc
Fix examples case
feloy Jul 5, 2023
74057b6
Fix github action e2e tests not running
feloy Jul 5, 2023
cdacd69
Make target for all generated api code
feloy Jul 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/ui-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
paths:
- 'ui'
- 'ui/**'
- '.github/workflows/ui-e2e.yaml'

jobs:
Expand Down
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,16 @@ generate-apiserver: ## Generate OpenAPISpec library based on ododevapispec.yaml
--additional-properties=outputAsLibrary=true,onlyInterfaces=true,hideGenerationTimestamp=true && \
echo "Formatting generated files:" && go fmt ./pkg/apiserver-gen/... && \
echo "Removing pkg/apiserver-gen/api/openapi.yaml" && rm ./pkg/apiserver-gen/api/openapi.yaml

.PHONY: generate-apifront
generate-apifront: ## Generate OpenAPISpec library based on ododevapispec.yaml inside ui/src/app
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also have a single Make target that would generate both the server and the client codes?

podman run --rm \
-v ${PWD}:/local \
docker.io/openapitools/openapi-generator-cli:v6.6.0 \
generate \
-i /local/ododevapispec.yaml \
-g typescript-angular \
-o /local/ui/src/app/api-gen

.PHONY: generate-api
generate-api: generate-apiserver generate-apifront ## Generate code based on ododevapispec.yaml
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require (
github.com/devfile/registry-support/index/generator v0.0.0-20230322155332-33914affc83b
github.com/devfile/registry-support/registry-library v0.0.0-20221201200738-19293ac0b8ab
github.com/fatih/color v1.14.1
github.com/feloy/devfile-lifecycle v0.0.0-20230703133341-1c1589018778
github.com/frapposelli/wwhrd v0.4.0
github.com/fsnotify/fsnotify v1.6.0
github.com/ghodss/yaml v1.0.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum

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

Loading