Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateAutomationConfig ¶ added in v1.117.0
type CertificateAutomationConfig struct {
GatewayClusterIssuer string `envconfig:"RADIXOPERATOR_CERTIFICATE_AUTOMATION_GATEWAY_CLUSTER_ISSUER" required:"true"`
Duration time.Duration `envconfig:"RADIXOPERATOR_CERTIFICATE_AUTOMATION_DURATION" required:"true"`
RenewBefore time.Duration `envconfig:"RADIXOPERATOR_CERTIFICATE_AUTOMATION_RENEW_BEFORE" required:"true"`
}
type Config ¶
type Config struct {
LogLevel string `envconfig:"LOG_LEVEL" required:"true"`
LogPretty bool `envconfig:"LOG_PRETTY" default:"false"`
// DNSConfig Settings for the cluster DNS
DNSZone string `envconfig:"DNS_ZONE" required:"true"`
ClusterType string `envconfig:"RADIXOPERATOR_CLUSTER_TYPE" required:"true"`
ClusterName string `envconfig:"RADIX_CLUSTERNAME" required:"true"`
ContainerRegistryName string `envconfig:"RADIX_CONTAINER_REGISTRY" required:"true"`
PipelineJobConfig PipelineJobConfig
DeploymentSyncer DeploymentSyncerConfig
ContainerRegistryConfig ContainerRegistryConfig
TaskConfig TaskConfig
CertificateAutomation CertificateAutomationConfig
Gateway GatewayConfig
// SafeToRestartBatchJobThreshold is the threshold in seconds for determining the cluster-autoscaler safe-to-evict annotation on batch jobs.
// Jobs with timeLimitSeconds >= SafeToRestartBatchJobThreshold are marked as safe to evict.
SafeToRestartBatchJobThreshold int64 `envconfig:"RADIXOPERATOR_SAFE_TO_RESTART_BATCH_JOB_THRESHOLD" default:"259200"`
}
Config from environment variables
type ContainerRegistryConfig ¶ added in v1.117.0
type ContainerRegistryConfig struct {
// Name of the secret container docker authentication for external registries
ExternalRegistryAuthSecret string `envconfig:"RADIX_EXTERNAL_REGISTRY_DEFAULT_AUTH_SECRET" required:"true"`
}
func (ContainerRegistryConfig) ImagePullSecretsFromExternalRegistryAuth ¶ added in v1.117.0
func (c ContainerRegistryConfig) ImagePullSecretsFromExternalRegistryAuth() []corev1.LocalObjectReference
type DeploymentSyncerConfig ¶ added in v1.117.0
type GatewayConfig ¶ added in v1.110.0
type PipelineJobConfig ¶ added in v1.117.0
type PipelineJobConfig struct {
PipelineJobsHistoryLimit int `envconfig:"RADIX_PIPELINE_JOBS_HISTORY_LIMIT" required:"true" default:"3"`
PipelineJobsHistoryPeriodLimit time.Duration `envconfig:"RADIX_PIPELINE_JOBS_HISTORY_PERIOD_LIMIT" required:"true" default:"24h"`
DeploymentsHistoryLimitPerEnvironment int `envconfig:"RADIX_DEPLOYMENTS_PER_ENVIRONMENT_HISTORY_LIMIT" required:"true" default:"3"`
AppBuilderResourcesLimitsCPU *quantity.Quantity `envconfig:"RADIXOPERATOR_APP_BUILDER_RESOURCES_LIMITS_CPU" required:"true"`
AppBuilderResourcesLimitsMemory *quantity.Quantity `envconfig:"RADIXOPERATOR_APP_BUILDER_RESOURCES_LIMITS_MEMORY" required:"true"`
AppBuilderResourcesRequestsCPU *quantity.Quantity `envconfig:"RADIXOPERATOR_APP_BUILDER_RESOURCES_REQUESTS_CPU" required:"true"`
AppBuilderResourcesRequestsMemory *quantity.Quantity `envconfig:"RADIXOPERATOR_APP_BUILDER_RESOURCES_REQUESTS_MEMORY" required:"true"`
GitCloneImage string `envconfig:"RADIX_PIPELINE_GIT_CLONE_GIT_IMAGE" required:"true"`
PipelineImage string `envconfig:"RADIXOPERATOR_PIPELINE_IMAGE" required:"true"`
PipelineImagePullPolicy corev1.PullPolicy `envconfig:"RADIXOPERATOR_PIPELINE_IMAGE_PULL_POLICY" default:"Always"`
}
Config for pipeline josb
func (*PipelineJobConfig) MustValidate ¶ added in v1.117.0
func (pjc *PipelineJobConfig) MustValidate()
type TaskConfig ¶ added in v1.117.0
type TaskConfig struct {
// OrphanedRadixEnvironmentsRetentionPeriod is the time period for how long orphaned RadixEnvironments should be retained
OrphanedRadixEnvironmentsRetentionPeriod time.Duration `envconfig:"RADIXOPERATOR_ORPHANED_ENVIRONMENTS_RETENTION_PERIOD" default:"720h"`
// OrphanedEnvironmentsCleanupCron is the cron expression for when to run the cleanup of orphaned RadixEnvironments
OrphanedEnvironmentsCleanupCron string `envconfig:"RADIXOPERATOR_ORPHANED_ENVIRONMENTS_CLEANUP_CRON" default:"0 0 * * *"`
}
TaskConfig for tasks
func (*TaskConfig) MustValidate ¶ added in v1.117.0
func (tc *TaskConfig) MustValidate()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.