Skip to content

Commit

Permalink
docs(resource_actions): specify when mergeBuiltinActions was introduc…
Browse files Browse the repository at this point in the history
…ed (argoproj#20917)

The feature was made available in 2.13.0 onwards.

Signed-off-by: Nicholas Morey <nicholas@morey.tech>
Signed-off-by: Adrian Aneci <aneci@adobe.com>
  • Loading branch information
morey-tech authored and adriananeci committed Dec 4, 2024
1 parent 6f38c45 commit c40ab91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/operator-manual/resource_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The `discovery.lua` script must return a table where the key name represents the

Each action name must be represented in the list of `definitions` with an accompanying `action.lua` script to control the resource modifications. The `obj` is a global variable which contains the resource. Each action script returns an optionally modified version of the resource. In this example, we are simply setting `.spec.suspend` to either `true` or `false`.

By default, defining a resource action customization will override any built-in action for this resource kind. If you want to retain the built-in actions, you can set the `mergeBuiltinActions` key to `true`. Your custom actions will have precedence over the built-in actions.
By default, defining a resource action customization will override any built-in action for this resource kind. As of Argo CD version 2.13.0, if you want to retain the built-in actions, you can set the `mergeBuiltinActions` key to `true`. Your custom actions will have precedence over the built-in actions.
```yaml
resource.customizations.actions.argoproj.io_Rollout: |
mergeBuiltinActions: true
Expand Down Expand Up @@ -202,4 +202,4 @@ resource.customizations.actions.ConfigMap: |
result[1] = impactedResource1
result[2] = impactedResource2
return result
```
```

0 comments on commit c40ab91

Please sign in to comment.