Repository navigation
Conversation
Document the two manual steps a 3.34 -> earlier downgrade needs: pruning v1beta1 from the ClusterNetworkPolicy CRD's storedVersions, and deleting the protect-cni-annotations.projectcalico.org ValidatingAdmissionPolicy that the earlier release leaves behind.
✅ Deploy Preview for calico-docs-preview-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview succeeded!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🟡 Changes recommended
The upgrade guide’s rollback procedure is unreliable for Helm-managed installations because applying older manifests may leave the newer operator/CNI active, so the downgrade steps need revision.
1 open issue
What changed in this PR
Adds Calico 3.34 downgrade guidance for CRD storage-version conflicts and lingering CNI admission policies.
Changes:
- Documents the ClusterNetworkPolicy CRD workaround.
- Documents removal of the stale CNI ValidatingAdmissionPolicy and binding.
- Provides policy backup and restoration steps.
| File | Description |
|---|---|
| calico/operations/upgrading/upgrade-notes.mdx | Adds known downgrade issues and remediation steps for the ClusterNetworkPolicy CRD and CNI admission policy. |
Review effort: Lite
Scale the operator to 0, fix the CRD and delete the VAP before applying the earlier manifests, so pods are never blocked during the downgrade.
Rewriting each policy after switching storage to v1alpha2 keeps them enforced throughout. Replace the replica-count claim with a check.
lwr20
left a comment
There was a problem hiding this comment.
LGTM. Tested c993417 end to end on kind (k8s 1.36.4): v3.33.1 → v3.34 (dev-6015) → steps 1–6 → v3.33.1, once with the operator manifests and once with Helm and the v3.3x CRD charts. Every command worked as written. The v3.33 CRD applied cleanly, the operator came back by itself, and new pods start and delete normally after the downgrade. The ClusterNetworkPolicies kept their UIDs and stayed enforced throughout. Not tested on EKS with the AWS VPC CNI.
Nit (non-blocking): right after the CRD downgrade, kubectl get clusternetworkpolicies can return NotFound until kubectl's discovery cache refreshes. A one-line note might save someone a scare.


Product Version(s):
Calico Open Source 3.34 (next).
Issue:
https://tigera.atlassian.net/browse/CORE-14020
https://tigera.atlassian.net/browse/CORE-14037
Link to docs preview:
https://deploy-preview-3284--calico-docs-preview-next.netlify.app/calico/next/operations/upgrading/upgrade-notes#known-issues-when-downgrading-from-calico-334-to-an-earlier-version
SME review:
DOCS review:
Additional information:
Adds "Known issues when downgrading from Calico 3.34 to an earlier version" at the bottom of the upgrade notes, as the docs team suggested. It explains two blockers:
v1beta1. The API server then refuses the earlierv1alpha2-only CRD becausev1beta1is instatus.storedVersions.cniannotationsgrant but leaves the 3.34 VAP in place, so every pod sandbox create/delete is denied.It then gives one procedure that fixes both before the downgrade: scale the operator to 0, switch the CRD's storage to
v1alpha2, rewrite every CNP in place so it is stored asv1alpha2(they stay enforced throughout), prunestoredVersions, delete the admission policies 3.34 installs (protect-cni-annotationsandprotect-aws-vpc-annotationsVAPs, and thestrip-cni-annotationsMAP where served) with their bindings, then downgrade with the earlier manifests or Helm chart and check the operator is running.The in-place migration is safe across the downgrade: 3.34's
v1alpha2schema is 3.33's minusdestinationNamedPortand with a stricter CIDR rule, so every policy 3.34 accepts is valid under 3.33.AI assistance: Claude Code drafted the section from the two Jira tickets and checked details against
release-v3.34: the CRD version order, that thev1alpha2andv1beta1schemas in the v0.3.1 CRD are identical with no conversion webhook, and that the manifest installs ship the same VAP.Merge checklist: