Skip to content

Commit cc54174

Browse files
Merge pull request #622 from jmprusi/jmprusi/microshift-fixes
OPRUN-3063: Microshift manifests fixes
2 parents 5c00fde + 13adfcb commit cc54174

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

microshift-manifests/0000_50_olm_15-csv-viewer.rbac.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
include.release.openshift.io/self-managed-high-availability: "true"
88
capability.openshift.io/name: "OperatorLifecycleManager"
99
name: copied-csv-viewer
10-
namespace: openshift
10+
namespace: openshift-operator-lifecycle-manager
1111
rules:
1212
- apiGroups:
1313
- "operators.coreos.com"
@@ -27,7 +27,7 @@ metadata:
2727
include.release.openshift.io/self-managed-high-availability: "true"
2828
capability.openshift.io/name: "OperatorLifecycleManager"
2929
name: copied-csv-viewers
30-
namespace: openshift
30+
namespace: openshift-operator-lifecycle-manager
3131
roleRef:
3232
apiGroup: rbac.authorization.k8s.io
3333
kind: Role

microshift-manifests/kustomization.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,3 @@ resources:
2222
- 0000_50_olm_09-aggregated.clusterrole.yaml
2323
- 0000_50_olm_13-operatorgroup-default.yaml
2424
- 0000_50_olm_15-csv-viewer.rbac.yaml
25-
- 0000_50_olm_99-operatorstatus.yaml
26-
- 0000_90_olm_00-service-monitor.yaml
27-
- 0000_90_olm_01-prometheus-rule.yaml

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)