Created
December 9, 2024 10:58
-
-
Save dosaboy/33fb9b0641151d9fec27d91591b725cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -u | |
CHARMS=( | |
aodh | |
barbican | |
barbican-vault | |
ceilometer | |
ceilometer-agent | |
ceph-fs | |
ceph-iscsi | |
ceph-mon | |
ceph-nfs | |
ceph-osd | |
ceph-proxy | |
ceph-radosgw | |
charmed-openstack-tester | |
charm-guide | |
charm-ironic-conductor | |
charm-ovn-chassis | |
charms.ceph | |
charms.openstack | |
cinder | |
cinder-backup | |
cinder-ceph | |
cinder-lvm | |
cinder-purestorage | |
designate | |
designate-bind | |
glance | |
glance-simplestreams-sync | |
gnocchi | |
hacluster | |
heat | |
interface-barbican-secrets | |
interface-keystone | |
interface-mysql-shared | |
interface-tls-certificates | |
keystone | |
keystone-ldap | |
keystone-openidc | |
keystone-saml-mellon | |
layer-openstack | |
layer-openstack-principle | |
layer-ovn | |
manila | |
manila-ganesha | |
manila-generic | |
masakari | |
masakari-monitors | |
mysql-innodb-cluster | |
mysql-router | |
neutron-api | |
neutron-api-plugin-ovn | |
neutron-dynamic-routing | |
neutron-gateway | |
neutron-openvswitch | |
nova-cloud-controller | |
nova-compute | |
nova-compute-nvidia-vgpu | |
octavia | |
octavia-dashboard | |
octavia-diskimage-retrofit | |
openstack-dashboard | |
ovn-central | |
ovn-chassis | |
percona-cluster | |
placement | |
rabbitmq-server | |
swift-proxy | |
swift-storage | |
vault | |
) | |
for r in ${CHARMS[@]}; do | |
found=false | |
pushd $r &>/dev/null | |
readarray -t branches<<<`git branch -a| grep remotes/gerrit/stable| egrep -v "/[0-9][0-9]\."` | |
echo ">> $r (checking ${#branches[@]} stable branches)" | |
for b in ${branches[@]}; do | |
git checkout ${b/remotes\//} 2>/dev/null | |
[[ -f charmcraft.yaml ]] || continue | |
grep -q 'use-lock-file-branches' charmcraft.yaml | |
if (($?==0)); then | |
found=true | |
echo "branch $b uses --use-lock-file-branches" | |
fi | |
done | |
$found && echo "" | |
popd &>/dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment