Documentation ¶
Index ¶
- Variables
- type VKKube
- func (k *VKKube) DeleteCM(name string, namespace string) error
- func (k *VKKube) DeleteOld(mounts *VKVaultMounts) error
- func (k *VKKube) DeleteSecret(name string, namespace string) error
- func (k *VKKube) IsManaged(name string, secretType string, namespace string) bool
- func (k *VKKube) SetCM(name string, namespace string, kv map[string]string) error
- func (k *VKKube) SetSecret(name string, namespace string, kv map[string]string) error
- type VKVault
- type VKVaultMount
- type VKVaultMounts
- type VKVaultSecret
- type VKVaultSecrets
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidVaultMount = errors.New("vault mount is invalid") ErrInvalidSecretType = errors.New("vault secret is invalid type") )
Functions ¶
This section is empty.
Types ¶
type VKKube ¶
type VKKube struct { Client *kubernetes.Clientset Logger *logrus.Logger }
VKKube is a wrapper around Kube client
func NewVKKubeClient ¶
NewVKKubeClient returns a new VKKube client Reads from ~/.kube/config and falls back to in-cluster config
func (*VKKube) DeleteOld ¶
func (k *VKKube) DeleteOld(mounts *VKVaultMounts) error
DeleteOld deletes any CM's/secrets that are in kube but not Vault
func (*VKKube) DeleteSecret ¶
DeleteSecret delete's a given Secret
type VKVault ¶
VKVault is a wrapper around Vault
func NewVKVaultClient ¶
NewVKVaultClient returns a new VKVault client
type VKVaultMount ¶
type VKVaultMount struct { MountPath string MountPointer *vault.MountOutput Namespace string SecretTypes string Secrets *VKVaultSecrets }
VKVaultMount is a representation of a mount we care about
type VKVaultSecret ¶
VKVaultSecret is a kv secret stored in vault
type VKVaultSecrets ¶
type VKVaultSecrets []VKVaultSecret
VKVaultSecrets is a slice of VKVaultSecret's
Click to show internal directories.
Click to hide internal directories.