replicate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

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

Jump to

Keyboard shortcuts

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