Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
feat(dlq): updated entropy job config
Browse files Browse the repository at this point in the history
  • Loading branch information
StewartJingga committed Oct 3, 2023
1 parent 930a4b2 commit 74d3b61
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions entropy/job.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 74d3b61

Please sign in to comment.