synchronizer

package
v0.0.0-...-d2fb36c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaticSecretDataKey    = "secret"
	MatchingSecretLabelKey = "sync"
	SecretContainsEnvKey   = "env"
	ProjectIDAnnotation    = "cnrm.cloud.google.com/project-id"
)

Variables

This section is empty.

Functions

func SecretPayload

func SecretPayload(metadata *secretmanagerpb.Secret, raw []byte) (map[string][]byte, error)

func ToSecretData

func ToSecretData(msg google.PubSubMessage, namespace string, payload map[string][]byte) kubernetes.SecretData

Types

type Synchronizer

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

func NewSynchronizer

func NewSynchronizer(logger *log.Entry, secretManagerClient google.SecretManagerClient, clientSet kubernetes2.Interface, projectNamespaceCache map[string]string) *Synchronizer

func (*Synchronizer) ManagedSecrets

func (in *Synchronizer) ManagedSecrets(ctx context.Context) ([]corev1.Secret, error)

func (*Synchronizer) Sync

Jump to

Keyboard shortcuts

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