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.
- Loading branch information
Showing
27 changed files
with
1,088 additions
and
139 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
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
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 | ||
|
||
type UsageSpec struct { | ||
CPU string `json:"cpu,omitempty" validate:"required"` | ||
Memory string `json:"memory,omitempty" validate:"required"` | ||
} |
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
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,42 @@ | ||
package entropy | ||
|
||
type JobConfig struct { | ||
Replicas int32 `json:"replicas"` | ||
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 { | ||
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"` | ||
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"` | ||
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 { | ||
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" | ||
) |
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
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,8 @@ | ||
package dlq | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrFirehoseNamespaceNotFound = errors.New("could not find firehose namespace from resource output") | ||
ErrFirehoseNamespaceInvalid = errors.New("invalid firehose namespace from resource output") | ||
) |
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
Oops, something went wrong.