📖 Docs/namespace renaming known limitation - #744
Conversation
…g and NetworkPolicy
…g and NetworkPolicy
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
🚧 Files skipped from review as they are similar to previous changes (8)
📝 WalkthroughWalkthroughThe documentation lists ChangesNamespace Renaming Documentation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/CRANE_COMPATIBILITY_MATRIX.md`:
- Around line 42-43: Update the affected documentation references to use the
Kubernetes API field name “namespaceSelector” and explain that selectors match
namespace labels, such as “kubernetes.io/metadata.name: old-ns”, rather than
pointing to bare namespace names. Apply this wording consistently in
docs/CRANE_COMPATIBILITY_MATRIX.md lines 42-43 and 76,
docs/resource-compatibility.md lines 42-43 and 76, docs/commands/transform.md
lines 265-270, docs/kustomize-multistage.md lines 482-483,
docs/multistage-pipeline.md lines 473-474, docs/plugins.md lines 78-79,
docs/pre-apply-validation-guide.md lines 92-93, and
docs/stateless-migration-quickstart.md lines 296-297.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: a3d51ee0-2985-4c0a-b50f-8143823a5c5a
📒 Files selected for processing (8)
docs/CRANE_COMPATIBILITY_MATRIX.mddocs/commands/transform.mddocs/kustomize-multistage.mddocs/multistage-pipeline.mddocs/plugins.mddocs/pre-apply-validation-guide.mddocs/resource-compatibility.mddocs/stateless-migration-quickstart.md
|
/rfr |
#732
Summary
Documents a known limitation: when a namespace is renamed during migration, Crane does not automatically update
references to the old namespace name in ClusterRoleBinding
subjectsor NetworkPolicynamespaceSelectors. Bothcases silently break after migration.
Changes
Added a warning in all relevant docs entry points:
docs/commands/transform.md- in the Pass-Through Stages section (where manual renaming happens)docs/plugins.md- before the--optional-flagsnamespace-rename exampledocs/multistage-pipeline.mdanddocs/kustomize-multistage.md- in the Manual/Non-Plugin Stages sectiondocs/pre-apply-validation-guide.md- in section 4 (References between resources)docs/resource-compatibility.mdanddocs/CRANE_COMPATIBILITY_MATRIX.md- inline in the relevant resourcesections and pre-migration checklist
No code changes
This is documentation only. The limitation itself is a known issue and is not planned to be fixed at this time.
Summary by CodeRabbit
NetworkPolicyto the documented set of supported namespace-scoped networking resources.ClusterRoleBindingservice account references orNetworkPolicynamespace selectors.