Skip to content

Update the CRD migration docs for DatastoreMigration v1 - #2907

Merged
caseydavenport merged 5 commits into
tigera:mainfrom
caseydavenport:casey-migration-crd-v1-docs
Aug 6, 2026
Merged

Update the CRD migration docs for DatastoreMigration v1#2907
caseydavenport merged 5 commits into
tigera:mainfrom
caseydavenport:casey-migration-crd-v1-docs

Conversation

@caseydavenport

Copy link
Copy Markdown
Member

Product Version(s): Calico v3.33 (calico/), Calico Enterprise next (calico-enterprise/)

Issue: https://tigera.atlassian.net/browse/CORE-12573

Link to docs preview:

The DatastoreMigration CRD is promoted from migration.projectcalico.org/v1beta1 to v1 in v3.33. The v3.33 CRD serves both versions, with v1beta1 deprecated and v1 as storage, so applying it over the v3.32 CRD is a plain update. Calico-side changes are in projectcalico/calico#13383 and projectcalico/calico#13449.

This supersedes #2888, which documented the earlier plan of deleting the v1beta1 CRD before applying the new one. That turned out to be dangerous: deleting the CRD cascades to the DatastoreMigration CR and runs its finalizer, which either deletes every crd.projectcalico.org CRD (CR in Complete) or rolls the migration back (any other phase).

Changes:

  • Example CR uses migration.projectcalico.org/v1.
  • New final cleanup step: delete the CRD, but only once the CR is gone. This is also what lets a future release drop v1beta1 without a storage version migration.
  • Warning that a DatastoreMigration CRD must never be deleted while a CR still exists.
  • New upgrade section covering v3.32 to v3.33. The CRD is not part of an install, so the default answer is "nothing to do"; the table covers the cases where it isn't.
  • Abort is only possible up to Converged, and there is nothing to abort back to on a cluster that already migrated.

The same changes are mirrored on the unversioned Enterprise page, minus the upgrade section, since I don't know which Enterprise release picks this up.

SME review:

  • An SME has approved this change.

DOCS review:

  • A member of the docs team has approved this change.

@caseydavenport
caseydavenport requested a review from a team as a code owner August 6, 2026 13:03
Copilot AI review requested due to automatic review settings August 6, 2026 13:03
@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit faf96a3
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/6a74e224540d240008387504
😎 Deploy Preview https://deploy-preview-2907--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 6, 2026

Copy link
Copy Markdown

Deploy Preview succeeded!

Built without sensitive environment variables

Name Link
🔨 Latest commit faf96a3
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/6a74e224ac1b6000081ed7b2
😎 Deploy Preview https://deploy-preview-2907--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: 86 (🔴 down 8 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

Updates Calico and Calico Enterprise documentation to reflect the DatastoreMigration CRD promotion to migration.projectcalico.org/v1 (with v1beta1 deprecated) and to document safer cleanup/upgrade guidance around CR/CRD deletion ordering.

Changes:

  • Switch DatastoreMigration example CRs from migration.projectcalico.org/v1beta1 to migration.projectcalico.org/v1.
  • Add explicit warnings and cleanup steps to ensure the DatastoreMigration CR is deleted before deleting the CRD.
  • Add a Calico v3.32 → v3.33 upgrade section covering the new CRD versioning behavior and safe handling.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
calico/operations/crd-migration.mdx Updates migration procedure to v1, adds CRD deletion warning/cleanup, clarifies abort behavior, and adds v3.32→v3.33 upgrade guidance.
calico/getting-started/kubernetes/self-managed-onprem/onpremises.mdx Updates the on-prem migration walkthrough to use v1 and adds a post-migration CRD cleanup step/warning.
calico-enterprise/operations/crd-migration.mdx Mirrors the v1 migration doc updates and adds the CRD deletion warning/cleanup plus abort clarification for Enterprise docs.
Suppressed comments (2)

calico/operations/crd-migration.mdx:163

  • This sentence is slightly ambiguous: “up to Converged” can be read as including the Converged phase, but the next sentence says aborting isn’t available from Converged onward. Reword to remove ambiguity.
    calico-enterprise/operations/crd-migration.mdx:162
  • This sentence is ambiguous: “up to Converged” can be interpreted as including Converged, but the next sentence says aborting isn’t available from Converged onward. Reword to remove ambiguity.

Comment thread calico/operations/crd-migration.mdx
Comment thread calico-enterprise/operations/crd-migration.mdx

@ctauchen ctauchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

The controller refuses to start a new migration on a cluster that only serves the pre-GA CRD.
@caseydavenport
caseydavenport merged commit 37c04f7 into tigera:main Aug 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants