Skip to content

Agentic docs part 2: operator patterns, practices, workflows, and ADRs#2049

Open
Prashanth684 wants to merge 2 commits into
openshift:masterfrom
Prashanth684:agentic-docs-part-2
Open

Agentic docs part 2: operator patterns, practices, workflows, and ADRs#2049
Prashanth684 wants to merge 2 commits into
openshift:masterfrom
Prashanth684:agentic-docs-part-2

Conversation

@Prashanth684

@Prashanth684 Prashanth684 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Expand the ai-docs/ tree with platform documentation, engineering
practices, process workflows, and architectural decision records.

Operator patterns (ai-docs/platform/):

  • controller-runtime: reconcile loop, watches, requeue strategies,
    Hypershift placement guidance
  • finalizers: cleanup lifecycle, external resource management
  • RBAC: service account permissions, least-privilege patterns
  • webhooks: validation, mutation, conversion webhook patterns
  • openshift-specifics index: pointers to upgrade strategies

Engineering practices (ai-docs/practices/):

  • testing/pyramid: unit/integration/e2e guidance, envtest
    examples, CI integration, coverage targets
  • development/api-evolution: safe vs breaking changes, graduation
    path policy (alpha→beta→GA or alpha→GA), versioning strategy,
    conversion webhooks, migration strategies, decision table
  • security index: STRIDE threat model, SCC/RBAC/NetworkPolicy
  • reliability index: SLI/SLO/SLA definitions, degraded-mode
    patterns, HA patterns (PDB, leader election)

Workflows (ai-docs/workflows/):

  • enhancement-process: AI-optimized checklist version of the
    enhancement template with API design checklist and review stages
  • implementing-features: spec→plan→build→test→review→ship pipeline,
    multi-PR strategy, rollout and graduation paths
  • exec-plans: guidance and template for tracking multi-week feature
    implementation across PRs and components

Architectural Decision Records (ai-docs/decisions/):

  • ADR-0001: CVO orchestrates cluster upgrades — runlevel ordering,
    upgrade completion criteria, self-managing design
  • ADR-0002: immutable node infrastructure — RHCOS + rpm-ostree +
    Ignition + MCO, reboot-by-default principle
  • ADR-0003: standardized status conditions — Available/Progressing/
    Degraded contract, CVO decision table, message conventions
  • ADR template and index

Updates AGENTS.md:

  • Remove must-gather reference (no standalone doc)
  • Replace etcd ADR with status conditions ADR
  • Narrow domain tree description to match current files

Expand the ai-docs/ tree with platform documentation, engineering
practices, process workflows, and architectural decision records.

Operator patterns (ai-docs/platform/):
- controller-runtime: reconcile loop, watches, requeue strategies,
  Hypershift placement guidance
- finalizers: cleanup lifecycle, external resource management
- RBAC: service account permissions, least-privilege patterns
- webhooks: validation, mutation, conversion webhook patterns
- openshift-specifics index: pointers to upgrade strategies

Engineering practices (ai-docs/practices/):
- testing/pyramid: unit/integration/e2e guidance, envtest
  examples, CI integration, coverage targets
- development/api-evolution: safe vs breaking changes, graduation
  path policy (alpha→beta→GA or alpha→GA), versioning strategy,
  conversion webhooks, migration strategies, decision table
- security index: STRIDE threat model, SCC/RBAC/NetworkPolicy
- reliability index: SLI/SLO/SLA definitions, degraded-mode
  patterns, HA patterns (PDB, leader election)

Workflows (ai-docs/workflows/):
- enhancement-process: AI-optimized checklist version of the
  enhancement template with API design checklist and review stages
- implementing-features: spec→plan→build→test→review→ship pipeline,
  multi-PR strategy, rollout and graduation paths
- exec-plans: guidance and template for tracking multi-week feature
  implementation across PRs and components

Architectural Decision Records (ai-docs/decisions/):
- ADR-0001: CVO orchestrates cluster upgrades — runlevel ordering,
  upgrade completion criteria, self-managing design
- ADR-0002: immutable node infrastructure — RHCOS + rpm-ostree +
  Ignition + MCO, reboot-by-default principle
- ADR-0003: standardized status conditions — Available/Progressing/
  Degraded contract, CVO decision table, message conventions
- ADR template and index

Updates AGENTS.md:
- Remove must-gather reference (no standalone doc)
- Replace etcd ADR with status conditions ADR
- Narrow domain tree description to match current files

Updates KNOWLEDGE_GRAPH.md:
- Replace must-gather doc reference with `oc adm must-gather --help`
@openshift-ci

openshift-ci Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign enxebre for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

…s, SNO detection, and guard pods

Correct several inaccuracies and add missing details across ai-docs:
- ClusterVersion: CVO checks Available/Degraded (not Progressing) for
  runlevel advancement; add missing conditions and runlevels 70/80
- ClusterOperator: separate required vs optional conditions; fix
  CreateOrUpdate guidance to note status subresource two-step pattern
- CRDs: clarify conversion webhook guidance applies to CVO-managed
  operators; OLM operators commonly use them
- Upgrade strategies: fix guard pod description (bare Pods, not
  Deployments); correct pre-upgrade Upgradeable check semantics
- Topology guide: use Infrastructure.Status.ControlPlaneTopology
  instead of deprecated node label for SNO detection
- Set DESIGN_PHILOSOPHY.md last-updated date
- Add path for optional operator workflow
@Prashanth684 Prashanth684 force-pushed the agentic-docs-part-2 branch from 837acfe to c2792a9 Compare June 29, 2026 20:56
@openshift-ci

openshift-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@Prashanth684: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant