Documentation ¶
Index ¶
- Constants
- func AsOwner(v *api.VaultServer) metav1.OwnerReference
- func EnsureOwnerRefToObject(o metav1.Object, r metav1.OwnerReference)
- func GetListenerConfig() string
- func IsOwnerRefAlreadyExists(o metav1.Object, r metav1.OwnerReference) bool
- func NewConfigWithDefaultParams() string
- func NewVaultClient(hostname string, port string, tlsConfig *vaultapi.TLSConfig) (*vaultapi.Client, error)
- func PodDNSName(p core.Pod) string
- func VaultConfigFromAppBinding(app *appcat.AppBinding) (*vaultapi.Config, error)
- func VaultServiceURL(name, namespace string, port int) string
Constants ¶
View Source
const ( VaultContainerName = "vault" VaultUnsealerContainerName = "vault-unsealer" VaultInitContainerName = "vault-config" VaultExporterContainerName = "vault-exporter" )
View Source
const ( // VaultConfigFile is the file that vault pod uses to read config from VaultConfigFile = "/etc/vault/config/vault.hcl" // VaultTLSAssetDir is the dir where vault's server TLS sits VaultTLSAssetDir = "/etc/vault/tls/" )
Variables ¶
This section is empty.
Functions ¶
func AsOwner ¶
func AsOwner(v *api.VaultServer) metav1.OwnerReference
AsOwner returns an owner reference set as the vault cluster CR
func EnsureOwnerRefToObject ¶
func EnsureOwnerRefToObject(o metav1.Object, r metav1.OwnerReference)
EnsureOwnerRefToObject appends the desired OwnerReference to the object
func IsOwnerRefAlreadyExists ¶
func IsOwnerRefAlreadyExists(o metav1.Object, r metav1.OwnerReference) bool
IsOwnerRefAlreadyExists checks whether owner ref already exists
func NewConfigWithDefaultParams ¶
func NewConfigWithDefaultParams() string
NewConfigWithDefaultParams appends to given config data some default params: - tcp listener
func NewVaultClient ¶
func PodDNSName ¶
PodDNSName constructs the dns name on which a pod can be addressed
func VaultConfigFromAppBinding ¶
func VaultConfigFromAppBinding(app *appcat.AppBinding) (*vaultapi.Config, error)
func VaultServiceURL ¶
VaultServiceURL returns the DNS record of the vault service in the given namespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.