Skip to content

Conversation

@lihongan
Copy link
Contributor

Summary

  • Add comprehensive CLAUDE.md file to guide Claude Code and other AI assistants when working with the cluster-ingress-operator codebase

Details

This PR adds a CLAUDE.md file that provides:

  • Build and test commands: How to build, run unit tests, e2e tests, and verification
  • Development workflows: Local development (recommended), cluster deployment, and remote builds
  • Architecture overview: Controller pattern, DNS provider abstraction, load balancer management
  • Key concepts: IngressController resources, e2e test organization, immutable fields
  • Common debugging: Useful oc commands for troubleshooting operator and ingress controllers

The documentation focuses on non-obvious, repository-specific information that requires reading multiple files to understand, helping AI assistants be productive more quickly.

Test plan

  • Verified CLAUDE.md markdown formatting renders correctly
  • Reviewed all commands and code references are accurate
  • Ensured documentation aligns with current codebase structure

🤖 Generated with Claude Code

Add comprehensive CLAUDE.md file to guide Claude Code and other AI assistants
when working with the cluster-ingress-operator codebase.

The documentation includes:
- Build and test commands (unit, e2e, verification)
- Development workflows (local, cluster deployment, remote builds)
- Architecture overview (controllers, DNS providers, load balancers)
- Key concepts (IngressController resources, test organization)
- Common debugging commands

This will help AI assistants be productive more quickly by understanding
the repository structure, common patterns, and development practices.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@openshift-ci openshift-ci bot requested review from gcs278 and knobunc October 29, 2025 10:30
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 29, 2025

[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 grzpiotrowski for approval. For more information see the Code Review Process.

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

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

Comment on lines +64 to +76
### Local Development (Recommended)

Run the operator locally without deploying to cluster:

```bash
make run-local # Build and run operator from local machine
# Set ENABLE_CANARY=true to enable ingress canary during local runs
```

This scales down the cluster's operator and runs your local binary against the cluster. To restore cluster operator:

```bash
oc scale --replicas 1 -n openshift-cluster-version deployments/cluster-version-operator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is for claude to gain context regarding the repo for code generation assistance, would this be relevant information?

Comment on lines +198 to +202
## Working with Gateway API

Gateway API support is experimental and requires Service Mesh operator:

```bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we include links relating to gateway api either documentation or repos, would that be easier for the ai agent to index for more context and understanding?

@Thealisyed
Copy link
Contributor

Also I wanted to add Claude for reviewing in this repo, similar to what Joel did but I will wait for this PR to merge first

@lihongan
Copy link
Contributor Author

This file and commit/comment are all generated by Claude and I didn't change anything, and the PR is opened by Claude as well. This is for experiment.

Maybe after including more links relating to gateway api either documentation or repos, then ask Claude to regenerate the file and update the PR again ?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 29, 2025

@lihongan: all tests passed!

Full PR test history. Your PR dashboard.

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.

@Thealisyed
Copy link
Contributor

Ah okay very cool. Yes! I've found giving claude a link to doc or even with a few links, it can index and understand better to create files that are more accurate

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.

2 participants