Documentation ¶
Index ¶
- func ConvertMapToString(m map[string]string) string
- func GenerateLabelsForApp(name string) map[string]string
- func GetScheduleActionName(scheduleName string, actionName string) string
- func ReplicasForLabels(scheduleAction podv1alpha1.ScheduleAction) string
- type ClusterScheduleReconciler
- type ScheduleReconciler
- type ScheduleResources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMapToString ¶
func GenerateLabelsForApp ¶
func GetScheduleActionName ¶
func ReplicasForLabels ¶
func ReplicasForLabels(scheduleAction podv1alpha1.ScheduleAction) string
Types ¶
type ClusterScheduleReconciler ¶
type ClusterScheduleReconciler struct { client.Client Scheme *runtime.Scheme JobImage string ServiceAccount string Namespace string Templates *template.Template }
ClusterScheduleReconciler reconciles a ClusterSchedule object
func (*ClusterScheduleReconciler) Reconcile ¶
func (r *ClusterScheduleReconciler) 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 ClusterSchedule 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.14.1/pkg/reconcile
func (*ClusterScheduleReconciler) SetupWithManager ¶
func (r *ClusterScheduleReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ScheduleReconciler ¶
type ScheduleReconciler struct { client.Client Scheme *runtime.Scheme JobImage string ClusterRoleName string Templates *template.Template }
ScheduleReconciler reconciles a Schedule object
func (*ScheduleReconciler) 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 Schedule 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.14.1/pkg/reconcile
func (*ScheduleReconciler) SetupWithManager ¶
func (r *ScheduleReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ScheduleResources ¶
type ScheduleResources struct {
// contains filtered or unexported fields
}