onepassword

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnepasswordPrefix            = "operator.1password.io"
	ItemPathAnnotation           = OnepasswordPrefix + "/item-path"
	NameAnnotation               = OnepasswordPrefix + "/item-name"
	VersionAnnotation            = OnepasswordPrefix + "/item-version"
	RestartAnnotation            = OnepasswordPrefix + "/last-restarted"
	RestartDeploymentsAnnotation = OnepasswordPrefix + "/auto-restart"
)
View Source
const UUIDLength = 26

UUIDLength defines the required length of UUIDs

Variables

This section is empty.

Functions

func AppendAnnotationUpdatedSecret added in v1.0.0

func AppendAnnotationUpdatedSecret(annotations map[string]string, secrets map[string]*corev1.Secret, updatedDeploymentSecrets map[string]*corev1.Secret) map[string]*corev1.Secret

func AppendUpdatedContainerSecrets added in v1.0.0

func AppendUpdatedContainerSecrets(containers []corev1.Container, secrets map[string]*corev1.Secret, updatedDeploymentSecrets map[string]*corev1.Secret) map[string]*corev1.Secret

func AppendUpdatedVolumeSecrets added in v1.0.0

func AppendUpdatedVolumeSecrets(volumes []corev1.Volume, secrets map[string]*corev1.Secret, updatedDeploymentSecrets map[string]*corev1.Secret) map[string]*corev1.Secret

func AreAnnotationsUsingSecrets

func AreAnnotationsUsingSecrets(annotations map[string]string, secrets map[string]*corev1.Secret) bool

func AreContainersUsingSecrets

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

func AreVolumesUsingSecrets

func AreVolumesUsingSecrets(volumes []corev1.Volume, secrets map[string]*corev1.Secret) 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 GetUpdatedSecretsForDeployment added in v1.0.0

func GetUpdatedSecretsForDeployment(deployment *appsv1.Deployment, secrets map[string]*corev1.Secret) map[string]*corev1.Secret

func IsDeploymentUsingSecrets

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

func IsValidClientUUID added in v0.0.2

func IsValidClientUUID(uuid string) bool

IsValidClientUUID returns true if the given client uuid is valid.

func IsVolumeUsingSecret added in v1.8.0

func IsVolumeUsingSecret(volume corev1.Volume, secrets map[string]*corev1.Secret) *corev1.Secret

func IsVolumeUsingSecretProjection added in v1.8.0

func IsVolumeUsingSecretProjection(volume corev1.Volume, secrets map[string]*corev1.Secret) *corev1.Secret

func ParseVaultAndItemFromPath added in v0.0.2

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

func SetupConnect added in v1.0.0

func SetupConnect(kubeClient client.Client, deploymentNamespace string) error

Types

type SecretUpdateHandler

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

func NewManager

func NewManager(kubernetesClient client.Client, opConnectClient connect.Client, shouldAutoRestartDeploymentsGlobal bool) *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