ks-devops
ks-devops copied to clipboard
Improvement request: avoid using API tojson and tojenkinsfile
As you can see, the Pipeline editing feature requires the following two APIs:
v1alpha2/tojenkinsfilev1alpha2/tojson
Those APIs will call Jenkins API as well. It will be unstable due to there is no HA solution for Jenkins.

Possible solution
Considering those APIs want to convert data format between JSON and Jenkinsfile. We could do it in the backend, for example, store the data in annotations, and convert it in the controller.
- [ ] #714
/kind feature
/assign
v1alpha2/tojenkinsfile and v1alpha2/tojson was removed in https://github.com/kubesphere/ks-devops/pull/795