This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
Patcher.Apply
should respect the type of the given file
#11
Labels
enhancement
New feature or request
Currently
serializerEncode
in the patcher is hard-configured to handle patching the manifests as JSON, e.g. https://github.com/weaveworks/libgitops/blob/master/pkg/util/patch/patch.go#L94. This is used by bothApply
andApplyOnFile
.There should either be a way to configure these in the patcher, or file type detection could be performed to support YAML output in the case of YAML input.
The text was updated successfully, but these errors were encountered: