stubcontrolplane

command
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 17 Imported by: ? 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 stubcontrolplane runs the fake control plane (fakecontrolplane) as a server, for the end-to-end test on kind: it implements api/controlplane/v1 with its own CA, so this repository's tests never need a real control plane. Not for production.

An admin listener serves the CA (/ca.crt), for the operator's trust bundle, and what the stub saw (/stats, JSON: calls, Hellos, heartbeats, policy acks and nacks, request counts per policy, and a summary of the newest ClusterState), for the test's checks. POST /snapshot sends a PolicySnapshot (Managed mode): the body is a YAML or JSON list of WAFPolicy, WAFRuleSet, ClusterWAFRuleSet and WAFIPList objects ([] for none), and ?version=N its version (default: one more than the last).

Jump to

Keyboard shortcuts

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