You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently KubePlus supports license definition for a Kind based on number of application instances that can be created and absolute time when an application instance can be created.
Occassionally, it might be useful to define a license that is duration-based. For instance, TrialKind can be associated with a license of "one month". This would mean that an application instance created for the TrialKind will be "in-license" for a period of one month after it is created.
The text was updated successfully, but these errors were encountered:
One approach to implement this will be as follows:
We will implement a licensemanager component, whose job will be to go through all the Kinds registered by KubePlus and find the Kinds that have defined a duration-based license. For such a Kind, find all the application instances, and check their age. If the instance age is past the defined duration, then mark the application instance as "out-of-license".
In the status dictionary for the app instance, we will need to include a field "license-status". If no license is defined for a Kind, then this field will be empty. Otherwise, it will have values "in-license" or "out-of-license" depending upon the license status.
The status dictionary update will need to happen here
The licensemanager component can be included as part of helmer as a separate func that sleeps for sometime, wakes up and does its work, and goes back to sleep. The reason helmer will be a good place to add this functionality is because we already have code to update an object's status in helmer.
Currently KubePlus supports license definition for a Kind based on number of application instances that can be created and absolute time when an application instance can be created.
Occassionally, it might be useful to define a license that is duration-based. For instance, TrialKind can be associated with a license of "one month". This would mean that an application instance created for the TrialKind will be "in-license" for a period of one month after it is created.
The text was updated successfully, but these errors were encountered: