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 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 }
Click to show internal directories.
Click to hide internal directories.