Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyModelConfig ¶
Types ¶
type ConfigsDelta ¶
type ConfigsDelta struct {
// contains filtered or unexported fields
}
func NewConfigsDelta ¶
func NewConfigsDelta(updatedConfigs ModelConfigs, deletedConfigs []string) *ConfigsDelta
func (*ConfigsDelta) Process ¶
func (config *ConfigsDelta) Process(configMap *v1.ConfigMap) (err error)
multi-model ConfigMap apiVersion: v1 kind: ConfigMap metadata:
name: models-config namespace: <user-model-namespace>
data:
models.json: | [ { "modelName": "model1", "modelSpec": { "storageUri": "s3://example-bucket/path/to/model1", "framework": "sklearn", "memory": "1G" } }, { "modelName": "model2", "modelSpec": { "storageUri": "s3://example-bucket/path/to/model2", "framework": "sklearn", "memory": "1G" } } ]
type ModelConfig ¶
type ModelConfigs ¶
type ModelConfigs []ModelConfig
Click to show internal directories.
Click to hide internal directories.