origin / rules
Cursor rule8.7k starsChanged 4 months agoApache-2.0View on GitHub
Testing guidelines and patterns for origin
We split this testing.mdc into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 6
Use go vet ./... and go test ./pkg/...
≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: Testing guidelines and patterns for origin globs: "**/*_test.go" --- * Use `go vet ./...` and `go test ./pkg/...` to validate changes before committing. * E2e tests in `test/extended/<area>/` are **platform-level tests for OpenShift** — they run against a live cluster to validate the product, not just this repo. They use the **Ginkgo** framework and are compiled into the `openshift-tests` binary that CI runs against every payload. * `test/extended/include.go` blank-imports every e2e test package — new packages **must** be added there or they won't be compiled into the binary. * Unit tests in `pkg/` use standard Go `testing` with **table-driven** patterns. * Build the test binary: `make openshift-tests` or `make build`. * For unit tests, prefer **table-driven tests** with descriptive case names. Search the same package for existing test patterns before writing new ones.
Trending
Quiet this year.about the whole repository
Who's talking about openshift/origin
- kubernetes/kubernetes“RFC: Deployment hooks”GitHub · Sep 24, 2015 · 53 reactions
- kubernetes/kubernetes“kubectl port-forward doesn't properly recover from interrupted connection errors”GitHub · May 28, 2019 · 52 reactions
- kubernetes/kubernetes“Setting defaultMode is not Fully Respected When Pod.spec.securityContext.runAsUser is Set”GitHub · Jan 6, 2018 · 38 reactions
- kubernetes/kubernetes“support label selector in RBAC”GitHub · Apr 20, 2017 · 29 reactions
- Stack Overflow“OpenShift Origin vs OpenShift Enterprise”Stack Overflow · Mar 10, 2016 · 28 votes
The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 51
Talked about on Stack Overflow, GitHub and Hacker News (51 times).
On Stack Overflow · 26
- Mar 10, 2016OpenShift Origin vs OpenShift Enterprise28 votes
- Sep 21, 2015kubernetes : Service shared between multiple namespaces10 votes · 1 answer
- Aug 10, 2017Unable to push a docker image to local OpenShift Origin registry8 votes · 2 answers
- Dec 30, 2017Kubernetes pod secrets /var/run/secrets missing7 votes · 1 answer
- Sep 15, 2017Explain the last dash in a bash/pipe expression7 votes · 1 answer
21 more on Stack Overflow
- Sep 6, 2019How to get rollback to use the older image instead of staying on the newest (externally built)?5 votes · 2 answers
- Jan 27, 2019openshift oc need libcrypto.so.105 votes
- Sep 10, 2015Can't access OpenShift console on http://ip:84435 votes · 2 answers
- Jan 9, 2017Making openshift origin docker containers persistent after reboot4 votes
- Dec 28, 2016OpenShift Origin Project(s) getting lost on bringing cluster down and up again4 votes
- Aug 31, 2021Create OpenShift TLS route from secret3 votes
- Dec 11, 2020openshift 3.11 oc command : error: Error loading config file ".kube/config": yaml: line 11: could not find expected ':'3 votes · 1 answer
- Jun 25, 2020Create OpenShift TLS route from secret3 votes
- Sep 9, 2018OpenShift docker registry can't pull an image from registry-1.docker.io3 votes · 1 answer
- Feb 18, 2018Kubernetes - Jenkins integration3 votes
- Jan 30, 2018Moving a docker-compose container to openshift V33 votes
- Mar 2, 2017How to specify OpenShift image when creating a Job3 votes
- Oct 19, 2015Unable to mount volumes for pod3 votes · 1 answer
- Apr 14, 2020Unable to reuse existing Persistent Volume (GlusterFS)2 votes · 1 answer
- Sep 23, 2019OC Cluster never goes up Error: timed out waiting for the condition2 votes
- Jan 4, 2018pods can't resolve DNS after 'oc cluster up'2 votes
- Sep 9, 2017OpenShift oc command line with Cygwin2 votes
- Dec 14, 2016Openshift online zookeeper from dockerfile pod "Crash loop back off"2 votes
- Nov 3, 2016User "system" cannot list all services in the cluster2 votes
- Feb 22, 2016Proxy configuration for OpenShift Origin2 votes · 1 answer
- Aug 22, 2014Docker application Portability in Openshift2 votes
On GitHub · 22
- Sep 24, 2015RFC: Deployment hooks — kubernetes/kubernetes53 reactions · 31 comments
- May 28, 2019kubectl port-forward doesn't properly recover from interrupted connection errors — kubernetes/kubernetes52 reactions · 57 comments
- Jan 6, 2018Setting defaultMode is not Fully Respected When Pod.spec.securityContext.runAsUser is Set — kubernetes/kubernetes38 reactions · 49 comments
- Apr 20, 2017support label selector in RBAC — kubernetes/kubernetes29 reactions · 33 comments
- Nov 29, 2018gRPC code Unavailable instead Canceled — etcd-io/etcd13 reactions · 29 comments
17 more on GitHub
- Aug 3, 2017Fix broken watches — kubernetes/kubernetes13 reactions · 90 comments
- Oct 28, 2021Allow Namespaced ArgoCD/GitOps to create Projects — redhat-developer/gitops-operator11 reactions · 5 comments
- Apr 24, 2023[OKD 4.11][AWS] Installing cluster fails since new S3 bucket settings — okd-project/okd10 reactions · 8 comments
- Nov 5, 2018ADD does not support ENV/ADD variables — GoogleContainerTools/kaniko7 reactions · 2 comments
- Jan 17, 2019Release official builds (Linux) — podman-container-tools/skopeo6 reactions · 18 comments
- Feb 26, 2018Can't use docker-registry.default.svc in pod spec — minishift/minishift-centos-iso6 reactions · 4 comments
- May 12, 2020feat(route): Implements rewrite-target for ha-proxy — openshift/router4 reactions · 54 comments
- Mar 5, 2025SPLAT-2060: Create e2e tests for vSphere Data Disk feature — openshift/machine-api-operator3 reactions · 23 comments
- Mar 29, 2023ETCD-409: add etcd-recovery suite to aws — openshift/release3 reactions · 12 comments
- Sep 26, 2022Add etcd-scaling workflows to step-registry — openshift/release3 reactions · 23 comments
- Aug 23, 2021Allow /approve to be misspelled as /approved — kubernetes/test-infra3 reactions · 13 comments
- May 12, 2020feat(router): Adds documentation for haproxy.router.openshift.io/rewrite-target — openshift/openshift-docs3 reactions · 10 comments
- Jul 14, 2025CCO-690: Integrate OpenShift Test Extension framework for CCO — openshift/cloud-credential-operator2 reactions · 55 comments
- Jan 16, 2025NO-JIRA: bump(origin) — openshift/openstack-test2 reactions · 7 comments
- Apr 9, 2020[WIP] Fix eposing for passthrough routes — tnozicka/openshift-acme2 reactions · 12 comments
- Jun 25, 2019 Introduce package kube-types: add generators for OpenShift and KubeVirt TypeScript definitions — openshift/console2 reactions · 15 comments
- Jan 4, 2019Fix systemd cpu/memory problems on RedHat — puppetlabs/puppetlabs-kubernetes2 reactions · 1 comment
On Hacker News · 3
- Aug 4, 2017Epel just broke1 point
- Jun 19, 2015OpenShift Origin v1.0.0 released1 point
- Jan 29, 2015OpenShift 3 Application Lifecycle Supports Docker1 point
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 3,978 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/general.mdcCursor rule
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

