thecluster-operator

module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: Apache-2.0

README

THECLUSTER Operator

Hercules CI

An operator for useful stuff in your CLUSTER. WIP.

APIs

Group Kind What it does
core.thecluster.io WireguardClient Runs a linuxserver/wireguard client
pia.thecluster.io WireguardConfig Generates a WireGuard config from PIA credentials
registry.thecluster.io Registry Connects to a Harbor instance
registry.thecluster.io ProxyCache A pull-through cache of one upstream registry

Samples live in config/samples/.

Registries

The registry.thecluster.io group describes registries by what they do rather than how a product configures it. Harbor is the only backend so far.

  • Registry points at a Harbor instance with an administrator's password from a Secret, and reports Ready plus the host clients pull from.
  • ProxyCache is a pull-through cache of one upstream (Docker Hub, ghcr.io, quay.io, or any distribution registry). On Harbor it becomes a registry endpoint and a proxy-cache project, both named after the ProxyCache, and status.endpoint is the prefix to pull through. Settings changed in Harbor are put back on the next resync, every ten minutes. Deleting the ProxyCache deletes the project, its cached images, and the endpoint.

Development

Everything comes from the Nix devshell: copy hack/example.envrc to .envrc for direnv, or prefix commands with nix develop -c.

make test       # envtest suites; KUBEBUILDER_ASSETS is set by the devshell
make lint       # golangci-lint
make fmt        # treefmt
make check      # nix flake check
make manifests generate  # regenerate CRDs, RBAC and deepcopy code after editing api/
make kind-cluster test-e2e

Install

The Helm chart is in dist/chart, regenerated from config/ by make helm. Images are published to ghcr.io/unmango/thecluster-operator.

helm install thecluster-operator ./dist/chart \
  --namespace thecluster-operator-system --create-namespace

Directories

Path Synopsis
api
core/v1alpha1
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group.
pia/v1alpha1
Package v1alpha1 contains API Schema definitions for the pia v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the pia v1alpha1 API group.
registry/v1alpha1
Package v1alpha1 contains API Schema definitions for the registry v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the registry v1alpha1 API group.
internal
harbor
Package harbor is a minimal client for the parts of Harbor's v2.0 API the registry controllers use: registry endpoints, projects, and the repositories that have to go before a project can be deleted.
Package harbor is a minimal client for the parts of Harbor's v2.0 API the registry controllers use: registry endpoints, projects, and the repositories that have to go before a project can be deleted.
harbor/harbortest
Package harbortest is an in-memory stand-in for the parts of Harbor's API that package harbor calls.
Package harbortest is an in-memory stand-in for the parts of Harbor's API that package harbor calls.
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL