Commit fd16464
misc: Validation on payload and Error handling, API Specs revised (#6790)
* corrected api specs
* specs enhance
* Merge pull request #6771 from devtron-labs/fix-cron-job-suspend
fix: cron job suspend
* fix: update default sequence for bulk edit config table and correct README link
* corrected specs
* corrected specs
* Improve CI status fetching logic in `CiHandlerImpl` to handle linked pipelines, add duplicate removal utility, and enhance logging and fallback mechanisms.
* Refactor `CiHandlerImpl` to modularize and streamline CI pipeline status fetching, extracting common logic into reusable functions and improving linked pipeline handling.
* Remove redundant comments in `CiHandler.go` to enhance code clarity and maintain consistency with refactored CI status handling logic.
* Clean up redundant comments in `preparePipelineStatusLookup` to enhance readability and align with refactored CI pipeline handling logic.
* Remove unused `mapWorkflowsToLinkedPipelines` function from `CiHandler.go` to enhance code clarity and eliminate dead code.
* Extract `RemoveDuplicateInts` utility to `CiCdUtil.go` for reusability and replace the inlined method in `CiHandler.go`.
* vendor for spec-validator
* spec-fixes as per cursor when ran on results file
* spec-fixes manually for /orchestrator path
* script fix to run against server
* naming changed from devtron-lab
duplicated removed
ap spec correction
* removed extra code
* wip: adding cluster status
* fix cluster status
* Enhance CI status fetching in `CiHandlerImpl` to handle linked pipelines. Add linked pipeline mapping and workflow statuses, refactor status population logic, and introduce reusable adapter methods for linked CI workflows.
* framework.go update
* api-spec fix
api-spec fix
api-spec fix
api-spec fix
API Error wrapper
API Error wrapper
specs fixes
* spec fix
* script fix
* Update workflow status table scripts to latest version.
* Update `authenticator` and `common-lib` dependencies to latest versions.
* added sql ent files (#6780)
* devops specs included
* script fix
* script fix
* migration number chnage (#6783)
* feat: add resource recommendation APIs and update openapi.yaml
* feat: add Resource Recommendation to openapi.yaml
* specs fix
* redocly script to generate html
* refact
* refact
* refact
* doc: api spec merger
* chore: test commit
* misc: script name rectified in action file
* misc: testing change in /spec
* misc: test commit
* misc: test commit
* refact
* refact
* refact
* refact
* feat: action fix and resource recommender specs
* fix: action fixes
* chore: test trigger commit
* chore: test run commit
* chore: test commit
* chore: test commit
* feat: git push job in action file
* feat: git push job in action file
* chore: test commit
* chore: test commit
* chore: test commit
* chore: test commit
* fix panic
* chore: test commit
* chore: test commit
* chore: test commit
* fix: script misc chore fixes and trigger commit
* fix: script fixes
* fix: script fixes
* fix: script fixes
* fix: script fixes
* fix: script fixes
* fix: script fixes
* fix: script fixes
* create API token validation
* misc: added support for cronjob annotations and probes (#6787)
* added support for cronjob annotations and probes
* support for older charts
* reconfiguring semverCompare
* removed restartPolicy from cronjob-config
* added support for external-secrets.io/v1
* added default values for eso
* older compatibility
* rectify the semverCompare
* added support for jobLabels and jobAnnotations
* refact
* refact
* security policy specs fixed
* refact
* refact
* refact
* refact
* refact
* refact
* ent separation
* ent separation
* feat: automate API specs workflow and documentation (#6786)
* feat: api spec hosting mechanism
* fix: trigger condition update on wf file
* fix: remove old wf
* refact in specs
* generate-api-docs.sh fix
---------
Co-authored-by: prakhar katiyar <39842461+prkhrkat@users.noreply.github.com>
Co-authored-by: prakhar katiyar <prkhrkat@gmail.com>
* driftSpec.yaml added
* fix: API token generation api responses refactoring (#6788)
* fix: API token generation api responses refactoring
* fix: register custom validation against tag for api token name validations
* fix: register custom validation against tag for api token name validations
* Revert "fix: register custom validation against tag for api token name validations"
This reverts commit 7593c27.
* fix: remove `required` validation from Description and expiryAtInMs
* fix: adding resource conflict api response in WriteJsonResp utility
* fix: path params int validation updated to whole numbers only
* fix: handled resource not found response for update and delete api, token
* path corrected
* cmscs added
* corrected specs
* fix: api responses (#6789)
* fix: API token generation api responses refactoring
* fix: register custom validation against tag for api token name validations
* fix: register custom validation against tag for api token name validations
* Revert "fix: register custom validation against tag for api token name validations"
This reverts commit 7593c27.
* fix: remove `required` validation from Description and expiryAtInMs
* fix: adding resource conflict api response in WriteJsonResp utility
* fix: path params int validation updated to whole numbers only
* fix: handled resource not found response for update and delete api, token
* fix: validation for SSO config name field
* fix: enhanced query param validation for commit metadata for pipeline material
* fix: disable updating clsutername and api name in update clsuter api
* fix: enhanced api response in query param validation failure reeors in ge default deployment template
* fix: disable modifying cluster nae and env name in update env api
* fix: resolving review comments
* fix: resolving review comments
---------
Co-authored-by: iamayushm <32041961+iamayushm@users.noreply.github.com>
Co-authored-by: Ash-exp <asutosh2000ad@gmail.com>
Co-authored-by: Prakash Kumar <prakash.kumar@devtron.ai>
Co-authored-by: ayushmaheshwari <ayush@devtron.ai>
Co-authored-by: Vikram <73224103+vikramdevtron@users.noreply.github.com>
Co-authored-by: Shivam Nagar <124123645+Shivam-nagar23@users.noreply.github.com>
Co-authored-by: SATYAsasini <satya.prakash@devtron.ai>
Co-authored-by: Badal Kumar <130441461+badal773@users.noreply.github.com>
Co-authored-by: satya_prakash <155617493+SATYAsasini@users.noreply.github.com>1 parent 97ef69c commit fd16464
File tree
315 files changed
+42987
-21396
lines changed- .github/workflows
- api
- apiToken
- appStore
- chartGroup
- deployment
- values
- auth
- sso
- user
- chartRepo
- cluster
- externalLink
- helm-app
- infraConfig
- k8s
- application
- capacity
- middleware
- module
- openapi/openapiClient
- resourceScan
- restHandler
- app
- appInfo
- appList
- configDiff
- pipeline
- configure
- history
- status
- trigger
- webhook
- workflow
- common
- scopedVariable
- server
- team
- terminal
- userResource
- cmd/external-app
- internal
- constants
- util
- pkg
- apiToken
- auth/user/bean
- cluster
- bean
- deployment/trigger/devtronApps/bean
- k8s/capacity
- bean
- pipeline
- adapter
- util
- scripts
- devtron-reference-helm-charts/cronjob-chart_1-6-0
- templates
- sql
- specs
- application
- audit
- authentication
- buildInfraConfig
- bulk
- charts
- ci-pipeline
- cluster
- deployment
- ent-only
- environment
- external-app
- fluxCD
- gitops
- global-config
- helm
- kubernetes
- md-output
- .openapi-generator
- Apis
- Models
- notifications
- openapiClient
- api
- docs
- apiToken_api
- pipeline
- plugin
- security
- swagger
- template
- user
- workflow
- tests/api-spec-validation
- cmd
- live-test
- validator
- vendor
- github.com
- getkin/kin-openapi/openapi3
- oasdiff
- yaml3
- yaml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
315 files changed
+42987
-21396
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
| |||
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| 30 | + | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
| 64 | + | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | | - | |
| 105 | + | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 112 | + | |
| 113 | + | |
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
| |||
132 | 127 | | |
133 | 128 | | |
134 | 129 | | |
135 | | - | |
| 130 | + | |
136 | 131 | | |
137 | 132 | | |
138 | 133 | | |
| |||
182 | 177 | | |
183 | 178 | | |
184 | 179 | | |
185 | | - | |
| 180 | + | |
186 | 181 | | |
187 | 182 | | |
188 | 183 | | |
| |||
221 | 216 | | |
222 | 217 | | |
223 | 218 | | |
224 | | - | |
| 219 | + | |
225 | 220 | | |
226 | 221 | | |
227 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
| 515 | + | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| |||
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
932 | | - | |
| 932 | + | |
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
| |||
0 commit comments