config

package
v1.16.12-beta004 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIServerPort                    string        `envconfig:"APISERVER_PORT" default:"8088"`
	APIServerConfig                  string        `envconfig:"APISERVER_CONFIG" default:""`
	APIServerFullname                string        `envconfig:"APISERVER_FULLNAME" default:"testkube-api-server"`
	APIMongoDSN                      string        `envconfig:"API_MONGO_DSN" default:"mongodb://localhost:27017"`
	APIMongoAllowTLS                 bool          `envconfig:"API_MONGO_ALLOW_TLS" default:"false"`
	APIMongoSSLCert                  string        `envconfig:"API_MONGO_SSL_CERT" default:""`
	APIMongoSSLCAFileKey             string        `envconfig:"API_MONGO_SSL_CA_FILE_KEY" default:"sslCertificateAuthorityFile"`
	APIMongoSSLClientFileKey         string        `envconfig:"API_MONGO_SSL_CLIENT_FILE_KEY" default:"sslClientCertificateKeyFile"`
	APIMongoSSLClientFilePass        string        `envconfig:"API_MONGO_SSL_CLIENT_FILE_PASS_KEY" default:"sslClientCertificateKeyFilePassword"`
	APIMongoAllowDiskUse             bool          `envconfig:"API_MONGO_ALLOW_DISK_USE" default:"false"`
	APIMongoDB                       string        `envconfig:"API_MONGO_DB" default:"testkube"`
	APIMongoDBType                   string        `envconfig:"API_MONGO_DB_TYPE" default:"mongo"`
	SlackToken                       string        `envconfig:"SLACK_TOKEN" default:""`
	SlackConfig                      string        `envconfig:"SLACK_CONFIG" default:""`
	SlackTemplate                    string        `envconfig:"SLACK_TEMPLATE" default:""`
	StorageEndpoint                  string        `envconfig:"STORAGE_ENDPOINT" default:"localhost:9000"`
	StorageBucket                    string        `envconfig:"STORAGE_BUCKET" default:"testkube-logs"`
	StorageExpiration                int           `envconfig:"STORAGE_EXPIRATION"`
	StorageAccessKeyID               string        `envconfig:"STORAGE_ACCESSKEYID" default:""`
	StorageSecretAccessKey           string        `envconfig:"STORAGE_SECRETACCESSKEY" default:""`
	StorageRegion                    string        `envconfig:"STORAGE_REGION" default:""`
	StorageToken                     string        `envconfig:"STORAGE_TOKEN" default:""`
	StorageSSL                       bool          `envconfig:"STORAGE_SSL" default:"false"`
	StorageSkipVerify                bool          `envconfig:"STORAGE_SKIP_VERIFY" default:"false"`
	StorageCertFile                  string        `envconfig:"STORAGE_CERT_FILE" default:""`
	StorageKeyFile                   string        `envconfig:"STORAGE_KEY_FILE" default:""`
	StorageCAFile                    string        `envconfig:"STORAGE_CA_FILE" default:""`
	ScrapperEnabled                  bool          `envconfig:"SCRAPPERENABLED" default:"false"`
	LogsBucket                       string        `envconfig:"LOGS_BUCKET" default:""`
	LogsStorage                      string        `envconfig:"LOGS_STORAGE" default:""`
	NatsURI                          string        `envconfig:"NATS_URI" default:"nats://localhost:4222"`
	NatsSecure                       bool          `envconfig:"NATS_SECURE" default:"false"`
	NatsSkipVerify                   bool          `envconfig:"NATS_SKIP_VERIFY" default:"false"`
	NatsCertFile                     string        `envconfig:"NATS_CERT_FILE" default:""`
	NatsKeyFile                      string        `envconfig:"NATS_KEY_FILE" default:""`
	NatsCAFile                       string        `envconfig:"NATS_CA_FILE" default:""`
	JobServiceAccountName            string        `envconfig:"JOB_SERVICE_ACCOUNT_NAME" default:""`
	JobTemplateFile                  string        `envconfig:"JOB_TEMPLATE_FILE" default:""`
	DisableTestTriggers              bool          `envconfig:"DISABLE_TEST_TRIGGERS" default:"false"`
	TestkubeDefaultExecutors         string        `envconfig:"TESTKUBE_DEFAULT_EXECUTORS" default:""`
	TestkubeTemplateJob              string        `envconfig:"TESTKUBE_TEMPLATE_JOB" default:""`
	TestkubeContainerTemplateJob     string        `envconfig:"TESTKUBE_CONTAINER_TEMPLATE_JOB" default:""`
	TestkubeContainerTemplateScraper string        `envconfig:"TESTKUBE_CONTAINER_TEMPLATE_SCRAPER" default:""`
	TestkubeContainerTemplatePVC     string        `envconfig:"TESTKUBE_CONTAINER_TEMPLATE_PVC" default:""`
	TestkubeTemplateSlavePod         string        `envconfig:"TESTKUBE_TEMPLATE_SLAVE_POD" default:""`
	TestkubeConfigDir                string        `envconfig:"TESTKUBE_CONFIG_DIR" default:"config"`
	TestkubeAnalyticsEnabled         bool          `envconfig:"TESTKUBE_ANALYTICS_ENABLED" default:"false"`
	TestkubeReadonlyExecutors        bool          `envconfig:"TESTKUBE_READONLY_EXECUTORS" default:"false"`
	TestkubeNamespace                string        `envconfig:"TESTKUBE_NAMESPACE" default:"testkube"`
	TestkubeOAuthClientID            string        `envconfig:"TESTKUBE_OAUTH_CLIENTID" default:""`
	TestkubeOAuthClientSecret        string        `envconfig:"TESTKUBE_OAUTH_CLIENTSECRET" default:""`
	TestkubeOAuthProvider            string        `envconfig:"TESTKUBE_OAUTH_PROVIDER" default:""`
	TestkubeOAuthScopes              string        `envconfig:"TESTKUBE_OAUTH_SCOPES" default:""`
	TestkubeProAPIKey                string        `envconfig:"TESTKUBE_PRO_API_KEY" default:""`
	TestkubeProURL                   string        `envconfig:"TESTKUBE_PRO_URL" default:""`
	TestkubeProTLSInsecure           bool          `envconfig:"TESTKUBE_PRO_TLS_INSECURE" default:"false"`
	TestkubeProWorkerCount           int           `envconfig:"TESTKUBE_PRO_WORKER_COUNT" default:"50"`
	TestkubeProLogStreamWorkerCount  int           `envconfig:"TESTKUBE_PRO_LOG_STREAM_WORKER_COUNT" default:"25"`
	TestkubeWatcherNamespaces        string        `envconfig:"TESTKUBE_WATCHER_NAMESPACES" default:""`
	GraphqlPort                      string        `envconfig:"TESTKUBE_GRAPHQL_PORT" default:"8070"`
	TestkubeRegistry                 string        `envconfig:"TESTKUBE_REGISTRY" default:""`
	TestkubePodStartTimeout          time.Duration `envconfig:"TESTKUBE_POD_START_TIMEOUT" default:"30m"`
	CDEventsTarget                   string        `envconfig:"CDEVENTS_TARGET" default:""`
	TestkubeDashboardURI             string        `envconfig:"TESTKUBE_DASHBOARD_URI" default:""`
	DisableReconciler                bool          `envconfig:"DISABLE_RECONCILER" default:"false"`
	TestkubeClusterName              string        `envconfig:"TESTKUBE_CLUSTER_NAME" default:""`
	CompressArtifacts                bool          `envconfig:"COMPRESSARTIFACTS" default:"false"`
	TestkubeHelmchartVersion         string        `envconfig:"TESTKUBE_HELMCHART_VERSION" default:""`
	DebugListenAddr                  string        `envconfig:"DEBUG_LISTEN_ADDR" default:"0.0.0.0:1337"`
	EnableDebugServer                bool          `envconfig:"ENABLE_DEBUG_SERVER" default:"false"`
	EnableSecretsEndpoint            bool          `envconfig:"ENABLE_SECRETS_ENDPOINT" default:"false"`
	DisableMongoMigrations           bool          `envconfig:"DISABLE_MONGO_MIGRATIONS" default:"false"`

	// DEPRECATED: Use TestkubeProAPIKey instead
	TestkubeCloudAPIKey string `envconfig:"TESTKUBE_CLOUD_API_KEY" default:""`
	// DEPRECATED: Use TestkubeProURL instead
	TestkubeCloudURL string `envconfig:"TESTKUBE_CLOUD_URL" default:""`
	// DEPRECATED: Use TestkubeProTLSInsecure instead
	TestkubeCloudTLSInsecure bool `envconfig:"TESTKUBE_CLOUD_TLS_INSECURE" default:"false"`
	// DEPRECATED: Use TestkubeProWorkerCount instead
	TestkubeCloudWorkerCount int `envconfig:"TESTKUBE_CLOUD_WORKER_COUNT" default:"50"`
	// DEPRECATED: Use TestkubeProLogStreamWorkerCount instead
	TestkubeCloudLogStreamWorkerCount int `envconfig:"TESTKUBE_CLOUD_LOG_STREAM_WORKER_COUNT" default:"25"`
}

func Get

func Get() (*Config, error)

func (*Config) CleanLegacyVars added in v1.16.7

func (c *Config) CleanLegacyVars()

CleanLegacyVars configures new environment variables from the deprecated ones

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL