From 417b13db96f73f8557fc69a6e4ffbdb754cdcf69 Mon Sep 17 00:00:00 2001 From: bshaw Date: Fri, 22 Nov 2024 10:33:24 +0530 Subject: [PATCH] n oc-mirror v2, the targetCatalogSourceTemplate example template for CatalogSource requires update In oc-mirror v2, the targetCatalogSourceTemplate example template for CatalogSource requires update the API version and proper indentation . Current: ~~~ apiVersion: operators.coreos.com/v2alpha1 kind: CatalogSource metadata: name: discarded namespace: openshift-marketplace spec: image: discarded sourceType: grpc updateStrategy: registryPoll: interval: 30m0s ~~~ Expected: ~~~ apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: discarded namespace: openshift-marketplace spec: image: discarded sourceType: grpc updateStrategy: registryPoll: interval: 30m0s ~~~ --- modules/oc-mirror-imageset-config-parameters-v2.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/oc-mirror-imageset-config-parameters-v2.adoc b/modules/oc-mirror-imageset-config-parameters-v2.adoc index de0330ac04..2cca7201be 100644 --- a/modules/oc-mirror-imageset-config-parameters-v2.adoc +++ b/modules/oc-mirror-imageset-config-parameters-v2.adoc @@ -164,7 +164,7 @@ Example: `/tmp/catalog-source_template.yaml` Example of a template file: [source,yaml] ---- -apiVersion: operators.coreos.com/v2alpha1 +apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: discarded @@ -173,8 +173,8 @@ spec: image: discarded sourceType: grpc updateStrategy: -registryPoll: -interval: 30m0s + registryPoll: + interval: 30m0s ---- |`mirror.operators.targetTag` @@ -447,4 +447,4 @@ The default is `ocp` |Boolean The default value is `false` -|=== \ No newline at end of file +|===