Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReplicateFromAnnotation = "replicator.v1.mittwald.de/replicate-from" ReplicatedAtAnnotation = "replicator.v1.mittwald.de/replicated-at" ReplicatedFromVersionAnnotation = "replicator.v1.mittwald.de/replicated-from-version" ReplicationAllowed = "replicator.v1.mittwald.de/replication-allowed" ReplicationAllowedNamespaces = "replicator.v1.mittwald.de/replication-allowed-namespaces" )
Annotations that are used to control this controller's behaviour
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONPatchOperation ¶
type JSONPatchOperation struct { Operation string `json:"op"` Path string `json:"path"` Value interface{} `json:"value,omitempty"` }
JSONPatchOperation is a struct that defines PATCH operations on a JSON structure.
type Replicator ¶
type Replicator interface { Run() Synced() bool }
Replicator describes the common interface that the secret and configmap replicators should adhere to
func NewConfigMapReplicator ¶
func NewConfigMapReplicator(client kubernetes.Interface, resyncPeriod time.Duration, allowAll bool) Replicator
NewConfigMapReplicator creates a new config map replicator
func NewSecretReplicator ¶
func NewSecretReplicator(client kubernetes.Interface, resyncPeriod time.Duration, allowAll bool) Replicator
NewSecretReplicator creates a new secret replicator
Click to show internal directories.
Click to hide internal directories.