Wrong webhook address in the pipeline edit page
Created by: LinuxSuRen
General remarks
This form is to report bugs. For general usage questions refer to our Slack channel KubeSphere-users
Describe the bug A wrong webhook address is given on the pipeline edit page.
For UI issues please also add a screenshot that shows the issue.
Versions used(KubeSphere/Kubernetes) KubeSphere: 3.0.0 Kubernetes: v1.17.9
Environment How many nodes and their hardware configuration:
No related to any specific environment.
(and other info are welcomed to help us debugging)
To Reproduce Steps to reproduce the behavior:
- Turn the multi-cluster feature on.
- Open the host cluster page, create a pipeline with the member cluster.
- Checkout the webhook address in the pipeline editor page
- See the wrong webhook address from below screenshot
Expected behavior The webhook should keep the same with the related cluster instead of the current window location.
Potential wrong logic I did some work on this topic. The following code line might lead to the current issue.