edgexr / edge-cloud-platform

Apache License 2.0
1 stars 0 forks source link

clusterrefs upgrade fix #360

Closed gainsley closed 2 months ago

gainsley commented 2 months ago

The AppInstKeyName upgrade function failed to upgrade ClusterRefs properly. As a result the database is now in a state of old and new clusterRefs, the old ones which still refer to AppInsts by AppKey+CloudletKey.

This change fixes an issue with the InstanceKeysRegionScopedName function hitting errors on these old formats, and also adds another upgrade function to fix the old clusterRefs.

The additional upgrade function fixes clusterRefs by rebuilding them from existing AppInsts.