isActive returns true if the preset's template version is the active version, and it is neither deleted nor deprecated. This determines whether we should maintain prebuilds for this preset or delete them.
()
| 335 | // isActive returns true if the preset's template version is the active version, and it is neither deleted nor deprecated. |
| 336 | // This determines whether we should maintain prebuilds for this preset or delete them. |
| 337 | func (p PresetSnapshot) isActive() bool { |
| 338 | return p.Preset.UsingActiveVersion && !p.Preset.Deleted && !p.Preset.Deprecated |
| 339 | } |
| 340 | |
| 341 | // handleActiveTemplateVersion determines the reconciliation actions for a preset with an active template version. |
| 342 | // It ensures the system moves towards the desired number of healthy prebuilds. |
no outgoing calls
no test coverage detected