known

package
v0.0.0-...-b67a8fc Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AppFinalizer            string = "apps.clusternet.io/finalizer"
	FeedProtectionFinalizer string = "apps.clusternet.io/feed-protection"
)

These are internal finalizer values must be qualified name.

View Source
const (
	MetaGeneration      = "/metadata/generation"
	CreationTimestamp   = "/metadata/creationTimestamp"
	ManagedFields       = "/metadata/managedFields"
	MetaUID             = "/metadata/uid"
	MetaSelflink        = "/metadata/selfLink"
	MetaResourceVersion = "/metadata/resourceVersion"

	SectionStatus = "/status"
)

fields should be ignored when compared

View Source
const (
	// DefaultResync means the default resync time
	DefaultResync = time.Hour * 12

	// DefaultRetryPeriod means the default retry period
	DefaultRetryPeriod = 5 * time.Second

	// NoResyncPeriod indicates that informer resync should be delayed as long as possible
	NoResyncPeriod = 0 * time.Second

	// DefaultThreadiness defines default number of threads
	DefaultThreadiness = 10
)
View Source
const (
	HubSecretName          = "hub-syncer"
	ClusterAPIServerURLKey = "apiserver-advertise-url"
)
View Source
const (
	LabelServiceName      = "services.clusternet.io/multi-cluster-service-name"
	LabelServiceNameSpace = "services.clusternet.io/multi-cluster-service-LocalNamespace"
	ObjectCreatedByLabel  = "clusternet.io/created-by"
	LabelClusterID        = "services.clusternet.io/multi-cluster-cluster-ID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentSpecification

type AgentSpecification struct {
	ClusterID      string
	LocalNamespace string
	ShareNamespace string
	HubURL         string
}

type SyncerConfig

type SyncerConfig struct {
	// LocalRestConfig the REST config used to access the local resources to sync.
	LocalRestConfig *rest.Config

	// LocalClient the client used to access local resources to sync. This is optional and is provided for unit testing
	// in lieu of the LocalRestConfig. If not specified, one is created from the LocalRestConfig.
	LocalClient     dynamic.Interface
	LocalNamespace  string
	LocalClusterID  string
	RemoteNamespace string
}

Jump to

Keyboard shortcuts

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