config

package
v1.15.19 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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"`
	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"`
	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:""`
	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:""`
	TestkubeCloudAPIKey               string        `envconfig:"TESTKUBE_CLOUD_API_KEY" default:""`
	TestkubeCloudURL                  string        `envconfig:"TESTKUBE_CLOUD_URL" default:""`
	TestkubeCloudTLSInsecure          bool          `envconfig:"TESTKUBE_CLOUD_TLS_INSECURE" default:"false"`
	TestkubeCloudWorkerCount          int           `envconfig:"TESTKUBE_CLOUD_WORKER_COUNT" default:"50"`
	TestkubeCloudLogStreamWorkerCount int           `envconfig:"TESTKUBE_CLOUD_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"`
}

func Get

func Get() (*Config, error)

Jump to

Keyboard shortcuts

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