Add option to disable JIT config
This change adds a flag on providers that allows users to disable JIT configuration even when it's available. For context, JIT is available on github.com and any GHES instance >=3.10. This option is a stopgap measure for providers that have not yet been updated to use JIT configs instead of runner registration tokens. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
0e36eb7056
commit
85968598b0
6 changed files with 59 additions and 6 deletions
|
|
@ -219,8 +219,12 @@ type Provider struct {
|
|||
Name string `toml:"name" json:"name"`
|
||||
ProviderType params.ProviderType `toml:"provider_type" json:"provider-type"`
|
||||
Description string `toml:"description" json:"description"`
|
||||
LXD LXD `toml:"lxd" json:"lxd"`
|
||||
External External `toml:"external" json:"external"`
|
||||
// DisableJITConfig explicitly disables JIT configuration and forces runner registration
|
||||
// tokens to be used. This may happen if a provider has not yet been updated to support
|
||||
// JIT configuration.
|
||||
DisableJITConfig bool `toml:"disable_jit_config" json:"disable-jit-config"`
|
||||
LXD LXD `toml:"lxd" json:"lxd"`
|
||||
External External `toml:"external" json:"external"`
|
||||
}
|
||||
|
||||
func (p *Provider) Validate() error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue