Commit b774231
Complete jq handling analysis - all topics resolved
Analyzed all metadata transformations from current backup/restore playbooks
and verified they are handled in the webhook design.
Topics Reviewed:
1. ✅ Secret type filtering (dockercfg, service-account-token)
- Non-issue: Have ownerReferences, webhook won't label them
2. ✅ Service certificate secrets (service-cert label)
- Non-issue: Have ownerReferences, webhook won't label them
- cert-manager reissues fresh certs using restored CAs
3. ✅ Database password secrets exception
- Already documented: mariadb-operator labels these when creating
- Restored in order 10 before MariaDBAccount in order 20
4. ✅ Apply strategy (server-side vs client-side)
- Non-issue: OADP uses Kubernetes API directly (not kubectl apply)
- last-applied-configuration removed via resourceModifiers
- Will verify during testing
All Current JQ Handling:
- ownerReferences removal → OADP resourceModifiers ✅
- last-applied-configuration removal → OADP resourceModifiers ✅
- Metadata cleanup (uid, resourceVersion, etc.) → Kubernetes auto-handles ✅
- Status removal → Velero strips by default ✅
- ownerReferences filtering → Webhook logic ✅
- Secret type filtering → ownerReferences check ✅
- Staged deployment annotation → OADP resourceModifiers ✅
Conclusion: Webhook design correctly handles all transformations currently
done via jq in the Ansible playbooks. No additional changes needed.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 5ed0fab commit b774231
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
0 commit comments