Documentation ¶
Index ¶
- Constants
- func AreAnnotationsUsingSecrets(annotations map[string]string, secrets map[string]bool) bool
- func AreContainersUsingSecrets(containers []corev1.Container, secrets map[string]bool) bool
- func AreVolumesUsingSecrets(volumes []corev1.Volume, secrets map[string]bool) 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 IsDeploymentUsingSecrets(deployment *appsv1.Deployment, secrets map[string]bool) bool
- func IsValidClientUUID(uuid string) bool
- func ParseVaultAndItemFromPath(path string) (string, string, error)
- type SecretUpdateHandler
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 AreVolumesUsingSecrets ¶
func FilterAnnotations ¶
func IsDeploymentUsingSecrets ¶
func IsDeploymentUsingSecrets(deployment *appsv1.Deployment, secrets map[string]bool) bool
func IsValidClientUUID ¶ added in v0.0.2
IsValidClientUUID returns true if the given client uuid is valid.
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
Click to show internal directories.
Click to hide internal directories.