This commit is contained in:
inksnw
2024-10-14 15:03:50 +08:00
committed by ks-ci-bot
parent 214faec31c
commit 42dfe0db41

View File

@@ -37,7 +37,7 @@ func (h *appHandler) exampleCr(req *restful.Request, resp *restful.Response) {
func convertCRDToCR(crd v1.CustomResourceDefinition) (dstCr unstructured.Unstructured, err error) {
cr := unstructured.Unstructured{}
cr.SetName(fmt.Sprintf("%s-Instance", crd.Spec.Names.Singular))
cr.SetName(fmt.Sprintf("%s-set-your-own-name", crd.Spec.Names.Singular))
cr.SetGroupVersionKind(schema.GroupVersionKind{
Group: crd.Spec.Group,
Kind: crd.Spec.Names.Kind,