- Environment setup
- Style guide
- Writing and running tests
- Versioning and Release
- Changelog Entries
- When to fork upstream charts
- Handling configuration deprecations
- Attempt to catch problematic configurations
- Verifying registry
- Troubleshooting a development environment
Our contribution policies can be found in CONTRIBUTING.md
Contributing documentation changes to the charts requires only a text editor. Documentation is stored in the doc/ directory.
Before starting development, it is helpful to review the goals, architecture, and design decisions for the charts.
See Architecture of Cloud native GitLab Helm charts for this information.
See setting up your development environment to prepare your workstation for charts development.
See the chart development style guide for guidelines and best practices for chart development.
We run several different types of tests to validate the charts work as intended.
Unit tests are written in RSpec and stored in the
spec/ directory of the chart repository.
Read the notes on creating RSpec tests to validate the functionality of the chart.
GitLab QA can be used to run integrations and functional tests against a deployed cloud native GitLab installation.
ChaosKube can be used to test the fault tolerance of highly available cloud native GitLab installations.
Details on the version scheme, branching and tags can be found in release document.
CHANGELOG.md entries should be created via the changelog entries workflow.
Let it be stated that any chart that does not require changes to function for our use should not be forked into this repository.
If a given chart expects that sensitive communication secrets will be presented from within environment, such as passwords or cryptographic keys, we prefer to use initContainers.
There are some cases where it is needed to extend the functionality of a chart in such a way that an upstream may not accept.
There are times in a development where changes in behavior require a functionally breaking change. We try to avoid such changes, but some items can not be handled without such a change.
To handle this, we have implemented the deprecations template. This template is designed to recognize properties that need to be replaced or relocated, and inform the user of the actions they need to take. This template will compile all messages into a list, and then cause the deployment to stop via a
fail call. This provides a method to inform the user at the same time as preventing the deployment the chart in a broken or unexpected state.
See the documentation of the deprecations template for further information on the design, functionality, and how to add new deprecations.
Due to the complexity of these charts and their level of flexibility, there are some overlaps where it is possible to produce a configuration that would lead to an unpredictable, or entirely non-functional deployment. In an effort to prevent known problematic settings combinations, we have the following two patterns in place:
- We use schema validations for all our sub-charts to ensure the user-specified values meet expectations. See the documentation to learn more.
- We implement template logic designed to detect and warn the user that their
configuration will not work. See the documentation of the
checkConfigtemplate for further information on the design and functionality, and how to add new configuration checks.
In development mode, verifying Registry with Docker clients can be difficult. This is partly due to issues with certificate of
the registry. You can either add the certificate or
expose the registry over HTTP (see
Note that adding the certificate is more secure than the insecure registry solution.
Please keep in mind that Registry uses the external domain name of MinIO service (see
global.hosts.minio.name). You may
encounter an error when using internal domain names, e.g. with custom TLDs for development environment. The common symptom
is that you can log in to the Registry but you can’t push or pull images. This is generally because the Registry container(s)
can not resolve the MinIO domain name and find the correct endpoint (you can see the errors in container logs).
Developers may encounter unique issues while working on new chart features. Refer to the troubleshooting guide for information if your development cluster seems to have strange issues.