Skip to content

DOCS-2992: Add a pre-upgrade step to delete the Compliance resource - #2905

Open
caseydavenport wants to merge 3 commits into
tigera:mainfrom
caseydavenport:casey-compliance-upgrade-steps
Open

DOCS-2992: Add a pre-upgrade step to delete the Compliance resource#2905
caseydavenport wants to merge 3 commits into
tigera:mainfrom
caseydavenport:casey-compliance-upgrade-steps

Conversation

@caseydavenport

@caseydavenport caseydavenport commented Aug 4, 2026

Copy link
Copy Markdown
Member

Neither pass of the compliance removal (#2896 and the one before it) added an upgrade step, so anyone upgrading keeps a Compliance resource that nothing manages any more. This adds a pre-upgrade step to the Enterprise operator, Helm, and OpenShift upgrade pages: delete the resource, and remove it from any GitOps tooling so it does not come back. Deleting it before the upgrade is what lets Kubernetes garbage collect the compliance workloads and RBAC that the resource owns, while the operator still has a compliance controller around to clean up its status entry.

Applied to Calico Enterprise next only. The code removal went to master, and compliance still ships in the v3.24-1 and v3.24-2 release branches, so the versioned docs for those releases should keep describing it as present.

Jira: https://tigera.atlassian.net/browse/DOCS-2992

The Compliance resource owns the compliance workloads and RBAC, so deleting it before upgrade lets Kubernetes garbage collect them.
Copilot AI review requested due to automatic review settings August 4, 2026 20:48
@caseydavenport
caseydavenport requested a review from a team as a code owner August 4, 2026 20:48
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

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

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

Copy link
Copy Markdown

Deploy Preview succeeded!

Built without sensitive environment variables

Name Link
🔨 Latest commit 890d1bc
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/6a72888197804d0008a47196
😎 Deploy Preview https://deploy-preview-2905--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: 67 (🔴 down 7 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

Adds explicit pre-upgrade guidance to remove the now-orphaned Compliance custom resource when upgrading Calico Enterprise, ensuring Kubernetes can garbage-collect associated compliance workloads/RBAC and preventing GitOps from recreating the resource.

Changes:

  • Added a new “Compliance” pre-upgrade section to the OpenShift upgrade guide.
  • Added the same pre-upgrade “Compliance” deletion step to the Kubernetes operator and Helm upgrade guides.
  • Included GitOps-specific guidance to remove the CR from source manifests to prevent recreation.

Reviewed changes

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

File Description
calico-enterprise/getting-started/upgrading/upgrading-enterprise/openshift-upgrade.mdx Adds a pre-upgrade Compliance CR deletion step for OpenShift upgrades.
calico-enterprise/getting-started/upgrading/upgrading-enterprise/kubernetes-upgrade-tsee/operator.mdx Adds the Compliance CR deletion step for operator-based Kubernetes upgrades.
calico-enterprise/getting-started/upgrading/upgrading-enterprise/kubernetes-upgrade-tsee/helm.mdx Adds the Compliance CR deletion step for Helm-based Kubernetes upgrades.

oc delete compliance tigera-secure
```

If you manage $[prodname] resources with GitOps tooling, remove the Compliance resource from your source manifests as well. Otherwise the tooling recreates it after you upgrade.
kubectl delete compliance tigera-secure
```

If you manage $[prodname] resources with GitOps tooling, remove the Compliance resource from your source manifests as well. Otherwise the tooling recreates it after you upgrade.
kubectl delete compliance tigera-secure
```

If you manage $[prodname] resources with GitOps tooling, remove the Compliance resource from your source manifests as well. Otherwise the tooling recreates it after you upgrade.
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