Documentation
¶
Index ¶
- Constants
- func GenerateBindingName(kind, name string) string
- func GenerateBindingReferenceKey(namespace, name string) string
- func GenerateDerivedServiceName(serviceName string) string
- func GenerateEndpointSliceName(endpointSliceName string, cluster string) string
- func GenerateEstimatorDeploymentName(clusterName string) string
- func GenerateEstimatorServiceName(estimatorServicePrefix, clusterName string) string
- func GenerateExecutionSpaceName(clusterName string) string
- func GenerateImpersonationSecretName(clusterName string) string
- func GeneratePolicyName(namespace, name, gvk string) string
- func GenerateRoleName(serviceAccountName string) string
- func GenerateServiceAccountName(clusterName string) string
- func GenerateWorkName(kind, name, namespace string) string
- func GetClusterName(executionSpaceName string) (string, error)
- func IsReservedNamespace(namespace string) bool
- func NamespacedKey(namespace, name string) string
Constants ¶
const ( // NamespaceKarmadaSystem is reserved namespace NamespaceKarmadaSystem = "karmada-system" // NamespaceKarmadaCluster is reserved namespace NamespaceKarmadaCluster = "karmada-cluster" // NamespaceDefault is reserved namespace NamespaceDefault = "default" )
const ( // KarmadaDeschedulerComponentName is the name of the Karmada Descheduler component. KarmadaDeschedulerComponentName = "karmada-descheduler" // KarmadaSchedulerEstimatorComponentName is the name of the Karmada Scheduler Estimator component. KarmadaSchedulerEstimatorComponentName = "karmada-scheduler-estimator" // KarmadaSearchComponentName is the name of the Karmada Search addon. KarmadaSearchComponentName = "karmada-search" // KarmadaMetricsAdapterComponentName is the name of the Karmada Metrics Adapter component. KarmadaMetricsAdapterComponentName = "karmada-metrics-adapter" // KarmadaAggregatedAPIServerComponentName is the name of the Karmada Aggregated API Server component. KarmadaAggregatedAPIServerComponentName = "karmada-aggregated-apiserver" // KarmadaAgentComponentName is the name of the Karmada Agent component. KarmadaAgentComponentName = "karmada-agent" // KarmadaSchedulerComponentName is the name of the Karmada Scheduler component. KarmadaSchedulerComponentName = "karmada-scheduler" // KarmadaWebhookComponentName is the name of the Karmada Webhook component. KarmadaWebhookComponentName = "karmada-webhook" // KarmadaControllerManagerComponentName is the name of the Karmada Controller Manager component. KarmadaControllerManagerComponentName = "karmada-controller-manager" // KubeControllerManagerComponentName is the name of the Kube Controller Manager component. KubeControllerManagerComponentName = "kube-controller-manager" )
The following constants define standard names for various Karmada components. These names are used consistently across the project to ensure uniformity and clarity. Using these constants helps avoid typos and ensures that all components are referenced with the correct names.
const ExecutionSpacePrefix = "karmada-es-"
ExecutionSpacePrefix is the prefix of execution space
Variables ¶
This section is empty.
Functions ¶
func GenerateBindingName ¶
GenerateBindingName will generate binding name by kind and name
func GenerateBindingReferenceKey ¶ added in v0.10.0
GenerateBindingReferenceKey will generate the key of binding object with the hash of its namespace and name.
func GenerateDerivedServiceName ¶ added in v0.7.0
GenerateDerivedServiceName generates the service name derived from ServiceImport.
func GenerateEndpointSliceName ¶ added in v0.7.0
GenerateEndpointSliceName generates the name of collected EndpointSlice.
func GenerateEstimatorDeploymentName ¶ added in v1.3.0
GenerateEstimatorDeploymentName generates the gRPC scheduler estimator deployment name which belongs to a cluster.
func GenerateEstimatorServiceName ¶ added in v0.9.0
GenerateEstimatorServiceName generates the gRPC scheduler estimator service name which belongs to a cluster.
func GenerateExecutionSpaceName ¶
GenerateExecutionSpaceName generates execution space name for the given member cluster
func GenerateImpersonationSecretName ¶ added in v1.0.0
GenerateImpersonationSecretName generates the secret name of impersonation secret.
func GeneratePolicyName ¶ added in v1.2.1
GeneratePolicyName generates the propagationPolicy name
func GenerateRoleName ¶
GenerateRoleName generates the name of a Role or ClusterRole.
func GenerateServiceAccountName ¶
GenerateServiceAccountName generates the name of a ServiceAccount.
func GenerateWorkName ¶ added in v0.6.0
GenerateWorkName will generate work name by its name and the hash of its namespace, kind and name.
func GetClusterName ¶ added in v0.3.0
GetClusterName returns member cluster name for the given execution space
func IsReservedNamespace ¶ added in v1.0.0
IsReservedNamespace return whether it is a reserved namespace
func NamespacedKey ¶ added in v1.7.0
NamespacedKey generates key with namespace and name.
Types ¶
This section is empty.