Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApplicationNamespaceSelectorLabelKey = "kubeslice.io/slice" NodeTypeSelectorLabelKey = "kubeslice.io/node-type" PodTypeSelectorLabelKey = "kubeslice.io/pod-type" TopologyKeySelector = "topology.kubeslice.io/gateway" )
Variables ¶
View Source
var ( ControlPlaneNamespace = "kubeslice-system" HubSecretSuffix = "-kubernetes-dashboard" KubeSliceDashboardSA = "kubeslice-kubernetes-dashboard" ProjectNamespace = os.Getenv("HUB_PROJECT_NAMESPACE") HubEndpoint = os.Getenv("HUB_HOST_ENDPOINT") HubTokenFile = utils.GetEnvOrDefault("HUB_TOKEN_FILE", "/var/run/secrets/kubernetes.io/hub-serviceaccount/token") HubCAFile = utils.GetEnvOrDefault("HUB_CA_FILE", "/var/run/secrets/kubernetes.io/hub-serviceaccount/ca.crt") ClusterName = os.Getenv("CLUSTER_NAME") )
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { client.Client WorkerClient client.Client ControllerClient client.Client EventRecorder *events.EventRecorder WorkerRecyclerClient WorkerRecyclerClientProvider }
func NewReconciler ¶
func NewReconciler(mc client.Client, hc client.Client, er *events.EventRecorder, mf metrics.MetricsFactory, workerRecyclerClient WorkerRecyclerClientProvider) *Reconciler
func (*Reconciler) InjectClient ¶
func (r *Reconciler) InjectClient(c client.Client) error
type WorkerRecyclerClientProvider ¶
type WorkerRecyclerClientProvider interface { // triggers FSM to recycle gateway pair by passing server gateway pod // numberOfGwSvc should be equal to number of new deploy that should come up TriggerFSM(sliceGw *kubeslicev1beta1.SliceGateway, slice *kubeslicev1beta1.Slice, serverID, clientID, controllerName string) error }
Click to show internal directories.
Click to hide internal directories.