Skip to content

Commit baaba1a

Browse files
committed
FIXME: nasty stuff around createNamespacedProcessedTemplateV1
1 parent 54f9e55 commit baaba1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/cmd/server/kubernetes/master_config.go

+5
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,14 @@ func DefaultOpenAPIConfig() *openapicommon.Config {
429429
op := r.Operation
430430
path := r.Path
431431
//TODO/REBASE this is gross
432+
// +1
432433
if strings.HasPrefix(path, "/oapi/v1/namespaces/{namespace}/processedtemplates") {
433434
op = "createNamespacedProcessedTemplate"
435+
} else if strings.HasPrefix(path, "/apis/template.openshift.io/v1/namespaces/{namespace}/processedtemplates") {
436+
op = "createNamespacedProcessedTemplateV1"
434437
} else if strings.HasPrefix(path, "/oapi/v1/processedtemplates") {
438+
op = "createProcessedTemplateForAllNamespacesV1"
439+
} else if strings.HasPrefix(path, "/apis/template.openshift.io/v1/processedtemplates") {
435440
op = "createProcessedTemplateForAllNamespaces"
436441
} else if strings.HasPrefix(path, "/oapi/v1/namespaces/{namespace}/generatedeploymentconfigs") {
437442
op = "generateNamespacedDeploymentConfig"

0 commit comments

Comments
 (0)