Configuration
DeepSource Runner is configured using the Helm values.yaml
file. You should have already obtained a partially filled values.yaml
after completing the registration as described in the License section. You have to configure the fields shown below in the file before you proceed with the installation.
config
config
Name | Description | Type |
---|---|---|
config.apps | Configuration values for the VCS apps to be used by the runner | [] |
config.objectStorage | Object storage configuration. (GCS, S3) | {} |
config.runner | Configuration values for the Runner. | {} |
config.runner
config.runner
Name | Description | Example |
---|---|---|
config.runner.id | The id of the runner | "a5557**********************e6760" |
config.runner.host | The host of the runner to use | "https://runner.example.com" |
config.runner.clientId | The client ID to use for the runner | "tbFPp**********************Hmsrq" |
config.runner.clientSecret | The client secret to use for the runner | "dPi6A**********************LRzfc" |
config.runner.privateKey | The private key to use for the runner | "" |
config.runner.webhookSecret | The webhook secret to use for the runner | "vzWz***********************9ymrW" |
config.objectStorage
config.objectStorage
This is used to configure the object storage bucket to store code snippets and other sensitive data generated while processing your code. You will need a credential JSON to authenticate to the bucket
For GCS you can use the service account credential JSON which will look like this:
{
"type": "service_account",
"project_id": "PROJECT_ID",
"private_key_id": "KEY_ID",
"private_key": "-----BEGIN PRIVATE KEY-----\nPRIVATE_KEY\n-----END PRIVATE KEY-----\n",
"client_email": "SERVICE_ACCOUNT_EMAIL",
"client_id": "CLIENT_ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/SERVICE_ACCOUNT_EMAIL"
}
For S3, your credential JSON will look like this:
{
"endpoint": "s3.amazonaws.com",
"accessKeyID": "ACCESS_KEY_ID",
"secretAccessKey": "SECRET_ACCESS_KEY",
"useSSL": false
}
Name | Description | Example |
---|---|---|
config.objectStorage.provider | The provider to use for the object storage (e.g. gcs, s3) | "gcs", "s3" |
config.objectStorage.bucket | The bucket to use for the object storage | "artifacts" |
config.objectStorage.credential | The credential JSON value to use for the object storage. | "" |
config.apps
config.apps
The config.apps
object is an array of VCS configurations. The app object contains your VCS provider configuration. Before completing this section, you must finish setting up your VCS provider. This can be found in the
VCS configuration section of the documentation. (GitHub)
Name | Description | Example |
---|---|---|
config.apps[].id | A unique identifier for your VCS provider. We recommend using a UUID. | "17a199bc-f4f6-4b1c-9c78-0ca6824e1790" |
config.apps[].name | A human-friendly name for your VCS application. | "My Github App" |
config.apps[].provider | The VCS provider of your application. | "github" |
config.apps[].github.host | The root hostname for your GitHub installation. | "github.com" |
config.apps[].github.apiHost | The hostname for the GitHub API server. | "api.github.com" |
config.apps[].github.appId | AppID of the GitHub application. | "34128" |
config.apps[].github.clientId | ClientID of the GitHub application. | "Iv1.004243********" |
config.apps[].github.clientSecret | ClientSecret of the GitHub application. | "8553**********fb6b" |
config.apps[].github.privateKey | Private key from the GitHub application. | "" |
config.apps[].github.slug | Slug of the GitHub application. | "acme-runner" |
config.apps[].github.webhookSecret | Webhook secret configured in your GitHub application. | "webhook-secret" |
Note:
If you need to fine-tune additional Kubernetes configuration, please refer to the Helm chart documentation available in the DeepSource helm-charts repository.
Updated 17 days ago