Skip to main content

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:

RepositoryContent
distributionThe distribution: module versions (kfd.yaml), configuration schemas, defaults and templates.
furyctlThe command-line tool that manages the cluster lifecycle.
One repository for each moduleThe Kustomize bases of the module. See the modules for the list.
One repository for each installerThe 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 tasks lists the tasks, and mise run <task> runs one with the pinned tool versions. The older repositories use a Makefile: run make help.
  • CI. The CI is Drone. The .drone.yml file 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-license task 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 example fix(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​

  1. If a SIGHUP engineer accepted the idea, fork the repository.
  2. Create a branch with a descriptive name, for example feat/envoy-rate-limit.
  3. Work on your branch until the feature is stable. The SIGHUP engineer can help you.
  4. Open the pull request from your fork against the main branch 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.