-
Notifications
You must be signed in to change notification settings - Fork 1
/
observation_service.go
35 lines (32 loc) · 1.48 KB
/
observation_service.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
25
26
27
28
29
30
31
32
33
34
35
package values
import obsconfig "github.com/caraml-dev/timber/observation-service/config"
// ObservationServiceHelmValues Observation service helm values
type ObservationServiceHelmValues struct {
// Full name override
FullNameOverride string `json:"fullNameOverride,omitempty"`
// Observation service deployment configurations
ObservationService ObservationService `json:"observationService,omitempty"`
// Fluentd deployment configuration
Fluentd FluentdHelmValues `json:"fluentd,omitempty"`
}
// ObservationService Observation service deployment configurations
type ObservationService struct {
// Observation service image to be deployed
Image ImageConfig `json:"image,omitempty"`
// Annotations to be added to the deployment
Annotations map[string]string `json:"annotations,omitempty"`
// Additional labels to be added to the deployment
ExtraLabels map[string]string `json:"extraLabels,omitempty"`
// Number of replica
ReplicaCount int `json:"replicaCount,omitempty"`
// Resource configuration (i.e. CPU & Memory requests and limits)
Resources ResourcesConfig `json:"resources,omitempty"`
// Autoscaling configuration of the deployment
Autoscaling AutoscalingConfig `json:"autoscaling,omitempty"`
// Additional environment variables to be added to fluentd deployment
ExtraEnvs []Env `json:"extraEnvs,omitempty"`
// Observation service configuration
APIConfig obsconfig.Config `json:"apiConfig,omitempty"`
// Service k8s service configuration
Service Service `json:"service,omitempty"`
}