Skip to content

Commit

Permalink
add missing yaml tag to resourceTemplate reference
Browse files Browse the repository at this point in the history
  • Loading branch information
gtully committed Jan 11, 2024
1 parent 196e1a2 commit 24474f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/help/operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ spec:
Occasionally it is necessary to make customisations to the spec of a managed resource. The `resourceTemplate. patch` attribute can be used to apply such customisations. The `patch` is appled by the operator using a [strategic merge](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/#notes-on-the-strategic-merge-patch) before submitting to the api server.
In the following example, a custom security context is added to the internal broker container of the managed StatefulSet by patching just the required attribute. Note: `name` is the mergeKey, it must match that of the managed container with the CR.Name prefix:

```yaml
apiVersion: broker.amq.io/v1beta1
kind: ActiveMQArtemis
metadata:
Expand All @@ -779,6 +780,7 @@ spec:
- name: "broker-container"
securityContext:
runAsNonRoot: true
```

### Setting Environment Variables

Expand Down

0 comments on commit 24474f3

Please sign in to comment.