cluster-kube-apiserver-operator: Instructions file for Codex

AGENTS.md

cluster-kube-apiserver-operator AGENTS.md is an instructions file for Codex, OpenCode from openshift/cluster-kube-apiserver-operator. It costs 1,284 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for an OpenShift operator that manages the Kubernetes API server on cluster control-plane nodes. They describe its Go codebase, build commands, tests, project structure, and operating conventions.

In plain words
What is it for?
Use them when developing, testing, or verifying the cluster kube-apiserver operator and its certificate, encryption, or static-pod management code.
Why use it?
They provide the context needed to change a system component safely and run the appropriate checks. They also distinguish unit tests from long-running end-to-end tests.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is openshift/cluster-kube-apiserver-operator's own configuration. It tells Codex and OpenCode how to work on cluster-kube-apiserver-operator itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cluster-kube-apiserver-operator configures →

Reuse

Borrowing it

Nothing to install: this file belongs to openshift/cluster-kube-apiserver-operator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/openshift/cluster-kube-apiserver-operator/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/openshift/cluster-kube-apiserver-operator

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cluster-kube-apiserver-operator AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/openshift/cluster-kube-apiserver-operator/agents-md/github.svg)](https://agentmods.dev/instructions/openshift/cluster-kube-apiserver-operator/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/openshift/cluster-kube-apiserver-operator/agents-md"><img src="https://agentmods.dev/badge/instructions/openshift/cluster-kube-apiserver-operator/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cluster-kube-apiserver-operator AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/openshift/cluster-kube-apiserver-operator/agents-md"><img src="https://agentmods.dev/badge/instructions/openshift/cluster-kube-apiserver-operator/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,284 This file is loaded in full into every session.
When invoked 1,284 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01284 $0.01284
Opus 5.5 $0.00514 $0.00514
Sonnet 5.5 $0.00257 $0.00257
Haiku 4.5 $0.00128 $0.00128

Measured 2mo ago against content hash c5f50f23c39f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cluster-kube-apiserver-operator AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cluster Kube API Server Operator

A static pod operator that manages the lifecycle of kube-apiserver on OpenShift control plane nodes. Built on the library-go static pod operator framework, it observes cluster configuration, rotates certificates, manages encryption at rest, and reconciles the target kube-apiserver config into static pod manifests. Installed by the Cluster Version Operator (CVO).

See ARCHITECTURE.md for the full design and data flow.

Build and Test

make build                       # Build all binaries (operator + OTE test runner)
make test                        # Unit tests (./pkg/... ./cmd/...)
make verify                      # Formatting, vetting, golang version checks
make test-e2e                    # E2E operator tests (3h timeout, serial)
make test-e2e-encryption-aescbc  # Encryption tests with aescbc provider (4h)
make test-e2e-encryption-kms     # KMS encryption tests (4h)
make update-bindata-v4.1.0       # Copy apirequestcounts CRD from vendor/
make verify-bindata-v4.1.0       # Verify apirequestcounts CRD is in sync

Go version: see go.mod.

Project Structure

Directory Purpose
cmd/cluster-kube-apiserver-operator/ Operator binary entry point (operator, render, installer, pruner, startup-monitor, cert controllers, and more)
cmd/cluster-kube-apiserver-operator-tests-ext/ OpenShift Tests Extension (OTE) test runner entry point
pkg/operator/starter.go Operator initialization — creates clients, informers, and starts all controllers
pkg/operator/targetconfigcontroller/ Renders observed config + defaults into kube-apiserver ConfigMaps/Secrets
pkg/operator/configobservation/ Configuration observers — each observer watches a cluster state to infer the operand config
pkg/operator/certrotationcontroller/ Certificate rotation for serving, LB, aggregator, kubelet, etc. certs
pkg/operator/resourcesynccontroller/ Syncs ConfigMaps/Secrets between namespaces
pkg/operator/operatorclient/ Namespace constants and operator client interfaces
pkg/cmd/render/ Bootstrap manifest renderer for cluster installation
pkg/recovery/ Disaster recovery API server pod generation
bindata/ Embedded assets: default config, static pod template, alerts, RBAC, bootstrap manifests
manifests/ CVO deployment manifests (namespace, deployment, RBAC, ServiceMonitors)
test/e2e*/ E2E test suites (operator, encryption, encryption-rotation, encryption-perf, KMS, SNO)
test/library/ Shared test utilities

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 71 lines · 1,284 tokens per session scan A c5f50f23c39f

Subscribe to this mod's changes

cluster-kube-apiserver-operator AGENTS.md is an instructions file published in the GitHub repository openshift/cluster-kube-apiserver-operator (82 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,284 tokens to every session, about $0.0051 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

cluster-kube-apiserver-operator AGENTS.md compared with instructions from other repositories

cluster-kube-apiserver-operator AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cluster-kube-apiserver-operator AGENTS.mdopenshift/cluster-kube-apiserver-operatorInstructions file82yesterdayApache-2.0A1,284Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode