Files
ess-helm/matrix-tools
dependabot[bot] f2b740331e Bump the minor-and-patches group in /matrix-tools with 3 updates
Bumps the minor-and-patches group in /matrix-tools with 3 updates: [k8s.io/api](https://github.com/kubernetes/api), [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) and [k8s.io/client-go](https://github.com/kubernetes/client-go).


Updates `k8s.io/api` from 0.35.1 to 0.35.2
- [Commits](https://github.com/kubernetes/api/compare/v0.35.1...v0.35.2)

Updates `k8s.io/apimachinery` from 0.35.1 to 0.35.2
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.35.1...v0.35.2)

Updates `k8s.io/client-go` from 0.35.1 to 0.35.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.35.1...v0.35.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.35.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patches
- dependency-name: k8s.io/apimachinery
  dependency-version: 0.35.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patches
- dependency-name: k8s.io/client-go
  dependency-version: 0.35.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patches
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-03-02 23:34:37 +00:00
..

Developer Guide for matrix-tools Go Project

Overview

The matrix-tools Go project is designed to handle dynamic configuration builds and other chart features. This guide provides detailed information on setting up the development environment, running tests, and understanding the project structure.

Prerequisites

Before starting development, ensure you have the following tools installed:

Installation

Setting up the Go Environment

  1. Install Go 1.23.4.
  2. Initialize your Go environment by setting up your GOPATH and GOROOT.

Installing Dependencies

Use go mod to manage dependencies:

# Navigate to the project root directory
cd path/to/matrix-tools

# Download all dependencies
go mod download

Development Environment

Building the Project

Building the Go Application

To build the Go application, run:

cd matrix-tools
go build -o matrix-tools cmd/main.go

Linting

The project linting uses golangci-lint

golangci-lint run ./...

Project structure

matrix-tools is built around subcomands calling different internal packages :

  • render-config relies on package internal/pkg/renderer
  • tcpwait relies on package internal/pkg/tcpwait

Render Config

render-config is a command line tool that renders a YAML config file from a list of YAML input files. These files are deep merged. Similarly to envsubstr, it supports the use of environment variables in config files and will interpolate them during rendering. Their interpolation supports go templating. 3 template functions are available :

  • hostname returns the hostname of the machine.
  • readfile reads a file and returns its content as string.
  • replace replaces occurrences of a substring with another substring in the input string.
  • quote quotes the input string with double quotes.

TCP Wait

tcpwait is a command line tool that waits until a given port becomes available on a given address.

Running Tests

The project includes unit tests for various components. To run all tests:

# Run tests using go test
go test ./...