api

command
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

README

Results API Server

Variables

Environment Variable Description Example
DB_USER Postgres Database user user
DB_PASSWORD Postgres Database Password hunter2
DB_HOST Postgres Database host /cloudsql/my-project:us-east1:tekton-results
DB_NAME Postgres Database name tekton_results
DB_SSLMODE Database SSL mode verify-full
DB_SSLROOTCERT Path to CA cert used to validate Database cert /etc/tls/db/ca.crt
DB_ENABLE_AUTO_MIGRATION Auto-migrate the database on startup (create/update schemas). For further details, refer to https://gorm.io/docs/migration.html true (default)
SERVER_PORT gRPC and REST Server Port 8080 (default)
PROMETHEUS_PORT Prometheus Port 9090 (default)
PROMETHEUS_HISTOGRAM Enable Prometheus histogram metrics to measure latency distributions of RPCs false (default)
TLS_PATH Path to TLS files /etc/tls
AUTH_DISABLE Disable RBAC check for resources false (default)
AUTH_IMPERSONATE Enable RBAC impersonation true (default)
LOG_LEVEL Log level for api server info (default)
LOGS_API Enable logs storage service false (default)
LOGS_TYPE Determine Logs storage backend type File (default)
LOGS_BUFFER_SIZE Buffer for streaming logs 32768 (default)
LOGS_PATH Logs storage path logs (default)
S3_BUCKET_NAME S3 Bucket name
S3_ENDPOINT S3 Endpoint https://s3.ap-south-1.amazonaws.com
S3_HOSTNAME_IMMUTABLE S3 Hostname immutable false (default)
S3_REGION S3 Region ap-south-1
S3_ACCESS_KEY_ID S3 Access Key ID
S3_SECRET_ACCESS_KEY S3 Secret Access Key
S3_MULTI_PART_SIZE S3 Multi part size 5242880 (default)
GCS_BUCKET_NAME GCS Bucket Name
STORAGE_EMULATOR_HOST GCS Storage Emulator Server http://localhost:9004

These values can also be set in the config file located in the config/env/config directory.

Values derived from Postgres DSN

If you use the default postgres database we provide, the DB_HOST can be set as tekton-results-postgres-service.tekton-pipelines.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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