This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Agent-based installation tools for OpenShift, supporting the openshift-install agent workflow. This repository contains utilities and tools for agent-based OpenShift installations.
tools/agent_tui/- Terminal User Interface for validating installation prerequisites (seetools/agent_tui/CLAUDE.md)tools/iso_builder/- ISO builder for creating bootable agent-based installer images (seetools/iso_builder/CLAUDE.md)pkg/version/- Version information packagehack/- Build and utility scriptsvendor/- Vendored Go dependencies
# Build agent-tui (requires nmstate-libs)
make build # Runs clean, lint, and build via hack/build.sh
make lint # Run golangci-lint
make clean # Remove bin/ directory
make run # Build and run agent-tui with RELEASE_IMAGEThe top-level Makefile builds the agent-tui tool. For iso_builder, change to tools/iso_builder/ and use its Makefile.
- Go >= 1.18 (enforced in
hack/build.sh) - For agent-tui: nmstate-devel package (CGO dependency) - install with
sudo dnf install nmstate-devel(requires unsandboxed Bash) - For iso_builder: xorriso, isohybrid, oc, podman, skopeo - install with
sudo dnf install -y xorriso syslinux skopeo(requires unsandboxed Bash)
Version information is injected via LDFLAGS during build:
pkg/version/version.godefinesRawandCommitvariableshack/build.shsets these via-ldflagsusingVERSION_URI,SOURCE_GIT_COMMIT, andBUILD_VERSION- Default values from Makefile:
SOURCE_GIT_COMMITfrom git HEAD,BUILD_VERSIONfrom git describe
- CGO is enabled for agent-tui builds with nmstate linking
- Vendored dependencies are committed to the repository