hashicorp / vault-k8s

First-class support for Vault and Kubernetes.
Mozilla Public License 2.0
786 stars 169 forks source link

Unable to set vault secret path to PVC path #684

Open vishwajeets7 opened 1 month ago

vishwajeets7 commented 1 month ago

Describe the bug A clear and concise description of what the bug is. Unable to point the vault secrets to Persistent Volume Claim.

This is a multiple container scenario.

To Reproduce Steps to reproduce the behavior:

  1. Deploy application annotated for vault-agent injection
  2. vault.hashicorp.com/agent-inject-secret-foo: "storage/dev"
  3. it creates a folder in home directory rather that storing it in PVC path
  4. "storage" here is declared as Volume with pvc claim name
    • name: storage persistentVaumnClaim: claimName: devSecret
  5. See error (vault injector logs, vault-agent logs, etc.)