You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spec/v1beta1/imageupdateautomations.md
+123-4Lines changed: 123 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -398,6 +398,7 @@ spec:
398
398
name: fluxcdbot
399
399
```
400
400
There are over 70 available functions. Some of them are defined by the [Go template language](https://pkg.go.dev/text/template) itself. Most of the others are part of the [Sprig template library](http://masterminds.github.io/sprig/).
401
+
401
402
### Push
402
403
403
404
The optional `push` field defines how commits are pushed to the origin.
@@ -408,17 +409,29 @@ type PushSpec struct {
408
409
// Branch specifies that commits should be pushed to the branch
409
410
// named. The branch is created using `.spec.checkout.branch` as the
410
411
// starting point, if it doesn't already exist.
411
-
// +required
412
-
Branch string `json:"branch"`
412
+
// +optional
413
+
Branch string `json:"branch,omitempty"`
414
+
415
+
// Refspec specifies the Git Refspec to use for a push operation.
416
+
// If both Branch and Refspec are provided, then the commit is pushed
417
+
// to the branch and also using the specified refspec.
This instructs the image-automation-controller to clone the repository using the
533
+
`main`branch but execute its update logic and commit with the provided message
534
+
template on the `auto` branch. Commits are then pushed to the `auto` branch,
535
+
followed by pushing the `HEAD` of the `auto` branch to the `HEAD` of the remote
536
+
`main`branch. The message template ensures the inclusion of a [Change-Id](https://gerrit-review.googlesource.com/Documentation/concept-changes.html#change-id)
0 commit comments