Skip to content
Snippets Groups Projects

[WIP] Generic Executor

Closed Finn requested to merge thefinn93/gitlab-runner:feature/generic-executor into master
3 files
+ 191
0
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 7
0
@@ -117,6 +117,12 @@ type VirtualBoxConfig struct {
DisableSnapshots bool `toml:"disable_snapshots,omitzero" json:"disable_snapshots" long:"disable-snapshots" env:"VIRTUALBOX_DISABLE_SNAPSHOTS" description:"Disable snapshoting to speedup VM creation"`
}
type GenericConfig struct {
InitScript string `toml:"init" json:"init" long:"init" env:"GENERIC_EXECUTOR_INIT_SCRIPT" description:"The script to run when initializing the generic executor"`
PrepareScript string `toml:"prepare_script" json:"prepare_script" env:"GENERIC_EXECUTOR_PREPARE_SCRIPT" description:"The script to run when preparing to run a job"`
RunScript string `toml:"run_script" json:"run_script" env:"GENERIC_EXECUTOR_RUN_SCRIPT" description:"The script to run when a job needs to run"`
CleanupScript string `toml:"cleanup_script" json:"cleanup_script" env:"GENERIC_EXECUTOR_CLEANUP_SCRIPT" description:"The script to run after a job is done"`
}
type KubernetesPullPolicy string
// Get returns one of the predefined values in kubernetes notation or returns an error if the value can't match the predefined
@@ -280,6 +286,7 @@ type RunnerSettings struct {
Cache *CacheConfig `toml:"cache,omitempty" json:"cache" group:"cache configuration" namespace:"cache"`
Machine *DockerMachine `toml:"machine,omitempty" json:"machine" group:"docker machine provider" namespace:"machine"`
Kubernetes *KubernetesConfig `toml:"kubernetes,omitempty" json:"kubernetes" group:"kubernetes executor" namespace:"kubernetes"`
Generic *GenericConfig `toml:"generic,omitempty" json:"generic" group:"generic executor" namespace:"generic"`
}
type RunnerConfig struct {
Loading