Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AppName is the value to the "app" label for the ceph-crash pods AppName = "rook-ceph-crashcollector" // NodeNameLabel is a node name label NodeNameLabel = "node_name" )
View Source
const (
MinVersionForCronV1 = "1.21.0"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, context *clusterd.Context, opManagerContext context.Context, opConfig opcontroller.OperatorConfig) error
Add adds a new Controller based on nodedrain.ReconcileNode and registers the relevant watches and handlers
func CreateCrashCollectorSecret ¶ added in v1.2.1
func CreateCrashCollectorSecret(context *clusterd.Context, clusterInfo *client.ClusterInfo) error
CreateCrashCollectorSecret creates the Kubernetes Crash Collector Secret
Types ¶
type ReconcileNode ¶
type ReconcileNode struct {
// contains filtered or unexported fields
}
ReconcileNode reconciles ReplicaSets
func (*ReconcileNode) Reconcile ¶
func (r *ReconcileNode) Reconcile(context context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reconciles a node and ensures that it has a crashcollector deployment attached to it. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
Click to show internal directories.
Click to hide internal directories.