Documentation
¶
Index ¶
- Variables
- func ListPods(ctx context.Context, kc client.Client, ref kmapi.TypedObjectReference) ([]string, error)
- type Member
- type RestMapperRefresher
- type ShardConfigurationReconciler
- func (r *ShardConfigurationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ShardConfigurationReconciler) RegisterResourceWatcher(gvk schema.GroupVersionKind) error
- func (r *ShardConfigurationReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *ShardConfigurationReconciler) UpdateShardLabel(ctx context.Context, cc *consistent.Consistent, gvk schema.GroupVersionKind, ...) error
Constants ¶
This section is empty.
Variables ¶
var PrimeNumbers = []int{
2, 3, 5, 7, 11, 13, 17, 19, 23, 29,
31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
73, 79, 83, 89, 97, 101, 103, 107, 109, 113,
127, 131, 137, 139, 149, 151, 157, 163, 167, 173,
179, 181, 191, 193, 197, 199, 211, 223, 227, 229,
233, 239, 241, 251, 257, 263, 269, 271, 277, 281,
283, 293, 307, 311, 313, 317, 331, 337, 347, 349,
353, 359, 367, 373, 379, 383, 389, 397, 401, 409,
419, 421, 431, 433, 439, 443, 449, 457, 461, 463,
467, 479, 487, 491, 499,
}
Functions ¶
Types ¶
type RestMapperRefresher ¶
type RestMapperRefresher struct {
Mapper *restmapper.DeferredDiscoveryRESTMapper
}
RestMapperRefresher reconciles a ShardConfiguration object
func (*RestMapperRefresher) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ShardConfiguration object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.1/pkg/reconcile
func (*RestMapperRefresher) SetupWithManager ¶
func (r *RestMapperRefresher) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ShardConfigurationReconciler ¶
type ShardConfigurationReconciler struct { client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
ShardConfigurationReconciler reconciles a ShardConfiguration object
func NewShardConfigurationReconciler ¶
func NewShardConfigurationReconciler(mgr manager.Manager, d discovery.DiscoveryInterface, mapper meta.RESTMapper) *ShardConfigurationReconciler
func (*ShardConfigurationReconciler) Reconcile ¶
func (r *ShardConfigurationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ShardConfiguration object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.1/pkg/reconcile
func (*ShardConfigurationReconciler) RegisterResourceWatcher ¶
func (r *ShardConfigurationReconciler) RegisterResourceWatcher(gvk schema.GroupVersionKind) error
func (*ShardConfigurationReconciler) SetupWithManager ¶
func (r *ShardConfigurationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*ShardConfigurationReconciler) UpdateShardLabel ¶
func (r *ShardConfigurationReconciler) UpdateShardLabel(ctx context.Context, cc *consistent.Consistent, gvk schema.GroupVersionKind, cfg *operatorv1alpha1.ShardConfiguration) error