Skip to content

Commit b95a4bd

Browse files
committed
Microshift: Ignore files with non existant APIs
Signed-off-by: Joaquim Moreno Prusi <[email protected]>
1 parent 5c00fde commit b95a4bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/generate_crds_manifests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ microshift_manifests_files=$(find "${ROOT_DIR}/microshift-manifests" -type f -na
520520
# Let's sort the files so that we can have a deterministic order
521521
microshift_manifests_files=$(echo "${microshift_manifests_files}" | sort)
522522
# files to ignore, substring match.
523-
files_to_ignore=("ibm-cloud-managed.yaml" "kustomization.yaml" "psm-operator" "removed" "collect-profiles")
523+
files_to_ignore=("ibm-cloud-managed.yaml" "kustomization.yaml" "psm-operator" "removed" "collect-profiles" "prometheus" "service-monitor" "operatorstatus")
524524

525525
# Add all the manifests files to the kustomization file while ignoring the files in the files_to_ignore list
526526
for file in ${microshift_manifests_files}; do
@@ -541,3 +541,5 @@ done
541541
#
542542
${SED} -i '/- --writeStatusName/,+3d' ${ROOT_DIR}/microshift-manifests/0000_50_olm_07-olm-operator.deployment.yaml
543543

544+
# Replace the namespace openshift, as it doesn't exist on microshift, in the rbac file
545+
${SED} -i 's/ namespace: openshift/ namespace: openshift-operator-lifecycle-manager/g' ${ROOT_DIR}/microshift-manifests/0000_50_olm_15-csv-viewer.rbac.yaml

0 commit comments

Comments
 (0)