Skip to content

WIP: docs: describe how we prefer to test new configurations - #18771

Open
justinsb wants to merge 1 commit into
kubernetes:masterfrom
justinsb:docs-testing-new-configurations
Open

WIP: docs: describe how we prefer to test new configurations#18771
justinsb wants to merge 1 commit into
kubernetes:masterfrom
justinsb:docs-testing-new-configurations

Conversation

@justinsb

@justinsb justinsb commented Sep 1, 2026

Copy link
Copy Markdown
Member

What this does

Adds docs/contributing/testing_new_configurations.md describing our preferred test coverage for new cluster configurations, and links it from AGENTS.md (so both humans and AI coding assistants pick it up):

  1. Golden update cluster integration test (tests/integration/update_cluster/) — the preferred first line of coverage: verifies the rendered terraform end-to-end, and is reviewable as a terraform diff. Explicitly preferred over bespoke unit tests of model builders, which a golden scenario usually makes redundant (e.g. the hand-written model test in GCE: enable NAT64 for IPv6-only clusters #18520 vs the golden scenario in tests: add minimal_gce_ipv6 integration test #18769).
  2. e2e job in test-infra (build_jobs.py) — when real-cloud verification is needed; canary jobs are fine for WIP features (e.g. kops: add GCE IPv6 kindnet periodic job test-infra#37791).
  3. kops create cluster golden test (tests/integration/create_cluster/) — when the CLI/defaulting path itself needs coverage (e.g. GCE IPv6, where the update_cluster golden passed but kops create cluster --ipv6 failed outright, see WIP: gce: don't rewrite IPv6-only clusters to IPv4 in the IP-alias path #18770).

Also documents the HACK_UPDATE_EXPECTED_IN_PLACE workflow for generating golden output, and the dry-run technique for verifying spec population against a real cloud account without creating resources.

/kind documentation

Prefer golden update_cluster integration tests (reviewable terraform
output) over bespoke unit tests of model builders; add test-infra e2e
jobs for real-cloud verification; add create cluster golden tests when
the CLI path needs coverage. Linked from AGENTS.md so both humans and
AI coding assistants pick it up.
@kubernetes-prow kubernetes-prow Bot added kind/documentation Categorizes issue or PR as related to documentation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 1, 2026
@kubernetes-prow

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 zetaab 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

@kubernetes-prow
kubernetes-prow Bot requested a review from hakman September 1, 2026 21:37
@kubernetes-prow
kubernetes-prow Bot requested a review from olemarkus September 1, 2026 21:37
@justinsb justinsb changed the title docs: describe how we prefer to test new configurations WIP: docs: describe how we prefer to test new configurations Sep 1, 2026
@kubernetes-prow kubernetes-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/documentation Categorizes issue or PR as related to documentation. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant