Skip to content

[Bug] Persist irrelevant Kubernetes Secrets #1425

Open
@kevin85421

Description

@kevin85421

Describe the bug

When you create a Kind cluster, the Kubernetes Secret bootstrap-token-abcdef in the kube-system namespace will also be created. However, NGF watches all Kubernetes Secrets in the Kubernetes cluster. Is it necessary to persist these irrelevant Kubernetes Secrets?

{"level":"info","ts":"2023-12-25T08:15:03Z","msg":"Upserted the resource","controller":"secret","controllerGroup":"","controllerKind":"Secret","Secret":{"name":"bootstrap-token-abcdef","namespace":"kube-system"},"namespace":"kube-system","name":"bootstrap-token-abcdef","reconcileID":"acf04978-8167-4300-9249-d67caa5c19a5"}

To Reproduce

  • Create a Kind cluster
  • Deploy NGF
  • Check logs

Expected behavior

The irrelevant secret should not be reconciled and persisted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/performancePerformance relatedarea/securityFor security best practicesbugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions