Delegate environment variables
The following environment variables are available for use in the delegate manifest. Some of these variables are included in the YAML by default; you can specify others based on use case.
ACCOUNT_ID
The Harness account Id of the account with which this delegate registers.
This value is automatically added to the delegate configuration file (the application manifest of a Kubernetes delegate) when you add the delegate.
- name: ACCOUNT_ID
value: YOUR_ACCOUNT_ID
DELEGATE_DESCRIPTION
A text description of the delegate. The description is added to the delegate before registration, in Harness Manager or in YAML. This value is displayed on the delegate details page in Harness Manager.
- name: DELEGATE_DESCRIPTION
value: ""
DELEGATE_NAME
The name of the delegate. This is the name that identifies a registered delegate in Harness.
This value is not specified when delegate creation is automated. Instead, a script is used to duplicate the delegate YAML file and add a unique name to the DELEGATE_NAME
environment variable for each delegate to be registered. Go to Automate delegate installation.
- name: DELEGATE_NAME
value: qa
DELEGATE_NAMESPACE
The namespace for the delegate is taken from the StatefulSet
namespace.
- name: DELEGATE_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace