./kserve-adapter
genmock:
go generate ./...
+fmt:
+ go fmt ./cmd/...
+ go fmt ./pkg/...
"flag"
"os"
- "github.com/spf13/viper"
"gerrit.o-ran-sc.org/r/aiml-fw/aihp/ips/kserve-adapter/pkg/api"
"gerrit.o-ran-sc.org/r/aiml-fw/aihp/ips/kserve-adapter/pkg/commons/logger"
+ "github.com/spf13/viper"
)
const KSERVE_ADAPTER_CONFIG_FILE = "./config/kserve-adapter.yaml"
Name: values.FullName,
Namespace: ips_namespace,
Labels: map[string]string{
- "app": values.FullName,
+ "app": values.FullName,
},
},
Spec: api_v1beta1.InferenceServiceSpec{
case "tensorflow":
ifsv.Spec.Predictor.Tensorflow = &api_v1beta1.TFServingSpec{
PredictorExtensionSpec: api_v1beta1.PredictorExtensionSpec{
- StorageURI: &values.StorageURI,
+ StorageURI: &values.StorageURI,
RuntimeVersion: &values.RuntimeVersion,
Container: core_v1.Container{
Image: values.Image,
Resources string `yaml:"resources"`
RICServiceAccountName string `yaml:"ric_serviceaccount_name"`
StorageURI string `yaml:"storageUri"`
- RuntimeVersion string `yaml:"runtimeVersion"`
+ RuntimeVersion string `yaml:"runtimeVersion"`
Image string `yaml:"image"`
ResourceVersion string
CanaryTrafficPercent int64
Version string `json:"version"`
SaName string `json:"sa_name"`
InferenceService InferenceService `json:"inferenceservice"`
- configFile string
+ configFile string
}
type InferenceService struct {
- Engine string `json:"engine"`
- StorageURI string `json:"storage_uri"`
- RuntimeVersion string `json:"runtime_version"`
- ApiVersion string `json:"api_version"`
- MinReplicas int32 `json:"min_replicas"`
- MaxReplicas int32 `json:"max_replicas"`
+ Engine string `json:"engine"`
+ StorageURI string `json:"storage_uri"`
+ RuntimeVersion string `json:"runtime_version"`
+ ApiVersion string `json:"api_version"`
+ MinReplicas int32 `json:"min_replicas"`
+ MaxReplicas int32 `json:"max_replicas"`
}
Title string `json:"title"`
Required []string `json:"required"`
Properties Properties `json:"properties"`
- schemaFile string
+ schemaFile string
}
type Definitions struct {
}
type InferenceServiceProperty struct {
- Engine StringProperty `json:"engine"`
- StorageURI StringProperty `json:"storage_uri"`
- RuntimeVersion StringProperty `json:"runtime_version"`
- ApiVersion StringProperty `json:"api_version"`
- MinReplicas IntegerProperty `json:"min_replicas"`
- MaxReplicas IntegerProperty `json:"max_replicas"`
+ Engine StringProperty `json:"engine"`
+ StorageURI StringProperty `json:"storage_uri"`
+ RuntimeVersion StringProperty `json:"runtime_version"`
+ ApiVersion StringProperty `json:"api_version"`
+ MinReplicas IntegerProperty `json:"min_replicas"`
+ MaxReplicas IntegerProperty `json:"max_replicas"`
}
type StringProperty struct {