-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat: generate swagger/graphql schema files from api #8777
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floreks The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #8777 +/- ##
==========================================
+ Coverage 35.60% 37.55% +1.94%
==========================================
Files 255 255
Lines 10782 11145 +363
Branches 142 142
==========================================
+ Hits 3839 4185 +346
- Misses 6730 6747 +17
Partials 213 213 |
) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [kubernetes-dashboard](https://togithub.com/kubernetes/dashboard) | patch | `7.1.2` -> `7.1.3` | --- ### Release Notes <details> <summary>kubernetes/dashboard (kubernetes-dashboard)</summary> ### [`v7.1.3`](https://togithub.com/kubernetes/dashboard/releases/tag/kubernetes-dashboard-7.1.3) [Compare Source](https://togithub.com/kubernetes/dashboard/compare/kubernetes-dashboard-7.1.2...kubernetes-dashboard-7.1.3) #### What's Changed - chore: fix some typos by [@​vitalmotif](https://togithub.com/vitalmotif) in [https://github.com/kubernetes/dashboard/pull/8821](https://togithub.com/kubernetes/dashboard/pull/8821) ##### API - feat: generate swagger/graphql schema files from api by [@​floreks](https://togithub.com/floreks) in [https://github.com/kubernetes/dashboard/pull/8777](https://togithub.com/kubernetes/dashboard/pull/8777) ##### Web - fix: login guard and me service initialization by [@​floreks](https://togithub.com/floreks) in [https://github.com/kubernetes/dashboard/pull/8840](https://togithub.com/kubernetes/dashboard/pull/8840) ##### Helm Chart - feat(chart): bump chart to 7.1.3 by [@​floreks](https://togithub.com/floreks) in [https://github.com/kubernetes/dashboard/pull/8841](https://togithub.com/kubernetes/dashboard/pull/8841) - Change the default number of replicas for API deployment from 3 to 1 - Update `kong_dns_order` entry in an attempt to mitigate latency issues #### New Contributors - [@​vitalmotif](https://togithub.com/vitalmotif) made their first contribution in [https://github.com/kubernetes/dashboard/pull/8821](https://togithub.com/kubernetes/dashboard/pull/8821) **Full Changelog**: kubernetes/dashboard@kubernetes-dashboard-7.1.2...kubernetes-dashboard-7.1.3 #### Installation ```sh helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/ helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard ``` #### Compatibility | Kubernetes version | 1.27 | 1.28 | 1.29 | |--------------------|-----|-----|-----| | Compatibility | ? | ? | ✓ | - `✓` Fully supported version range. - `?` Due to breaking changes between Kubernetes API versions, some features might not work correctly in the Dashboard. #### Images docker.io/kubernetesui/dashboard-api:1.4.0 docker.io/kubernetesui/dashboard-auth:1.1.2 docker.io/kubernetesui/dashboard-metrics-scraper:1.1.1 docker.io/kubernetesui/dashboard-web:1.2.3 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: kireque-bot[bot] <143391978+kireque-bot[bot]@users.noreply.github.com>
go-restful-openapi
package support to API modulemake schema
targets tomodules/api
,modules/web
and root makefilesapihandler.go
routes documentation to generate proper swagger schemamodules/api/schema/swagger.json
modules/web/schema/schema.graphql
openapi-enabled
arg to API. It enables/apidocs.json
endpoint with swagger schema.