-
Notifications
You must be signed in to change notification settings - Fork 23
/
enricher.go
24 lines (23 loc) · 1.07 KB
/
enricher.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package models
// Enricher contains the configuration for a preprocessor for
// a Turing Router.
type Enricher struct {
Model
// Fully qualified docker image string used by the enricher, in the
// format registry/repository:version.
Image string `json:"image" validate:"required"`
// Resource requests for the deployment of the enricher.
ResourceRequest *ResourceRequest `json:"resource_request" validate:"required"`
// Endpoint to query.
Endpoint string `json:"endpoint" validate:"required"`
// Request timeout as a valid quantity string.
Timeout string `json:"timeout" validate:"required"`
// Port to query.
Port int `json:"port" validate:"required"`
// Environment variables to inject into the pod.
Env EnvVars `json:"env" validate:"required"`
// (optional) ServiceAccount specifies the name of the secret registered in the MLP project containing the service
// account. The service account will be mounted into the container and the env variable
// GOOGLE_APPLICATION_CREDENTIALS will point to the service account file.
ServiceAccount string `json:"service_account"`
}