Skip to content

Better error reporting #1753

Open
Open
@ritazh

Description

@ritazh

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

When driver is failing to initialize, additional logs would be helpful.

e.g. this log output indicates the rest mapper initialization failed, could be due to a network issue on the node causing the driver unable to talk to the kube-apiserver.

k logs secrets-store-csi-driver-windows -n kube-system -c secrets-store
I0206 00:04:40.450395 5564 exporter.go:35] "initializing metrics backend" backend="prometheus"
E0206 00:05:02.650206 5564 main.go:167] "failed to start manager" err="could not create RESTMapper from config"
E0206 00:05:02.650206 5564 main.go:85] "unrecoverable error encountered" err="could not create RESTMapper from config"

What did you expect to happen:

Additional logs including The driver is unable to communicate with the kube-apiserver. Check network connectivity etc would be helpful.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

The error above is returned by https://github.com/kubernetes-sigs/controller-runtime. Evaluate to see if we need to upgrade to a newer version.

Which provider are you using:
[e.g. Azure Key Vault, HashiCorp Vault, etc. Have you checked out the provider's repo for more help?]

AKV

Environment:

  • Secrets Store CSI Driver version: (use the image tag):
  • Kubernetes version: (use kubectl version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions