Documentation ¶
Index ¶
- Constants
- func AppendAnnotationUpdatedSecret(annotations map[string]string, secrets map[string]*corev1.Secret, ...) map[string]*corev1.Secret
- func AppendUpdatedContainerSecrets(containers []corev1.Container, secrets map[string]*corev1.Secret, ...) map[string]*corev1.Secret
- func AppendUpdatedVolumeSecrets(volumes []corev1.Volume, secrets map[string]*corev1.Secret, ...) map[string]*corev1.Secret
- func AreAnnotationsUsingSecrets(annotations map[string]string, secrets map[string]*corev1.Secret) bool
- func AreContainersUsingSecrets(containers []corev1.Container, secrets map[string]*corev1.Secret) bool
- func AreVolumesUsingSecrets(volumes []corev1.Volume, secrets map[string]*corev1.Secret) bool
- func FilterAnnotations(annotations map[string]string, regex *regexp.Regexp) map[string]string
- func GetAnnotationsForDeployment(deployment *appsv1.Deployment, regex *regexp.Regexp) (map[string]string, bool)
- func GetOnePasswordItemByPath(opConnectClient connect.Client, path string) (*onepassword.Item, error)
- func GetUpdatedSecretsForDeployment(deployment *appsv1.Deployment, secrets map[string]*corev1.Secret) map[string]*corev1.Secret
- func IsDeploymentUsingSecrets(deployment *appsv1.Deployment, secrets map[string]*corev1.Secret) bool
- func IsValidClientUUID(uuid string) bool
- func IsVolumeUsingSecret(volume corev1.Volume, secrets map[string]*corev1.Secret) *corev1.Secret
- func IsVolumeUsingSecretProjection(volume corev1.Volume, secrets map[string]*corev1.Secret) *corev1.Secret
- func ParseVaultAndItemFromPath(path string) (string, string, error)
- func SetupConnect(kubeClient client.Client, deploymentNamespace string) error
- type SecretUpdateHandler
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 AppendUpdatedContainerSecrets ¶ added in v1.0.0
func AppendUpdatedVolumeSecrets ¶ added in v1.0.0
func AreVolumesUsingSecrets ¶
func FilterAnnotations ¶
func GetUpdatedSecretsForDeployment ¶ added in v1.0.0
func IsValidClientUUID ¶ added in v0.0.2
IsValidClientUUID returns true if the given client uuid is valid.
func IsVolumeUsingSecret ¶ added in v1.8.0
func IsVolumeUsingSecretProjection ¶ added in v1.8.0
func ParseVaultAndItemFromPath ¶ added in v0.0.2
Types ¶
type SecretUpdateHandler ¶
type SecretUpdateHandler struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*SecretUpdateHandler) UpdateKubernetesSecretsTask ¶
func (h *SecretUpdateHandler) UpdateKubernetesSecretsTask() error
Click to show internal directories.
Click to hide internal directories.