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
{{ message }}
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
Add workload label to namespaces during deployment #751
Add workload label to namespaces during deployment
Description
Currently, when deploying manifests with a workload label (kubestellar.io/workload), the label is only applied to the resources themselves, but not to the namespaces that contain these resources. This can cause inconsistency in workload tracking and selection.
Problem
Resources get labeled with kubestellar.io/workload but their containing namespaces do not
This creates inconsistency when filtering or selecting resources by workload
Makes it difficult to track all resources (including namespaces) belonging to a specific workload
Proposed Solution
Modify the EnsureNamespaceExists function to accept a workload label parameter
Update the function to apply the workload label to namespaces when creating them
Also update existing namespaces with the workload label if they already exist
Update all calls to EnsureNamespaceExists to pass the appropriate workload label
Acceptance Criteria
EnsureNamespaceExists function accepts a workload label parameter
Namespaces are labeled with kubestellar.io/workload when created
Existing namespaces are updated with the workload label
All existing callers of EnsureNamespaceExists are updated to pass the appropriate parameter
No change to the function name (DeployManifests) as it already accurately describes its purpose
Technical Notes
This will enhance consistency of workload labeling across all resource types
Will improve filtering and selection capabilities when managing workloads
Should have minimal impact on existing functionality
Activity