Skip to content

DOCS-2967: Regenerate the Calico 3.31 Installation API reference - #2941

Merged
ctauchen merged 2 commits into
publish/oss-3.31.7from
api-ref-oss-3.31
Aug 20, 2026
Merged

DOCS-2967: Regenerate the Calico 3.31 Installation API reference#2941
ctauchen merged 2 commits into
publish/oss-3.31.7from
api-ref-oss-3.31

Conversation

@ctauchen

Copy link
Copy Markdown
Collaborator

Regenerates calico_versioned_docs/version-3.31/reference/installation/_api.mdx. One file changes.

Generated with make calico_versioned_docs/version-3.31__operator_reference against tigera/operator v1.40.14, which is the current tip of release-v1.40.

Pairs with #2939, which publishes Calico Open Source 3.31.7. That release ships the operator that added the new field, so the reference did not document it.

The diff adds spec.cni.specVersion to CNISpec, adds the CNISpecVersion enum with values Auto, 0.3.1, 0.4.0, and 1.0.0, defaulting to Auto, and turns the dscpMark type into a link.

To do:

  • Rerun the target once operator v1.40.15 is tagged, which is the version 3.31.7 pins, to confirm nothing else drifted.

Flags:

  • On main, 3.31 pins operator v1.40.13, so this file is now generated one patch ahead of the committed pin. v1.40.13 does not contain the field.
  • The dscpMark link points at an anchor that the generator emits no section for. The 3.31 file now matches the 3.32 file, which has the same dangling anchor.

Generated with the repo's operator reference target against tigera/operator
v1.40.14, which is the tip of release-v1.40 and the line that v1.40.15 will
be cut from. Calico 3.31.7 pins v1.40.15.

Adds spec.cni.specVersion and the CNISpecVersion enum, which the operator
gained in v1.40.14. Also links the dscpMark type, which the older generated
file left as plain text.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 20, 2026 20:01
@ctauchen
ctauchen requested a review from a team as a code owner August 20, 2026 20:01
@netlify

netlify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploy Preview for calico-docs-preview-next ready!

Name Link
🔨 Latest commit 3bb9570
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/6a875f43d70af800081b9b12
😎 Deploy Preview https://deploy-preview-2941--calico-docs-preview-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploy Preview succeeded!

Name Link
🔨 Latest commit 3bb9570
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/6a875f43c0dabf000895539a
😎 Deploy Preview https://deploy-preview-2941--tigera.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 71 (🟢 up 15 from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Regenerates the Calico OSS 3.31 versioned Installation API reference, updating the generated CRD schema documentation to reflect operator changes (notably adding spec.cni.specVersion) and improving type linking in the output MDX.

Changes:

  • Adds spec.cni.specVersion to CNISpec and documents the new CNISpecVersion enum (default Auto).
  • Updates dscpMark to render as a linked type (currently producing a broken anchor link in this file).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

| `istioCNI` _[IstioCNIDaemonset](#istiocnidaemonset)_ | (Optional) IstioCNIDaemonset defines the resource requirements for the Istio CNI plugin. |
| `ztunnel` _[ZTunnelDaemonset](#ztunneldaemonset)_ | (Optional) ZTunnelDaemonset defines the resource requirements for the ZTunnelDaemonset component. |
| `dscpMark` _DSCP_ | (Optional) DSCPMark define the value of the DSCP mark done by Felix and recognised by Istio CNI for Transparent NetworkPolicies. |
| `dscpMark` _[DSCP](#dscp)_ | (Optional) DSCPMark define the value of the DSCP mark done by Felix and recognised by Istio CNI for Transparent NetworkPolicies. |
The regeneration relinked dscpMark to #dscp, an anchor the generator emits no
section for. Commit ec7d290 unlinked it on purpose, for DOCS-2979. Restoring
that leaves this PR purely additive.

The generator will keep relinking it on every run, so the durable fix belongs
in the templates or a post-processing step.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 20, 2026 20:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (2)

calico_versioned_docs/version-3.31/reference/installation/_api.mdx:342

  • The Auto value description leaks the internal Go identifier CNISpecVersionAuto and has trailing extra spaces before the table delimiter; this reads oddly in user-facing docs and may trigger linters that flag double-spaces.
| `Auto` | CNISpecVersionAuto lets the operator choose the CNI spec version. The chosen version may be raised in future operator versions as older container runtimes fall out of support.  |

calico_versioned_docs/version-3.31/reference/installation/_api.mdx:325

  • PR description says this regeneration "turns the dscpMark type into a link", but the generated file still shows dscpMark with the unlinked _DSCP_ type (see line 1844). Either update the PR description to match the actual diff, or include the intended generator output change if it was missed.
| `specVersion` _[CNISpecVersion](#cnispecversion)_ | (Optional) SpecVersion configures the CNI specification version declared in the CNI configuration ("cniVersion") that the operator generates. Auto (the default) lets the operator choose an appropriate version, which may increase across operator upgrades. Pin an explicit version if a chained CNI plugin or container runtime in your environment requires one. Only relevant when using the Calico CNI plugin.<br />Default: Auto |

@ctauchen
ctauchen changed the base branch from main to publish/oss-3.31.7 August 20, 2026 20:18
@ctauchen
ctauchen merged commit b29b02e into publish/oss-3.31.7 Aug 20, 2026
11 checks passed
@ctauchen
ctauchen deleted the api-ref-oss-3.31 branch August 20, 2026 20:18
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