Documentation
¶
Index ¶
- type Config
- func (c *Config) GetAllowedExtraRunnerCounts() []string
- func (c *Config) GetAllowedGithubOrgScopes() []string
- func (c *Config) GetAllowedJobRunsOn() []string
- func (c *Config) GetAllowedPoolAvailabilities() []string
- func (c *Config) GetAllowedPoolLocations() []string
- func (c *Config) GetAllowedPoolTypes() []string
- func (c *Config) GetAllowedTrustedRemoteConfigs() []string
- func (c *Config) GetIgnoredGCPProjectLabels() []string
- func (c *Config) GetIgnoredGCPProjectLabelsSet() map[string]struct{}
- func (c *Config) GetOptionalGCPProjectLabelsSet() map[string]struct{}
- func (cfg *Config) Validate() error
- type RunnerDiscovery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GCPFolderID string `env:"GCP_FOLDER_ID"`
AllowedGithubOrgScopes string `env:"GCP_ALLOWED_PROJECT_LABEL_GH_ORG_SCOPE_VALUES"`
AllowedJobRunsOn string `env:"GCP_ALLOWED_PROJECT_LABEL_JOB_RUNS_ON_VALUES"`
AllowedPoolLocations string `env:"GCP_ALLOWED_PROJECT_LABEL_POOL_LOCATION_VALUES"`
AllowedPoolAvailabilities string `env:"GCP_ALLOWED_PROJECT_LABEL_POOL_AVAILABILITY_VALUES"`
AllowedPoolTypes string `env:"GCP_ALLOWED_PROJECT_LABEL_POOL_TYPE_VALUES"`
AllowedTrustedRemoteConfigs []string `env:"GCP_ALLOWED_PROJECT_LABEL_TRUSTED_REMOTE_CONFIG_VALUES"`
AllowedExtraRunnerCounts string `env:"GCP_ALLOWED_PROJECT_LABEL_EXTRA_RUNNER_COUNT_VALUES"`
IgnoredGCPProjectLabels string `env:"GCP_IGNORED_PROJECT_LABELS"`
MaxRetryAttempts int `env:"MAX_RETRY_ATTEMPTS,default=3"`
BackoffInitialDelay time.Duration `env:"BACKOFF_INITIAL_DELAY,default=500ms"`
RunnerRegistryDefaultKeyPrefix string `env:"RUNNER_REGISTRY_DEFAULT_KEY_PREFIX,default=default"`
}
Config defines the set of environment variables required for running the runner-discovery job.
func (*Config) GetAllowedExtraRunnerCounts ¶ added in v0.1.13
func (*Config) GetAllowedGithubOrgScopes ¶ added in v0.1.4
func (*Config) GetAllowedJobRunsOn ¶ added in v0.1.4
func (*Config) GetAllowedPoolAvailabilities ¶ added in v0.1.4
func (*Config) GetAllowedPoolLocations ¶ added in v0.1.4
func (*Config) GetAllowedPoolTypes ¶ added in v0.1.5
func (*Config) GetAllowedTrustedRemoteConfigs ¶ added in v0.1.10
func (*Config) GetIgnoredGCPProjectLabels ¶ added in v0.1.5
func (*Config) GetIgnoredGCPProjectLabelsSet ¶ added in v0.1.5
func (*Config) GetOptionalGCPProjectLabelsSet ¶ added in v0.1.5
type RunnerDiscovery ¶
type RunnerDiscovery struct {
// contains filtered or unexported fields
}
RunnerDiscovery is the main struct for the runner-discovery job.
func NewRunnerDiscovery ¶
Click to show internal directories.
Click to hide internal directories.