Skip to content

Commit

Permalink
debug why olm doesnt show up
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jungblut <[email protected]>
  • Loading branch information
tjungblu committed Jan 6, 2025
1 parent 5b8fb07 commit 8ccb75e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,10 @@ func preparePayloadScript(platformType hyperv1.PlatformType, oauthEnabled bool)
var stmts []string

stmts = append(stmts,
fmt.Sprintf("ls -la /manifests"),
fmt.Sprintf("cp -R /manifests %s/", payloadDir),
fmt.Sprintf("rm %s/manifests/*_deployment.yaml", payloadDir),
fmt.Sprintf("rm %s/manifests/*_servicemonitor.yaml", payloadDir),
fmt.Sprintf("rm -f %s/manifests/*_deployment.yaml", payloadDir),
fmt.Sprintf("rm -f %s/manifests/*_servicemonitor.yaml", payloadDir),
fmt.Sprintf("cp -R /release-manifests %s/", payloadDir),
)
for _, manifest := range manifestsToOmit {
Expand All @@ -267,10 +268,10 @@ func preparePayloadScript(platformType hyperv1.PlatformType, oauthEnabled bool)
continue
}
}
stmts = append(stmts, fmt.Sprintf("rm %s", path.Join(payloadDir, "release-manifests", manifest)))
stmts = append(stmts, fmt.Sprintf("rm -f %s", path.Join(payloadDir, "release-manifests", manifest)))
}
if !oauthEnabled {
stmts = append(stmts, fmt.Sprintf("rm %s", path.Join(payloadDir, "release-manifests", "0000_50_console-operator_01-oauth.yaml")))
stmts = append(stmts, fmt.Sprintf("rm -f %s", path.Join(payloadDir, "release-manifests", "0000_50_console-operator_01-oauth.yaml")))
}
toRemove := ResourcesToRemove(platformType)
if len(toRemove) > 0 {
Expand Down Expand Up @@ -344,7 +345,7 @@ oc get ns openshift-config &> /dev/null || oc create ns openshift-config
oc get ns openshift-config-managed &> /dev/null || oc create ns openshift-config-managed
oc apply -f ${MANIFEST_DIR}/0000_00_cluster-version-operator_01_clusterversions-Default.crd.yaml
oc create -f /tmp/clusterversion.json
oc apply -f /tmp/clusterversion.json
oc get config/version -oyaml
while true; do
Expand Down

0 comments on commit 8ccb75e

Please sign in to comment.