- Notifications
You must be signed in to change notification settings - Fork928
chore: allow terraform & echo built-in provisioners#13121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
a6a9a03
80960cc
d151b48
e7fea3f
a56a4c6
87ad0a0
23ef0f2
540377b
2a2c4b8
52514d6
0c3884d
0c08115
d1f82a8
3f652c3
672979b
57f081c
487f0a8
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -406,12 +406,13 @@ type ExternalAuthConfig struct { | ||
} | ||
type ProvisionerConfig struct { | ||
// Daemons is the number of built-in terraform provisioners. | ||
Daemons serpent.Int64 `json:"daemons" typescript:",notnull"` | ||
DaemonTypes serpent.StringArray `json:"daemon_types" typescript:",notnull"` | ||
DaemonPollInterval serpent.Duration `json:"daemon_poll_interval" typescript:",notnull"` | ||
DaemonPollJitter serpent.Duration `json:"daemon_poll_jitter" typescript:",notnull"` | ||
ForceCancelInterval serpent.Duration `json:"force_cancel_interval" typescript:",notnull"` | ||
DaemonPSK serpent.String `json:"daemon_psk" typescript:",notnull"` | ||
} | ||
type RateLimitConfig struct { | ||
@@ -1413,15 +1414,30 @@ when required by your organization's security policy.`, | ||
YAML: "daemons", | ||
}, | ||
{ | ||
Name: "Provisioner Daemon Types", | ||
Description: fmt.Sprintf("The supported job types for the built-in provisioners. By default, this is only the terraform type. Supported types: %s.", | ||
strings.Join([]string{ | ||
string(ProvisionerTypeTerraform), string(ProvisionerTypeEcho), | ||
}, ",")), | ||
Flag: "provisioner-types", | ||
Env: "CODER_PROVISIONER_TYPES", | ||
Hidden: true, | ||
Default: string(ProvisionerTypeTerraform), | ||
Value: serpent.Validate(&c.Provisioner.DaemonTypes, func(values *serpent.StringArray) error { | ||
if values == nil { | ||
return nil | ||
} | ||
for _, value := range *values { | ||
if err := ProvisionerTypeValid(value); err != nil { | ||
return err | ||
} | ||
} | ||
return nil | ||
}), | ||
Comment on lines +1426 to +1438 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. some enum validation. This is case sensitive. | ||
Group: &deploymentGroupProvisioning, | ||
YAML: "daemonTypes", | ||
}, | ||
{ | ||
Name: "Poll Interval", | ||
Uh oh!
There was an error while loading.Please reload this page.