notebook

package
v0.0.0-...-1c7d887 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LabelKeyNotebookName = fmt.Sprintf("%s/notebook-name", v1beta1.GroupName)
	AnnotationKeyOwner   = fmt.Sprintf("%s/owner", v1beta1.GroupName)
)

Functions

func EnqueueRequestFromTemplate

func EnqueueRequestFromTemplate(cache cache.Cache, logger logr.Logger) handler.EventHandler

func Setup

func Setup(mgr manager.Manager) error

Setup adds the Notebook controller to manager.Manager.

Types

type Option

type Option func(r *Reconciler)

func WithLogger

func WithLogger(logger logr.Logger) Option

func WithScheme

func WithScheme(scheme *runtime.Scheme) Option

WithScheme sets the scheme on the Reconciler. If the scheme is not provided, the client's scheme will be used.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(cli client.Client, opts ...Option) *Reconciler

NewReconciler returns a new Reconciler with default options set as well as any options provided. If the provided options conflict with the defaults, the provided options will take precedence.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile creates a NotebookRevision from a Notebook and Template spec. Notebook revisions are created when there is a change in the Template, and sometimes a change in the Notebook spec, depending on what options from the template have been selected. Changing resource requests and limits in the Notebook spec will not trigger a new revision.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL