VaultCredentials#
- pydantic model phalanx.models.vault.VaultCredentials#
Credentials used for Vault access.
Can hold either AppRole credentials or a simple token, but always holds one or the other.
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "VaultCredentials", "description": "Credentials used for Vault access.\n\nCan hold either AppRole credentials or a simple token, but always holds\none or the other.", "type": "object", "properties": {} }
- abstract to_kubernetes_secret(name)#
Format the data as a secret for vault-secrets-operator.
- Parameters:
name (
str
) – Name of the secret to create.- Returns:
YAML creating a Kubernetes
Secret
resource for Vault Secrets Operator, suitable for passing to kubectl apply.- Return type: