fix: Correct ConfigMap field ordering to resolve ArgoCD sync failure (#11) #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔧 Fix: ConfigMap Field Ordering for ArgoCD Sync
Resolves #11
Problem Statement
The ArgoCD application
2-broken-appsis failing to sync with error:Root Cause
Confidence Level: HIGH (95%)
The
rabbitmq-enabled-pluginsConfigMap inAct-3/argocd/apps/broken-aks-store-all-in-one.yamlhas incorrect field ordering:Current (INVALID):
Fixed (VALID):
Why This Matters
Kubernetes API conventions require fields in this order:
apiVersionkindmetadataspec/dataArgoCD's validation engine enforces this structure during sync operations. When the order is violated, the sync fails with "synchronization tasks are not valid" errors before any resources are applied to the cluster.
Changes Made
Testing & Validation
Local validation:
Post-merge validation:
Expected Outcome
HealthySyncedAdditional Context
Other fixes already in main:
apiVersion: apps/v→apiVersion: apps/v1(line 178)store-dmin→store-admin(line 475)Note on PR #34:
PR #34 addresses a different issue (missing ai-service). While valid for runtime functionality, it does NOT fix the current sync failure. The ConfigMap field ordering issue must be resolved first to allow ANY resources to sync.
Safety & Impact
defaultnamespaceRollback Plan
Simple revert:
Generated by: Cluster Doctor Agent v1.0
Analysis Mode: Passive (manifest-based)
Commit: 1429b5a