bank-vaults / vault-operator

Kubernetes operator for Hashicorp Vault
https://bank-vaults.dev/docs/operator/
Apache License 2.0
58 stars 21 forks source link

Helm chart is missing capabilities config #387

Closed olga-salesloft closed 1 month ago

olga-salesloft commented 6 months ago

Preflight Checklist

Operator Version

v1.21.2

Installation Type

Official Helm chart

Bank-Vaults Version

v1.31.0

Kubernetes Version

1.27.0

Kubernetes Distribution/Provisioner

GKE

Expected Behavior

PDB template has been added recently https://github.com/bank-vaults/vault-operator/pull/324/files and it should works.

Actual Behavior

However, I see the error with PDB template

template: vault-operator/templates/pdb.yaml:2:15: executing "vault-operator/templates/pdb.yaml" at <include "common.capabilities.policy.apiVersion" .>: error calling include: template: no template "common.capabilities.policy.apiVersion" associated with template "gotpl"

I believe this common.capabilities.policy.apiVersion should be define in _helpers.tpl or separate file _capabilities.tpl or in chart.yaml as dependence but it doesn't. Kindly ask if someone can have a look?

dhaugli commented 6 months ago

We had the same issue, we found that setting replicacount to more than 1 ie: 2,3 and so on. Will give you this issue. Since this is just the operator and not vault itself. Set it to 1 should fix your issue.

adrianmoisey commented 4 months ago

Ping.

csatib02 commented 1 month ago

Fixed by: https://github.com/bank-vaults/vault-operator/pull/527