onepassword

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnepasswordPrefix  = "onepasswordoperator"
	ItemPathAnnotation = OnepasswordPrefix + "/item-path"
	NameAnnotation     = OnepasswordPrefix + "/item-name"
	VersionAnnotation  = OnepasswordPrefix + "/item-version"
	RestartAnnotation  = OnepasswordPrefix + "/lastRestarted"
)
View Source
const UUIDLength = 26

UUIDLength defines the required length of UUIDs

Variables

This section is empty.

Functions

func AreAnnotationsUsingSecrets

func AreAnnotationsUsingSecrets(annotations map[string]string, secrets map[string]bool) bool

func AreContainersUsingSecrets

func AreContainersUsingSecrets(containers []corev1.Container, secrets map[string]bool) bool

func AreVolumesUsingSecrets

func AreVolumesUsingSecrets(volumes []corev1.Volume, secrets map[string]bool) bool

func FilterAnnotations

func FilterAnnotations(annotations map[string]string, regex *regexp.Regexp) map[string]string

func GetAnnotationsForDeployment

func GetAnnotationsForDeployment(deployment *appsv1.Deployment, regex *regexp.Regexp) (map[string]string, bool)

func GetOnePasswordItemByPath

func GetOnePasswordItemByPath(opConnectClient connect.Client, path string) (*onepassword.Item, error)

func IsDeploymentUsingSecrets

func IsDeploymentUsingSecrets(deployment *appsv1.Deployment, secrets map[string]bool) bool

func IsValidClientUUID added in v0.0.2

func IsValidClientUUID(uuid string) bool

IsValidClientUUID returns true if the given client uuid is valid.

func ParseVaultAndItemFromPath added in v0.0.2

func ParseVaultAndItemFromPath(path string) (string, string, error)

Types

type SecretUpdateHandler

type SecretUpdateHandler struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(kubernetesClient client.Client, opConnectClient connect.Client) *SecretUpdateHandler

func (*SecretUpdateHandler) UpdateKubernetesSecretsTask

func (h *SecretUpdateHandler) UpdateKubernetesSecretsTask() error

Jump to

Keyboard shortcuts

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