seldon-operator

module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0

README

Seldon Core Go Controller

A Go controller for the Seldon Core CRD

Developer Notes

Clone into GOPATH.

Kubebuilder is required to build the project. Run export GO111MODULE=off Run with make

Key files:

  • mutating/seldondeployment_create_update_handler in the webhook mutates the SeldonDeployment to add info needed by the engine to direct traffic in the graph.
  • seldondeployment_controller has the main loop code for the controller and its package has supporting functions. Parses graph and creates list of components, which are then submitted to k8s. Predictor service is created and SeldonDeployment status updated when everything else is ready.
Historical Notes

This project was created with kubebuilder using the following commands.

kubebuilder init --domain seldon.io --license apache2 --owner "The Seldon Authors"
kubebuilder create api --group machinelearning --version v1alpha2 --kind SeldonDeployment
kubebuilder alpha webhook --group machinelearning --version v1alpha2 --kind SeldonDeployment --type=validating --operations=create,update
kubebuilder alpha webhook --group machinelearning --version v1alpha2 --kind SeldonDeployment --type=mutating --operations=create,update

Directories

Path Synopsis
cmd
pkg
apis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
apis/machinelearning
Package machinelearning contains machinelearning API versions
Package machinelearning contains machinelearning API versions
apis/machinelearning/v1alpha2
Package v1alpha2 contains API Schema definitions for the machinelearning v1alpha2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/seldonio/seldon-operator/pkg/apis/machinelearning +k8s:defaulter-gen=TypeMeta +groupName=machinelearning.seldon.io Package v1alpha2 contains API Schema definitions for the machinelearning v1alpha2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/seldonio/seldon-operator/pkg/apis/machinelearning +k8s:defaulter-gen=TypeMeta +groupName=machinelearning.seldon.io
Package v1alpha2 contains API Schema definitions for the machinelearning v1alpha2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/seldonio/seldon-operator/pkg/apis/machinelearning +k8s:defaulter-gen=TypeMeta +groupName=machinelearning.seldon.io Package v1alpha2 contains API Schema definitions for the machinelearning v1alpha2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/seldonio/seldon-operator/pkg/apis/machinelearning +k8s:defaulter-gen=TypeMeta +groupName=machinelearning.seldon.io
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/machinelearning/v1alpha2
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/machinelearning/v1alpha2/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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