etcd

package
v0.0.0-...-85ffd96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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

type Options struct {
	api.EtcdSpec
}

func NewOptions

func NewOptions(s api.EtcdSpec) (*Options, error)

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

func (o *Options) GetStorageConfig() (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL