acceptance

command
v1.85.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command acceptance exercises access-issuer against a real Kubernetes API server.

Everything else in this repository runs against fakes, and the fakes are honest about most things and silent about three: a real API server validates object names, refuses a create that raced another, and is the only thing that can answer a TokenReview. Those three are what the hub leans on for its store, its recovery path and its API listener's guard, so they are what this exercises.

It is a command rather than a test suite because it needs a cluster, and a cluster is not something `go test ./...` should assume. Point it at any cluster you may create objects in — kind, a scratch namespace, an ephemeral test tier — and it cleans up after itself:

go run ./cmd/acceptance -namespace acceptance-$USER

The `go test` side of the same thing is `internal/app`, which boots a whole hub from the environment and walks the use cases over the real handlers with nothing but memory behind it.

Jump to

Keyboard shortcuts

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