Skip to content

Commit

Permalink
One replica only for Code Ready Containers with one node (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
cniackz committed Apr 18, 2023
1 parent 4e436e5 commit f2f22b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ for catalog in "${redhatCatalogs[@]}"; do
yq -i ".spec.install.spec.deployments[1].spec.template.spec.containers[0].image |= (\"${operatorImageDigest}\")" bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml
yq eval-all -i ". as \$item ireduce ({}; . * \$item )" bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml resources/templates/olm-template.yaml

echo "One replica only for Code Ready Containers with one node"
yq -i e '.spec.install.spec.deployments[1].spec.replicas |= 1' bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml

# Now promote the latest release to the root of the repository
rm -Rf manifests
rm -Rf metadata
Expand Down

0 comments on commit f2f22b7

Please sign in to comment.