Skip to content

Commit

Permalink
Configure storage for image registry (openshift#1185)
Browse files Browse the repository at this point in the history
By default, on baremetal platforms, the image registry operator is
configured without persistent storage.  Here, we configure it with
"emptyDir", and set its management state to managed.  This is needed for
e2e test.
  • Loading branch information
honza authored Feb 11, 2021
1 parent 11d6645 commit 99ad8c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 06_create_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ for name in dnsmasq ironic-inspector ; do
sudo podman ps | grep -w "$name$" && sudo podman stop $name
done

# Configure storage for the image registry
oc patch configs.imageregistry.operator.openshift.io \
cluster --type merge --patch '{"spec":{"storage":{"emptyDir":{}},"managementState":"Managed"}}'

echo "Cluster up, you can interact with it via oc --config ${KUBECONFIG} <command>"

0 comments on commit 99ad8c6

Please sign in to comment.