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 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 (*Synchronizer) Sync ¶
func (in *Synchronizer) Sync(ctx context.Context, msg google.PubSubMessage) error
Click to show internal directories.
Click to hide internal directories.