operator-dev

Automate Kubernetes/OpenShift operator builds with controller-runtime best practices.

1|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/wangke19/my-claude-skills --skill operator-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: operator-dev
Source: https://github.com/wangke19/my-claude-skills/tree/main/plugins/ocp/skills/operator-dev
Command: npx skills add https://github.com/wangke19/my-claude-skills --skill operator-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured protocol and checklist for building or modifying Kubernetes/OpenShift operators using controller-runtime, delivering consistent reconciliation, idempotency, finalizers, status handling, and RBAC considerations.

Core Features & Use Cases

  • Reconciliation patterns: idempotent reconcile loops and robust finalizer handling.
  • RBAC and permissions: guidance for secure access controls and status updates.
  • Testing guidance: unit and end-to-end testing patterns for controllers.

Quick Start

Apply the protocol to implement a reconciler with idempotent logic, finalizers, status updates, and RBAC checks.

Frequently Asked Questions about operator-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement idempotent reconciliation loops in a Kubernetes operator?

Idempotent reconciliation in a Kubernetes operator ensures repeated reconcile calls produce the same resource state without side effects. This skill provides a structured protocol using controller-runtime to handle idempotent logic, robust finalizers, and status updates consistently.

What is the best way to handle finalizers and status conditions in controller-runtime?

Finalizers and status conditions in controller-runtime manage resource cleanup and report reconciliation state. This skill specifies pattern implementations for robust finalizer handling and status updates to ensure safe deletion and accurate status reporting.

How do I set up RBAC and permissions for a Kubernetes operator?

Setting up RBAC for a Kubernetes operator involves defining secure access controls for resource manipulation. This skill provides guidance for RBAC review and permission specification to ensure your controller-runtime operator follows secure access practices.

What are the patterns for unit and E2E testing Kubernetes controllers?

Unit and E2E testing for Kubernetes controllers validate reconciliation logic and cluster integration. This skill delivers testing guidance and patterns for building robust test suites across controller-runtime controllers to ensure deployment reliability.

Does this operator development protocol work for modifying existing OpenShift operators?

Yes, this operator development protocol applies to both building and modifying existing Kubernetes or OpenShift operators. It delivers a structured checklist to ensure existing controllers correctly implement idempotent reconciliation, finalizers, and RBAC.

Why do I need a structured protocol for Kubernetes operator development?

A structured protocol for Kubernetes operator development ensures consistent implementation of complex controller patterns. This skill automates best practices for reconciliation, finalizers, status handling, and RBAC, preventing common controller-runtime errors.