Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporting wrong info for secret #63

Closed
prasoon-pxc opened this issue Sep 8, 2023 · 1 comment · Fixed by #65
Closed

Reporting wrong info for secret #63

prasoon-pxc opened this issue Sep 8, 2023 · 1 comment · Fixed by #65
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@prasoon-pxc
Copy link

Describe the bug
KOR is reporting a kubernetes secret as unused but it is getting used by one of deployment in init containers like below:

initContainers:
 - command:
      - alembic
      - upgrade
      - head
      env:
      - name: MY_TEST_PASSWORD
        valueFrom:
           secretKeyRef:
              key: password
              name: test-first-admin

KOR-OUTPUT

kor secret -n test

Unused Secrets in Namespace: test
+---+----------------+
| # | RESOURCE NAME  |
+---+----------------+
| 1 | test-first-admin |
+---+----------------+

Expected behavior
This should not report "test-first-admin" secret as unused secret in test ns.

OS version, architecture and kor version
e.g. Ubuntu x86_64
Kor version: 0.1.9

@yonahd yonahd added bug Something isn't working good first issue Good for newcomers labels Sep 8, 2023
@yonahd yonahd linked a pull request Sep 9, 2023 that will close this issue
@yonahd
Copy link
Owner

yonahd commented Sep 10, 2023

This should be fixed.
It will be available in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants