This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
forked from raystack/dex
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dlq): update kubejob entropy model
- Loading branch information
1 parent
2d232ac
commit c689eb6
Showing
5 changed files
with
92 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package entropy | ||
|
||
type JobConfig struct { | ||
Stopped bool `json:"stopped,omitempty"` | ||
Replicas int32 `json:"replicas"` | ||
Namespace string `json:"namespace,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
Containers []JobContainer `json:"containers,omitempty"` | ||
JobLabels map[string]string `json:"job_labels,omitempty"` | ||
Volumes []JobVolume `json:"volumes,omitempty"` | ||
} | ||
|
||
type JobVolume struct { | ||
Name string | ||
Kind string // secret or config-map. secret is for gcs/bq credential | ||
} | ||
|
||
type JobContainer struct { | ||
Name string `json:"name"` | ||
Image string `json:"image"` | ||
ImagePullPolicy string `json:"image_pull_policy,omitempty"` | ||
Command []string `json:"command,omitempty"` | ||
SecretsVolumes []JobSecret `json:"secrets_volumes,omitempty"` | ||
ConfigMapsVolumes []JobConfigMap `json:"config_maps_volumes,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"` | ||
} | ||
|
||
type JobSecret struct { | ||
Name string `json:"name"` | ||
Mount string `json:"mount"` | ||
} | ||
|
||
type JobConfigMap struct { | ||
Name string `json:"name"` | ||
Mount string `json:"mount"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package entropy | ||
|
||
const ( | ||
ResourceKindFirehose = "firehose" | ||
ResourceKindJob = "job" | ||
) |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters