Documentation
¶
Index ¶
Constants ¶
View Source
const GVRForLocationInLogicalClusterIndexName = "GVRForLocationInLogicalCluster"
View Source
const LocationInLogicalClusterIndexName = "LocationInLogicalCluster"
Variables ¶
This section is empty.
Functions ¶
func GetGVRForLocationInLogicalClusterIndexKey ¶
func GetGVRForLocationInLogicalClusterIndexKey(location, clusterName string, gvr metav1.GroupVersionResource) string
Types ¶
type ClusterReconcileImpl ¶
type ClusterReconcileImpl interface {
Reconcile(ctx context.Context, cluster *clusterv1alpha1.Cluster) error
Cleanup(ctx context.Context, deletedCluster *clusterv1alpha1.Cluster)
}
ClusterReconcileImpl defines the methods that ClusterReconciler will call in response to changes to Cluster resources.
type ClusterReconciler ¶
type ClusterReconciler struct {
// contains filtered or unexported fields
}
func NewClusterReconciler ¶
func NewClusterReconciler( name string, reconciler ClusterReconcileImpl, kcpClient kcpclient.Interface, clusterInformer clusterinformer.ClusterInformer, apiResourceImportInformer apiresourceinformer.APIResourceImportInformer, ) (*ClusterReconciler, error)
NewClusterReconciler returns a new controller which reconciles Cluster resources in the API server it reaches using the REST client.
func (*ClusterReconciler) ShutDown ¶
func (c *ClusterReconciler) ShutDown()
func (*ClusterReconciler) Start ¶
func (c *ClusterReconciler) Start(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.