@@ -66,14 +66,14 @@ func main() {
6666}
6767
6868func swaggify (name string ) string {
69- name = strings .Replace (name , "github.com/fluid-cloudnative/fluid/api/v1alpha1" , "" , - 1 )
70- name = strings .Replace (name , "github.com/kubernetes-sigs/kube-batch/pkg/client/clientset/" , "" , - 1 )
71- name = strings .Replace (name , "k8s.io/api/core/" , "" , - 1 )
72- name = strings .Replace (name , "k8s.io/apimachinery/pkg/apis/meta/" , "" , - 1 )
73- name = strings .Replace (name , "k8s.io/kubernetes/pkg/controller/" , "" , - 1 )
74- name = strings .Replace (name , "k8s.io/client-go/listers/core/" , "" , - 1 )
75- name = strings .Replace (name , "k8s.io/client-go/util/workqueue" , "" , - 1 )
76- name = strings .Replace (name , "k8s.io/apimachinery/pkg/api/resource" , "" , - 1 )
77- name = strings .Replace (name , "/" , "." , - 1 )
69+ name = strings .ReplaceAll (name , "github.com/fluid-cloudnative/fluid/api/v1alpha1" , "" )
70+ name = strings .ReplaceAll (name , "github.com/kubernetes-sigs/kube-batch/pkg/client/clientset/" , "" )
71+ name = strings .ReplaceAll (name , "k8s.io/api/core/" , "" )
72+ name = strings .ReplaceAll (name , "k8s.io/apimachinery/pkg/apis/meta/" , "" )
73+ name = strings .ReplaceAll (name , "k8s.io/kubernetes/pkg/controller/" , "" )
74+ name = strings .ReplaceAll (name , "k8s.io/client-go/listers/core/" , "" )
75+ name = strings .ReplaceAll (name , "k8s.io/client-go/util/workqueue" , "" )
76+ name = strings .ReplaceAll (name , "k8s.io/apimachinery/pkg/api/resource" , "" )
77+ name = strings .ReplaceAll (name , "/" , "." )
7878 return name
7979}
0 commit comments