MCPcopy Index your code
hub / github.com/bank-vaults/vault-operator

github.com/bank-vaults/vault-operator @v1.24.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.24.0 ↗ · + Follow
359 symbols 923 edges 40 files 211 documented · 59%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Vault Operator

GitHub Workflow Status OpenSSF Scorecard OpenSSF Best Practices Artifact Hub

Kubernetes operator for Hashicorp Vault.

Documentation

The official documentation for the operator is available at https://bank-vaults.dev.

Version compatibility matrix

Please see VERSIONS.md for version compatibility.

Development

Install Go on your computer then run make deps to install the rest of the dependencies.

Make sure Docker is installed with Compose and Buildx.

Fetch required tools:

make deps

Run project dependencies:

make up

Run the operator:

make run

Run the test suite:

make test
make test-acceptance

Run linters:

make lint # pass -j option to run them in parallel

Some linter violations can automatically be fixed:

make fmt

Build artifacts locally:

make artifacts

Once you are done, you can tear down project dependencies:

make down

License

The project is licensed under the Apache 2.0 License.

Extension points exported contracts — how you extend this code

VaultsGetter (Interface)
VaultsGetter has a method to return a VaultInterface. A group's client should implement this interface. [4 implementers]
pkg/client/clientset/versioned/typed/vault/v1alpha1/vault.go
GenericInformer (Interface)
GenericInformer is type of SharedIndexInformer which will locate and delegate to other sharedInformers based on type [2 …
pkg/client/informers/externalversions/generic.go
VaultInformer (Interface)
VaultInformer provides access to a shared informer and lister for Vaults. [2 implementers]
pkg/client/informers/externalversions/vault/v1alpha1/vault.go
SharedInformerFactory (Interface)
SharedInformerFactory provides shared informers for resources in all known API group versions. It is typically used lik [1 …
pkg/client/informers/externalversions/factory.go
SharedInformerFactory (Interface)
SharedInformerFactory a small interface to allow for adding an informer without an import cycle [1 implementers]
pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go

Core symbols most depended-on inside this repo

To
called by 20
pkg/utils/utils.go
LabelsForVault
called by 15
pkg/apis/vault/v1alpha1/vault_types.go
createOrUpdateObject
called by 12
pkg/controller/vault/vault_controller.go
IsTLSDisabled
called by 10
pkg/apis/vault/v1alpha1/vault_types.go
List
called by 8
pkg/client/listers/vault/v1alpha1/vault.go
Get
called by 7
pkg/client/listers/vault/v1alpha1/vault.go
deploymentForConfigurer
called by 7
pkg/controller/vault/vault_controller.go
GetAPIPortName
called by 7
pkg/apis/vault/v1alpha1/vault_types.go

Shape

Method 157
Function 149
Struct 35
Interface 15
FuncType 3

Languages

Go100%

Modules by API surface

pkg/controller/vault/vault_controller.go82 symbols
pkg/apis/vault/v1alpha1/vault_types.go66 symbols
pkg/apis/vault/v1alpha1/zz_generated.deepcopy.go42 symbols
pkg/client/informers/externalversions/factory.go27 symbols
test/acceptance_test.go15 symbols
pkg/client/clientset/versioned/typed/vault/v1alpha1/vault.go13 symbols
pkg/client/listers/vault/v1alpha1/vault.go10 symbols
pkg/client/informers/externalversions/vault/v1alpha1/vault.go10 symbols
pkg/client/clientset/versioned/typed/vault/v1alpha1/vault_client.go10 symbols
pkg/client/clientset/versioned/clientset.go10 symbols
pkg/controller/vault/vault_controller_test.go9 symbols
pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go7 symbols

Datastores touched

vaultDatabase · 1 repos

For agents

$ claude mcp add vault-operator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact