Skip to content

KueuePopulator: Cleanup doesn't delete TAS, ClusterQueue, and ResourceFlavor #8041

@Edwinhr716

Description

@Edwinhr716

What happened: I ran helm uninstall kueue-populator --namespace kueue-system, and later ran kubectl get configmap -nkueue-system -oyaml to validate that everything was deleted. However, it still shows the tas, resourceflavor, and clusterqueue yamls

- apiVersion: v1
  data:
    resources.yaml: |-
      apiVersion: kueue.x-k8s.io/v1beta1
      kind: Topology
      metadata:
        name: "default"
      spec:
        levels:
          - nodeLabel: "cloud.google.com/gce-topology-block"
          - nodeLabel: "cloud.google.com/gce-topology-subblock"
          - nodeLabel: "cloud.google.com/gce-topology-host"
          - nodeLabel: "kubernetes.io/hostname"
      ---
      kind: ResourceFlavor
      apiVersion: kueue.x-k8s.io/v1beta1
      metadata:
        name: "tas-gpu-default"
      spec:
        nodeLabels:
          cloud.google.com/gke-gpu: "true"
        topologyName: "default"
        tolerations:
        - key: "nvidia.com/gpu"
          operator: "Exists"
          effect: NoSchedule
      ---
      apiVersion: kueue.x-k8s.io/v1beta1
      kind: ClusterQueue
      metadata:
        name: "cluster-queue"
      spec:
        namespaceSelector: {} # match all.
        resourceGroups:
        - coveredResources:
          - "cpu"
          - "memory"
          - "nvidia.com/gpu"
          flavors:
          - name: "tas-gpu-default"
            resources:
            - name: "cpu"
              nominalQuota: 10
            - name: "memory"
              nominalQuota: 10Gi
            - name: "nvidia.com/gpu"
              nominalQuota: 100
  kind: ConfigMap
  metadata:
    annotations:
      helm.sh/hook: post-install,post-upgrade
      helm.sh/hook-delete-policy: before-hook-creation
      helm.sh/hook-weight: "-5"
    creationTimestamp: "2025-12-02T19:10:51Z"
    name: kueue-populator-kueue-resources
    namespace: kueue-system
    resourceVersion: "1764702651364335024"
    uid: 062fd6dd-4257-40af-8b24-9f66ce958537
kind: List
metadata:
  resourceVersion: ""

What you expected to happen: Nothing to show up

How to reproduce it (as minimally and precisely as possible): Install KueuePopulator, then delete it.

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
  • Kueue version (use git describe --tags --dirty --always):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions