From a54ac303a3029452038c6ea47e2ab25b2a65a02a Mon Sep 17 00:00:00 2001 From: Jakub Rusz Date: Wed, 2 Oct 2024 12:21:37 +0200 Subject: [PATCH] templates: fix apiVersion There were errors using the latest oc 4.17 version: error: failed to read input object (not a Template?): unable to decode "templates/openshift/composer.yml": no kind "Template" is registered for version "v1" in scheme "k8s.io/kubectl/pkg/scheme/scheme.go:28" --- templates/openshift/composer.yml | 2 +- templates/openshift/maintenance.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/openshift/composer.yml b/templates/openshift/composer.yml index 950a534b2..f590179c7 100644 --- a/templates/openshift/composer.yml +++ b/templates/openshift/composer.yml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: template.openshift.io/v1 kind: Template metadata: name: composer diff --git a/templates/openshift/maintenance.yml b/templates/openshift/maintenance.yml index d205ba3a0..c529acf00 100644 --- a/templates/openshift/maintenance.yml +++ b/templates/openshift/maintenance.yml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: template.openshift.io/v1 kind: Template metadata: name: image-builder-maintenance