From 74d3b610200228b66d0e31b0e2752eb66f9ab66b Mon Sep 17 00:00:00 2001 From: Stewart Jingga Date: Tue, 3 Oct 2023 14:24:19 +0700 Subject: [PATCH] feat(dlq): updated entropy job config --- entropy/job.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/entropy/job.go b/entropy/job.go index 40412a2..7e389fc 100644 --- a/entropy/job.go +++ b/entropy/job.go @@ -1,13 +1,13 @@ package entropy type JobConfig struct { - Stopped bool `json:"stopped,omitempty"` Replicas int32 `json:"replicas"` - Namespace string `json:"namespace,omitempty"` + Namespace string `json:"namespace"` Name string `json:"name,omitempty"` Containers []JobContainer `json:"containers,omitempty"` JobLabels map[string]string `json:"job_labels,omitempty"` Volumes []JobVolume `json:"volumes,omitempty"` + TTLSeconds *int32 `json:"ttl_seconds,omitempty"` } type JobVolume struct { @@ -20,12 +20,15 @@ type JobContainer struct { Image string `json:"image"` ImagePullPolicy string `json:"image_pull_policy,omitempty"` Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` SecretsVolumes []JobSecret `json:"secrets_volumes,omitempty"` ConfigMapsVolumes []JobConfigMap `json:"config_maps_volumes,omitempty"` - Limits *UsageSpec `json:"limits,omitempty"` - Requests *UsageSpec `json:"requests,omitempty"` + Limits UsageSpec `json:"limits,omitempty"` + Requests UsageSpec `json:"requests,omitempty"` EnvConfigMaps []string `json:"env_config_maps,omitempty"` EnvVariables map[string]string `json:"env_variables,omitempty"` + PreStopCmd []string `json:"pre_stop_cmd,omitempty"` + PostStartCmd []string `json:"post_start_cmd,omitempty"` } type JobSecret struct {