notebook

package
v0.0.0-...-d0cda72 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultContainerPort = int32(8888)
	DefaultServingPort   = 80

	// DefaultFSGroup The default fsGroup of PodSecurityContext.
	// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podsecuritycontext-v1-core
	DefaultFSGroup = int64(100)
)

Variables

This section is empty.

Functions

func PodCondToNotebookCond

func PodCondToNotebookCond(pCond corev1.PodCondition) mgmtv1.Condition

PodCondToNotebookCond Note: this is referred to kubeflow notebook controller https://github.com/kubeflow/kubeflow/tree/master/components/notebook-controller

func Register

func Register(ctx context.Context, mgmt *config.Management) error

Types

type Handler

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

func (*Handler) OnChanged

func (h *Handler) OnChanged(_ string, notebook *mlv1.Notebook) (*mlv1.Notebook, error)

func (*Handler) ReconcileNotebookPodOwners

func (h *Handler) ReconcileNotebookPodOwners(_, _ string, obj runtime.Object) ([]relatedresource.Key, error)

ReconcileNotebookPodOwners reconciles the owner notebook by pod

Jump to

Keyboard shortcuts

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