Skip to content

Add zarf label to all resources created by a package deploy #3625

@sgettys

Description

@sgettys

Clear labeling of Zarf created resources

I want to be able to query k8s api and get a list of resources back that were created by deploying a zarf package. Something like zarf-created-by=<package-name> could be added to the resource labels.

Describe the behavior you'd like

  • Given a Zarf package
  • When It is deployed
  • Then All Kubernetes resources that are created by the deployment are labeled with the package name
  • Given a Zarf package is deployed
  • When kubectl get <resource> -n <namespace> -l zarf-created-by=<pacakge-name> is executed
  • Then all resources created in the requested namespace by the specified package are returned

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions