Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TLS related file name for etcd EtcdTLSAssetDir = "/etc/vault/storage/etcd/tls/" EtcdClientCaName = "ca.crt" EtcdClientCertName = "client.crt" EtcdClientKeyName = "client.key" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
func (*Options) Apply ¶
func (o *Options) Apply(pt *core.PodTemplateSpec) error
Apply will do: - If TLSSecretName is provided, then add volume for etcd tls - If CredentialSecretName is provided, then set environment variable
func (*Options) GetStorageConfig ¶
vault doc: https://www.vaultproject.io/docs/configuration/storage/etcd.html
Note: - Secret `TLSSecretName` mounted in `EtcdTLSAssetDir` - Secret `CredentialSecret` will be used as environment variable
GetStorageConfig creates etcd storage config from EtcdSpec
Click to show internal directories.
Click to hide internal directories.