I generated some diff files using https://pkg.go.dev/github.com/rogpeppe/go-internal/diff and then tried to apply them with this library and got unexpected EOF.
This is the diff in question:
diff values.yaml values.yaml
--- values.yaml
+++ values.yaml
@@ -42,8 +42,8 @@
# cpu: 1000m
# memory: 1Gi
requests:
- cpu: 100m
- memory: 64Mi
+ cpu: 150m
+ memory: 120Mi
priorityClassName: ""
annotations:
prometheus.io/port: "8080"
@@ -233,7 +233,6 @@
# hosts:
# - flux-webhook.example.com
-
nodeSelector: {}
affinity: {}
tolerations: []
@@ -328,4 +327,3 @@
distro:
openshift: false
-