दो YAML files को एक में merge करें।
दो YAML files को एक में merge करें।
इस विषय के बारे में सामान्य प्रश्न और उत्तर।
दो या अधिक YAML documents को एक में merge करता है, सभी sources से mappings combine करता है, configurable conflict और array strategies के साथ।
हाँ — एक बार में 5 inputs तक merge किए जा सकते हैं। ये left-to-right combine होते हैं, इसलिए conflicting keys पर rightmost input का final say होता है (जब तक आप A → B पर switch ना करें)।
By default बाद वाले document का value प्राथमिक होता है (B → A) और arrays concatenate होते हैं। आप A → B पर switch कर सकते हैं ताकि पहले document का value रहे, या arrays के लिए Replace strategy चुन सकते हैं ताकि बाद वाला पूरी तरह से overwrite करे।
हाँ — nested mappings दोनों conflict strategies में recursive तरीके से merge होते हैं, और arrays हर depth पर चुनी गई array strategy (Concat या Replace) का पालन करते हैं।
Common use cases में Kubernetes manifests merge करना, environments के बीच Helm chart values combine करना (base + dev/staging/prod overrides), और multi-file CI/CD configs (GitHub Actions, GitLab CI) को single document में consolidate करना शामिल है।
नहीं, YAML merging is performed entirely in your browser. Both files are merged locally with JavaScript — nothing is uploaded.