syncer

package
v0.13.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigSyncKey      = "kubed.appscode.com/sync"
	ConfigOriginKey    = "kubed.appscode.com/origin"
	ConfigSyncContexts = "kubed.appscode.com/sync-contexts"

	OriginNameLabelKey      = "kubed.appscode.com/origin.name"
	OriginNamespaceLabelKey = "kubed.appscode.com/origin.namespace"
	OriginClusterLabelKey   = "kubed.appscode.com/origin.cluster"
)

Variables

This section is empty.

Functions

func NamespacesForSelector

func NamespacesForSelector(kc kubernetes.Interface, selector string) (sets.String, error)

Types

type ConfigSyncer

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

func New

func (*ConfigSyncer) ConfigMapHandler

func (s *ConfigSyncer) ConfigMapHandler() cache.ResourceEventHandler

func (*ConfigSyncer) Configure

func (s *ConfigSyncer) Configure(clusterName string, kubeconfigFile string) error

func (*ConfigSyncer) NamespaceHandler

func (s *ConfigSyncer) NamespaceHandler() cache.ResourceEventHandler

func (*ConfigSyncer) SecretHandler

func (s *ConfigSyncer) SecretHandler() cache.ResourceEventHandler

func (*ConfigSyncer) SyncConfigMap

func (s *ConfigSyncer) SyncConfigMap(src *core.ConfigMap) error

func (*ConfigSyncer) SyncDeletedConfigMap

func (s *ConfigSyncer) SyncDeletedConfigMap(src *core.ConfigMap) error

source deleted, delete that were previously added

func (*ConfigSyncer) SyncDeletedSecret

func (s *ConfigSyncer) SyncDeletedSecret(src *core.Secret) error

source deleted, delete that were previously added

func (*ConfigSyncer) SyncIntoNamespace

func (s *ConfigSyncer) SyncIntoNamespace(namespace string) error

func (*ConfigSyncer) SyncSecret

func (s *ConfigSyncer) SyncSecret(src *core.Secret) error

type SyncOptions

type SyncOptions struct {
	NamespaceSelector *string // if nil, delete from cluster
	Contexts          sets.String
}

func GetSyncOptions

func GetSyncOptions(annotations map[string]string) SyncOptions

Jump to

Keyboard shortcuts

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