Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Add workload label to namespaces during deployment #751

Closed

Description

@MAVRICK-1

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

  1. self-assigned this
    on May 13, 2025
  2. added
    backend
    on May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backend

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions