RedHatInsights / entitlements-config

Entitlements API service config
4 stars 19 forks source link

acs: add SKU modifiers #80

Closed stehessel closed 9 months ago

stehessel commented 9 months ago

There are many SKU modifiers, in particular

validQuotaSKUs[k+"RN"] = struct{}{}   // Renewed
validQuotaSKUs[k+"S"] = struct{}{}    // Special pricing
validQuotaSKUs[k+"MO"] = struct{}{}   // Monthly
validQuotaSKUs[k+"HR"] = struct{}{}   // Hourly
validQuotaSKUs[k+"F3"] = struct{}{}   // Three year
validQuotaSKUs[k+"F3RN"] = struct{}{} // Three year renewed

The entitlement config has to be repeated for each permutation of the SKU modifiers. This adds all sensible combinations that I am aware of. Without the modifier, customers may lose access to their console page if their SKU modifier changes. Follow up to #78