It is too easy for someone to forget to upgrade the CSD when upgrading their Cloudera Manager CDAP instance. We need to prevent this from happening and figure out the right way to do it.
On first glance:
- CM does not export any CSD version-related variables we could use to check at runtime
- Generation mechanism is more appropriate only for when we need it.
- Tags. it seems we could use tags with the maj.min version encoded (cdap3.3). We will need the ability to reliably maintain these (build system). This appears to be the way to go initially.
So: should enforce CSD maj.min == Parcel maj.min