Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AutoUpdateAnnotation is the name of an annotation which prevents reconciliation if set to "false" AutoUpdateAnnotation = "clusternet.io/autoupdate" // FeedProtectionAnnotation passes detailed message on protecting current object as a feed FeedProtectionAnnotation = "apps.clusternet.io/feed-protection" )
annotations
View Source
const ( // NamePrefixForClusternetObjects is a prefix name for generating Clusternet related objects for child cluster, // such as namespace, sa, etc NamePrefixForClusternetObjects = "clusternet-" // ChildClusterSecretName is the secret that stores credentials of child cluster, which will be used by deployer // in clusternet-hub ChildClusterSecretName = "child-cluster-deployer" // ClusterAPIServerURLKey denotes the apiserver address ClusterAPIServerURLKey = "apiserver-advertise-url" // ClusternetSystemNamespace is the system namespace where we place system components. ClusternetSystemNamespace = "clusternet-system" // ClusternetAppSA is the service account where we store credentials to deploy resources ClusternetAppSA = "clusternet-app-deployer" )
View Source
const ( AppFinalizer string = "apps.clusternet.io/finalizer" FeedProtectionFinalizer string = "apps.clusternet.io/feed-protection" )
These are internal finalizer values to Clusternet, must be qualified name.
View Source
const ( // DefaultResync means the default resync time DefaultResync = time.Hour * 12 // DefaultRetryPeriod means the default retry period DefaultRetryPeriod = 5 * time.Second )
View Source
const ( ClusterRegisteredByLabel = "clusters.clusternet.io/registered-by" ClusterIDLabel = "clusters.clusternet.io/cluster-id" ClusterNameLabel = "clusters.clusternet.io/cluster-name" ClusterBootstrappingLabel = "clusters.clusternet.io/bootstrapping" ObjectCreatedByLabel = "clusternet.io/created-by" // the source info where this object belongs to or controlled by ConfigGroupLabel = "apps.clusternet.io/config.group" ConfigVersionLabel = "apps.clusternet.io/config.version" ConfigKindLabel = "apps.clusternet.io/config.kind" ConfigNameLabel = "apps.clusternet.io/config.name" ConfigNamespaceLabel = "apps.clusternet.io/config.namespace" ConfigUIDLabel = "apps.clusternet.io/config.uid" ConfigSubscriptionUIDLabel = "apps.clusternet.io/subs.uid" ConfigSubscriptionNameLabel = "apps.clusternet.io/subs.name" ConfigSubscriptionNamespaceLabel = "apps.clusternet.io/subs.namespace" )
label key
View Source
const ( CredentialsAuto = "credentials-auto" RBACDefaults = "rbac-defaults" ClusternetAgentName = "clusternet-agent" ClusternetHubName = "clusternet-hub" )
label value
View Source
const (
Category = "clusternet.shadow"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.