k8s

package module
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplySecret

func ApplySecret(vaultSecret *Secret) error

ApplySecret takes a Vault secret and k8s namespace and creates the k8s secret based on the data

Types

type Client

type Client struct {
	Clientset kubernetes.Interface
}

func (Client) ApplySecret

func (c Client) ApplySecret(ctx context.Context, secret *apiv1.Secret) error

type Secret

type Secret struct {
	Secrets   map[string]string
	Namespace string
}

Secret holds a map of the secrets that need to be created in Kubernetes

Jump to

Keyboard shortcuts

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