Versions in this module Expand all Collapse all v0 v0.0.2 Mar 2, 2021 v0.0.1 Sep 25, 2020 Changes in this version + const VersionSecretKind + var AnnotationSourceDescription = fmt.Sprintf("%s/source-description", names.GroupName) + var LabelAPIVersion = fmt.Sprintf("%s/v1alpha1", names.GroupName) + var LabelSecretKind = fmt.Sprintf("%s/secret-kind", names.GroupName) + var LabelVersion = fmt.Sprintf("%s/secret-version", names.GroupName) + func ContainsOutdatedSecretVersion(names []string, name string) bool + func ContainsSecretName(names []string, name string) bool + func GetConfigNamesFromSpec(spec corev1.PodSpec) (map[string]struct{}, map[string]struct{}) + func IsInitialVersion(secret corev1.Secret) bool + func IsSecretIdenticalError(e error) bool + func IsVersionedSecret(secret corev1.Secret) bool + func IsVersionedSecretName(name string) bool + func NamePrefix(name string) string + func Version(secret corev1.Secret) (int, error) + func VersionFromName(name string) (int, error) + func VersionedName(namePrefix string, version int) string + type SecretIdenticalError struct + func (e SecretIdenticalError) Error() string + type VersionedSecretImpl struct + func NewClientsetVersionedSecretStore(clientset kubernetes.Interface) VersionedSecretImpl + func NewVersionedSecretStore(client client.Client) VersionedSecretImpl + func (p VersionedSecretImpl) Create(ctx context.Context, namespace string, ownerName string, ownerID types.UID, ...) error + func (p VersionedSecretImpl) Decorate(ctx context.Context, namespace string, secretName string, key string, ...) error + func (p VersionedSecretImpl) Delete(ctx context.Context, namespace string, secretName string) error + func (p VersionedSecretImpl) Get(ctx context.Context, namespace string, deploymentName string, version int) (*corev1.Secret, error) + func (p VersionedSecretImpl) Latest(ctx context.Context, namespace string, secretName string) (*corev1.Secret, error) + func (p VersionedSecretImpl) List(ctx context.Context, namespace string, secretName string) ([]corev1.Secret, error) + func (p VersionedSecretImpl) SetSecretReferences(ctx context.Context, namespace string, podSpec *corev1.PodSpec) error + func (p VersionedSecretImpl) VersionCount(ctx context.Context, namespace string, secretName string) (int, error) + type VersionedSecretStore interface + Create func(ctx context.Context, namespace string, ownerName string, ownerID types.UID, ...) error + Decorate func(ctx context.Context, namespace string, secretName string, key string, ...) error + Delete func(ctx context.Context, namespace string, secretName string) error + Get func(ctx context.Context, namespace string, secretName string, version int) (*corev1.Secret, error) + Latest func(ctx context.Context, namespace string, secretName string) (*corev1.Secret, error) + List func(ctx context.Context, namespace string, secretName string) ([]corev1.Secret, error) + SetSecretReferences func(ctx context.Context, namespace string, podSpec *corev1.PodSpec) error + VersionCount func(ctx context.Context, namespace string, secretName string) (int, error)