Skip to content

Commit 842ea58

Browse files
Apply creates before updates (#658)
I'm not sure why the ordering was the other way around tbh, but this allows you to create then overlay a file in one pra
1 parent 74acec6 commit 842ea58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/pr/apply.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package pr
22

33
func Apply(template *PrTemplate) error {
4-
if err := applyUpdates(template.Spec.Updates, template.Context); err != nil {
4+
if err := applyCreates(template.Spec.Creates, template.Context); err != nil {
55
return err
66
}
77

8-
if err := applyCreates(template.Spec.Creates, template.Context); err != nil {
8+
if err := applyUpdates(template.Spec.Updates, template.Context); err != nil {
99
return err
1010
}
1111

0 commit comments

Comments
 (0)