This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Go-based REST API service that acts as a Helm operator — installs and manages Helm chart deployments in Kubernetes clusters via HTTP endpoints. Uses Gin for routing and the Helm v3 SDK for chart operations.
- Build binary:
make build(outputs to./build/) - Build container:
make container(builds binary first, then Docker image) - Lint:
golangci-lint run ./...(binary at~/go/bin/golangci-lintif not in PATH) - Vet:
go vet ./... - Run tests:
make test(runsgo test -v -race -coverprofile=coverage.out ./...) - Coverage report:
make test-coverage(generates coverage.html)
cmd/main.go— Gin server entry point, defines/v1/createendpointoperator/operator.go— Helm operator logic (load chart, install release, verify)build/Dockerfile— Container image definition (debian:bookworm-slim)helm/memenow-resource-manager/— Helm chart for deploying this servicestable-diffusion-webui-on-k8s/— Helm chart for Stable Diffusion WebUI on K8s
- Commit messages: Conventional Commits format (
feat:,fix:,chore:,docs:,refactor:,ci:) - CI triggers on release creation — builds container, pushes to GHCR, signs with Cosign
- Standard
gofmtformatting - Follow Go conventions and idioms