kserving

package
v0.0.188 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceLabel the label to denote a service name of a kserve Deployment
	ServiceLabel = "serving.knative.dev/service"

	// RevisionLabel the label used to show the revision
	RevisionLabel = "serving.knative.dev/revision"
)

Variables

This section is empty.

Functions

func FindServiceURL

func FindServiceURL(ctx context.Context, client kserve.Interface, kubeClient kubernetes.Interface, namespace string, name string) (string, *v1.Service, error)

FindServiceURL finds the service URL for the given knative service name

func GetServiceURL

func GetServiceURL(ctx context.Context, service *v1.Service, kubeClient kubernetes.Interface, namespace string) string

GetServiceURL returns the URL for the given knative service

func LazyCreateKServeClient

func LazyCreateKServeClient(client kserve.Interface) (kserve.Interface, error)

LazyCreateKServeClient lazy creates the kserve client if its not defined

Types

This section is empty.

Jump to

Keyboard shortcuts

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