Documentation ¶
Index ¶
- Constants
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- type Reconciler
- func (c *Reconciler) EnsureSchedulerJob(ctx context.Context, UID string, owner kmeta.OwnerRefable, ...) (ops.OpsJobStatus, error)
- func (c *Reconciler) EnsureSchedulerJobDeleted(ctx context.Context, UID string, owner kmeta.OwnerRefable, ...) (ops.OpsJobStatus, error)
- func (c *Reconciler) Reconcile(ctx context.Context, key string) error
Constants ¶
View Source
const (
// ReconcilerName is the name of the reconciler
ReconcilerName = "Scheduler"
)
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController initializes the controller and is called by the generated code Registers event handlers to enqueue events
Types ¶
type Reconciler ¶
type Reconciler struct { *reconciler.PubSubBase // Image to use for launching jobs that operate on Scheduler resources. SchedulerOpsImage string // contains filtered or unexported fields }
Reconciler is the controller implementation for Google Cloud Scheduler Jobs.
func (*Reconciler) EnsureSchedulerJob ¶
func (c *Reconciler) EnsureSchedulerJob(ctx context.Context, UID string, owner kmeta.OwnerRefable, secret corev1.SecretKeySelector, topic, jobName, schedule, data string) (ops.OpsJobStatus, error)
func (*Reconciler) EnsureSchedulerJobDeleted ¶
func (c *Reconciler) EnsureSchedulerJobDeleted(ctx context.Context, UID string, owner kmeta.OwnerRefable, secret corev1.SecretKeySelector, jobName string) (ops.OpsJobStatus, error)
Click to show internal directories.
Click to hide internal directories.