kernelci / kernelci/kernelci-core
Add template parameter for storage credentials
- Dominant language
- Python
- Stars
- 120
- Forks
- 107
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 21
Description
The `python.jinja2` base template now has an optional `STORAGE_CONFIG_YAML` variable to enable jobs to upload files to storage. Each storage implementation has a different type of credentials, and this is initially hard-coded to handle private SSH keys via Kubernetes secret mounted as a file in `/home/kernelci/.ssh`. However, the name of the SSH key and the way the `STORAGE_CREDENTIALS` environment variable are being defined should depend on the storage configuration. So this will need more flexibility, using potentially a combination of additional YAML config attributes and Jinja2 templates based on the storage type.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the python.jinja2 base template and trace how STORAGE_CONFIG_YAML, Kubernetes-mounted SSH keys, and STORAGE_CREDENTIALS are currently handled. Review the storage configuration and storage types mentioned by the issue before deciding how YAML attributes and Jinja2 templates should vary; done means credential names and environment-variable definitions work for each supported storage configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, python
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100