This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
Extract PlatformApplier and PlatformDestroyer from Platform interface #666
Labels
technical-debt
Technical debt-related issues
Currently,
Platform
interface looks like this:We want to do the following:
LoadConfig
, as it shouldn't be there.Initialize
withRender
, to only return content ofcluster.tf
file, similar to what backend code is doing.With that, we end up with:
Now,
Apply()
andDestroy()
methods looks the same for AWS, AKS and bare-metal:If we create following interfaces:
Then we can check if given platform implements such interface and if not, just call generic
Destroy()
on executor, so platform code is more condensed.The text was updated successfully, but these errors were encountered: