Developer guide
This guide is for contributors who want to change the code of SIGHUP Distribution (SD).
Learn how SD works
Read How SD works and the core concepts first. To try SD, follow a tutorial.
If you have a question, contact us.
Find the repository
SD is modular, so its code is in many repositories:
| Repository | Content |
|---|---|
| distribution | The distribution: module versions (kfd.yaml), configuration schemas, defaults and templates. |
| furyctl | The command-line tool that manages the cluster lifecycle. |
| One repository for each module | The Kustomize bases of the module. See the modules for the list. |
| One repository for each installer | The Terraform and Ansible code that creates the Kubernetes cluster. See the installers. |
Use the repository tooling
Each repository has its own README.md and build tooling. Read the README.md before you start.
- Tasks. The newer repositories use mise:
mise taskslists the tasks, andmise run <task>runs one with the pinned tool versions. The older repositories use aMakefile: runmake help. - CI. The CI is Drone. The
.drone.ymlfile at the root of each repository has the pipelines. - License headers. Each source file has the SIGHUP BSD license header. After you add a file, run the
add-licensetask of the repository, or the CI fails. - Test a local copy of SD.
furyctl apply --distro-location <folder>reads the distribution from a local folder, not from GitHub. Use it to test a change before you push it. - Commits. Write the commit messages with Conventional Commits:
type(scope): message, for examplefix(monitoring): correct the alert threshold.
Propose a feature
Before you write code, open a Feature request issue in the distribution repository. Include:
- A short description of the feature.
- The environment where you need it.
- The alternatives that you know.
A SIGHUP engineer reviews the issue and tells you if SD can include the feature.
Send a pull request
- If a SIGHUP engineer accepted the idea, fork the repository.
- Create a branch with a descriptive name, for example
feat/envoy-rate-limit. - Work on your branch until the feature is stable. The SIGHUP engineer can help you.
- Open the pull request from your fork against the
mainbranch of the repository.
The SIGHUP Product Team reviews the pull request. After the approval, the change is merged and the end-to-end tests run. The Product Team decides when the change is released.