Fix sylva unit status cm namespace for checking its status

What the MR does

The Sylva unit release namespace (ex: teama) is different from the Sylva unit Helm Release (ex: teama-wc1). Currently, the getSylvaUnitsStatus is using the first one instead of the 2nd (the correct one). This MR fixes this issue

Example

> k -n teama get sylvaunitsrelease wc1 -o yaml
(...)
status:
  conditions:
  - lastTransitionTime: "2024-11-19T16:26:47Z"
    message: Successfully reconciled sylvaUnitsRelease
    observedGeneration: 1
    reason: ReconciliationSucceeded
    status: "True"
    type: Ready
  observedGeneration: 1
  resourcesStatus:
  - kind: Namespace
    name: teama--wc1
    status: Resource is Ready
  (...)
  - kind: Kustomization
    name: sylva-units-status
    status: Resource is Ready

Reference

Close #19 (closed)

Edited by vladimir braquet

Merge request reports

Loading