Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PodJobAnnotationPrefix defines the prefix key for a job data (json serialized) in the annotations of the pod
PodJobAnnotationPrefix = "control.k8ssandra.io/job"
)
*
Jobs executing something on every pod in the datacenter
*
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AsyncTaskExecutorFunc ¶
type AsyncTaskExecutorFunc func(httphelper.NodeMgmtClient, *corev1.Pod, map[string]string) (string, error)
AsyncTaskExecutorFunc is called for all methods that support async processing
type CassandraTaskReconciler ¶
CassandraTaskReconciler reconciles a CassandraJob object
func (*CassandraTaskReconciler) SetupWithManager ¶
func (r *CassandraTaskReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type JobStatus ¶
type SyncTaskExecutorFunc ¶
type SyncTaskExecutorFunc func(httphelper.NodeMgmtClient, *corev1.Pod, map[string]string) error
SyncTaskExecutorFunc is called as a backup if async one isn't supported
type TaskConfiguration ¶
type TaskConfiguration struct { Id string AsyncFunc AsyncTaskExecutorFunc SyncFunc SyncTaskExecutorFunc AsyncFeature httphelper.Feature RestartPolicy corev1.RestartPolicy Arguments map[string]string }
TaskConfiguration sets the command's functions to execute
Click to show internal directories.
Click to hide internal directories.