dev-k8s

command
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package main implements a lightweight fake Kubernetes API server for development.

This server provides file-backed storage with watch support, sufficient to run the nstance-operator locally without a real Kubernetes cluster. Resources are stored as JSON files under temp/dev-k8s/ organized by resource type and namespace.

Usage:

go run ./cmd/dev-k8s
go run ./cmd/dev-k8s -addr :6443 -dir temp/dev-k8s

The server supports:

  • CRUD operations for Secrets, ConfigMaps, and custom resources
  • Watch API via fsnotify file watching
  • Status subresource updates
  • MD5-based resourceVersion for conflict detection

Jump to

Keyboard shortcuts

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