Skip to content

ConfigMaps in CronJobs Env are not detected as in use #123

Description

@robertkaelin

(Similiar to #120)

I've found that ConfigMaps used by CronJobs for eg. env vars are not detected as in-use.

apiVersion: batch/v1
kind: CronJob
metadata:
  name: test
spec:
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - env:
                - name: TEST
                  valueFrom:
                    configMapKeyRef:
                      key: TEST
                      name: test-config

Output from kubectl reap cm:

configmap/test-config deleted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions