no matches for kind "Template" in version "v1"

Solution Verified - Updated -

Issue

  • The OC command line displays an error message when attempting to apply the template YAML file after upgrading the Red Hat OpenShift Container Platform from 3.11 to 4.14:
error: failed to read input object (not a Template?): resource mapping not found for name: "xxxxxx-xxxxxxx-xxxxx" namespace: "" from "template.yml": no matches for kind "Template" in version "v1"
ensure CRDs are installed first
error: no objects passed to apply

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.12+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content