Documentation
¶
Index ¶
- Constants
- Variables
- func Add(ctx context.Context, mgr manager.Manager, config *Config, ...) error
- func AddPodController(ctx context.Context, mgr manager.Manager, maxConcurrentReconciles int) error
- func AddServiceController(ctx context.Context, mgr manager.Manager, maxConcurrentReconciles int) error
- func AddStatefulSetController(ctx context.Context, mgr manager.Manager, maxConcurrentReconciles int) error
- func TokenSecretName(clusterName string) string
- func TokenSecretObj(token, name, namespace string) v1.Secret
- type ClusterReconciler
- type Config
- type PodReconciler
- type ServiceReconciler
- type StatefulSetReconciler
Constants ¶
View Source
const ( // Condition Types ConditionReady = "Ready" // Condition Reasons ReasonValidationFailed = "ValidationFailed" ReasonProvisioning = "Provisioning" ReasonProvisioned = "Provisioned" ReasonProvisioningFailed = "ProvisioningFailed" ReasonTerminating = "Terminating" )
View Source
const (
ClusterInvalidName = "system"
)
Variables ¶
View Source
var ( ErrClusterValidation = errors.New("cluster validation error") ErrCustomCACertSecretMissing = errors.New("custom CA certificate secret is missing") )
Functions ¶
func Add ¶
func Add(ctx context.Context, mgr manager.Manager, config *Config, maxConcurrentReconciles int, portAllocator *agent.PortAllocator, eventRecorder record.EventRecorder) error
Add adds a new controller to the manager
func AddPodController ¶ added in v0.3.0
AddPodController adds a new controller for Pods to the manager. It will reconcile the Pods of the Host Cluster with the one of the Virtual Cluster.
func AddServiceController ¶ added in v1.0.0
func AddServiceController(ctx context.Context, mgr manager.Manager, maxConcurrentReconciles int) error
Add adds a new controller to the manager
func AddStatefulSetController ¶ added in v1.0.0
func AddStatefulSetController(ctx context.Context, mgr manager.Manager, maxConcurrentReconciles int) error
Add adds a new controller to the manager
func TokenSecretName ¶ added in v0.3.0
func TokenSecretObj ¶ added in v0.3.0
Types ¶
type ClusterReconciler ¶
type ClusterReconciler struct {
DiscoveryClient *discovery.DiscoveryClient
Client client.Client
Scheme *runtime.Scheme
PortAllocator *agent.PortAllocator
record.EventRecorder
Config
}
type PodReconciler ¶ added in v0.3.0
type PodReconciler struct {
Client ctrlruntimeclient.Client
Scheme *runtime.Scheme
}
type ServiceReconciler ¶ added in v1.0.0
type ServiceReconciler struct {
HostClient ctrlruntimeclient.Client
}
type StatefulSetReconciler ¶ added in v1.0.0
type StatefulSetReconciler struct {
Client ctrlruntimeclient.Client
Scheme *runtime.Scheme
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.