util

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: 12 Imported by: 0

Documentation

Index

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

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 GetListenerConfig

func GetListenerConfig() string

ListenerConfig creates tcp listener config

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 NewVaultClient(hostname string, port string, tlsConfig *vaultapi.TLSConfig) (*vaultapi.Client, error)

func PodDNSName

func PodDNSName(p core.Pod) string

PodDNSName constructs the dns name on which a pod can be addressed

func VaultConfigFromAppBinding

func VaultConfigFromAppBinding(app *appcat.AppBinding) (*vaultapi.Config, error)

func VaultServiceURL

func VaultServiceURL(name, namespace string, port int) string

VaultServiceURL returns the DNS record of the vault service in the given namespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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