The KernelCI pipeline uses the Kbuild module to build the kernel. As kbuild generate pod manifests, it requires some variables to be set in the environment of kubernetes build clusters.
KCI_INSTANCE
: Type of the instance (e.g. prod
, or anything else is detected as staging)And several secrets:
kci-storage-tokens
, key:production
(or staging
for staging) - contains the storage tokens for the storage backendskci-api-jwt-early access
(or kci-api-jwt-staging
for staging), key:token
- contains the JWT token for the KernelCI APIThis secrets is subject to change soon, to make it more consistent with the rest of the secrets.
The lava-callback provides an API to the kci-dev tool, providing endpoints for custom checkouts, patchset testing, job retries, etc.
In the configuration file, you need to have the following section:
[jwt]
secret = "ABCDEFGH..."
You can use the jwt_generator.py
script in the tools directory to generate user tokens.
jwt_generator.py --secret ABCDEFGH... --email user@email.com