Closed stephenpaulger closed 3 years ago
Clusterlint has a bug where secrets that are referenced only by a secretKeyRef are listed as unused.
spec: containers: env: - name: APP_ENV_VAR_NAME valueFrom: secretKeyRef: key: SECRET_KEY_NAME name: secret-shown-as-unused
This bug isn't present for config maps so I have added a test based on the equivalent config map test and extended the function that finds which secrets are used to also identify secrets based on secretKeyRefs.
Thanks @stephenpaulger! We'll release this sometime in January.
Clusterlint has a bug where secrets that are referenced only by a secretKeyRef are listed as unused.
This bug isn't present for config maps so I have added a test based on the equivalent config map test and extended the function that finds which secrets are used to also identify secrets based on secretKeyRefs.