constants

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

View Source
const DefaultModelLocalMountPath = "/mnt/models"

DefaultModelLocalMountPath is where models will be mounted by the model-initializer

View Source
const (
	NvidiaGPUResourceType = "nvidia.com/gpu"
)

GPU Constants

Variables

View Source
var (
	KFServingName         = "kfserving"
	KFServingAPIGroupName = "serving.kubeflow.org"
	KFServingNamespace    = getEnvOrDefault("POD_NAMESPACE", "kfserving-system")
)

KFServing Constants

View Source
var (
	KFServiceName          = "kfservice"
	KFServiceAPIName       = "kfservices"
	KFServicePodLabelKey   = KFServingAPIGroupName + "/" + KFServiceName
	KFServiceConfigMapName = "kfservice-config"
)

KFService Constants

View Source
var (
	KFServiceInternalAnnotationsPrefix             = "internal." + KFServingAPIGroupName
	ModelInitializerSourceUriInternalAnnotationKey = KFServiceInternalAnnotationsPrefix + "/model-initializer-sourceuri"
)

KFService Internal Annotations

View Source
var (
	ControllerLabelName        = KFServingName + "-controller-manager"
	DefaultTimeout       int64 = 300
	DefaultScalingTarget       = "1"
)

Controller Constants

View Source
var (
	WebhookServerName                    = KFServingName + "-webhook-server"
	WebhookServerServiceName             = WebhookServerName + "-service"
	WebhookServerSecretName              = WebhookServerName + "-secret"
	KFServiceValidatingWebhookConfigName = strings.Join([]string{KFServiceName, KFServingAPIGroupName}, ".")
	KFServiceMutatingWebhookConfigName   = strings.Join([]string{KFServiceName, KFServingAPIGroupName}, ".")
	KFServiceValidatingWebhookName       = strings.Join([]string{KFServiceName, WebhookServerName, "validator"}, ".")
	KFServiceDefaultingWebhookName       = strings.Join([]string{KFServiceName, WebhookServerName, "defaulter"}, ".")
	DeploymentMutatorWebhookName         = strings.Join([]string{KFServiceName, WebhookServerName, "deployment-mutator"}, ".")
	WebhookFailurePolicy                 = v1beta1.Fail
)

Webhook Constants

View Source
var (
	KFServiceGKEAcceleratorAnnotationKey = KFServingAPIGroupName + "/gke-accelerator"
)

KFService Annotations

Functions

func CanaryConfigurationName

func CanaryConfigurationName(name string) string

func DefaultConfigurationName

func DefaultConfigurationName(name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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