knative

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Set to 20% of the resource for main container, InferenceService defaults to 1CPU which is 200m for queue-proxy
	// https://github.com/knative/serving/blob/1d263950f9f2fea85a4dd394948a029c328af9d9/pkg/reconciler/revision/resources/resourceboundary.go#L30
	DefaultQueueSideCarResourcePercentage = "20"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceBuilder

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

func NewServiceBuilder

func NewServiceBuilder(client client.Client, config *v1.ConfigMap) *ServiceBuilder

func (*ServiceBuilder) CreateExplainerService

func (c *ServiceBuilder) CreateExplainerService(name string, metadata metav1.ObjectMeta, explainerSpec *v1alpha2.ExplainerSpec, predictorService string) (*knservingv1.Service, error)

func (*ServiceBuilder) CreateInferenceServiceComponent

func (c *ServiceBuilder) CreateInferenceServiceComponent(isvc *v1alpha2.InferenceService, component constants.InferenceServiceComponent, isCanary bool) (*knservingv1.Service, error)

func (*ServiceBuilder) CreatePredictorService

func (c *ServiceBuilder) CreatePredictorService(name string, metadata metav1.ObjectMeta, predictorSpec *v1alpha2.PredictorSpec, isCanary bool) (*knservingv1.Service, error)

func (*ServiceBuilder) CreateTransformerService

func (c *ServiceBuilder) CreateTransformerService(name string, metadata metav1.ObjectMeta, transformerSpec *v1alpha2.TransformerSpec, isCanary bool) (*knservingv1.Service, error)

Jump to

Keyboard shortcuts

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