srl-labs / srl-controller

k8s controller for SR Linux nodes scheduled by KNE
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

refactored version detection for license and lic update procedure #14

Closed hellt closed 2 years ago

hellt commented 2 years ago

Procedure to update/reuse a secret with a license if one exists in the target namespace was missing. In addition to that, the version fetching logic was in the main reconciliation loop that caused noise in the logs. This was moved to a function that needs this preliminary version information