This is a clone of issue OCPBUGS-49723. The following is the description of the original issue:
—
Description of problem:
clustercatalog is a cluster scoped resource and it does not need to have namespace mentioned in its yaml file. Currently below is how it is been seen.
{code:java}
apiVersion: olm.operatorframework.io/v1
kind: ClusterCatalog
metadata:
name: cc-redhat-operator-index-v4-17
namespace: openshift-marketplace
spec:
priority: 0
source:
image:
ref: ec2-3-137-182-27.us-east-2.compute.amazonaws.com:5000/cc/redhat/redhat-operator-index:v4.17
type: Image
status: {}
Version-Release number of selected component (if applicable):{code:none}
4.18
How reproducible:
Always
Steps to Reproduce:
1. Mirror an imageSetConfig as shown below with the PR which has fix for clusterCatlaog
{code:java}
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v2alpha1
mirror:
operators:
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
packages:
- name: security-profiles-operator
2. Run command `oc-mirror -c isc.yaml --workspace file://test docker://localhost:5000 --v2 --dest-tls-verify=false
3.
Actual results:{code:none}
Generating ClusterCatalog yaml has namespace as shown in the description.
Expected results:
There should not be any namespace in the yaml file since clustercatalog is a cluster scoped resource.
Additional info:
https://redhat-internal.slack.com/archives/C050P27C71S/p1738324252074669?thread_ts=1738322462.210089&cid=C050P27C71S
- clones
-
OCPBUGS-49723 Remove namespace from clusterCatalog yaml file as this is a cluster scoped resource
-
- Closed
-
- is blocked by
-
OCPBUGS-49723 Remove namespace from clusterCatalog yaml file as this is a cluster scoped resource
-
- Closed
-
- links to
-
RHEA-2024:6122
OpenShift Container Platform 4.18.z bug fix update