Skip to content

Commit 8c213a3

Browse files
Update modules/concepts/pages/overrides.adoc
Co-authored-by: Malte Sander <malte.sander.it@gmail.com>
1 parent 2e8ac31 commit 8c213a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/concepts/pages/overrides.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ Object overrides allow you to override any Kubernetes object the operator create
160160
On every Stackable CRD that get's reconciled into a set of Kubernetes objects we offer a field `.spec.objectOverrides`.
161161
You can set it to a list of arbitrary YAML objects, which need to be valid Kubernetes objects.
162162

163-
For every object it creates, the operator will walk the list of overrides from top to bottom.
164-
It will than first check if the override matches the object being created using apiVersion, kind, name and namespace (if set - doesn't need to be the case for cluster scoped objects).
165-
If the override matches, it will be merged in the same way Pod overrides are merged, using the merge algorithm described in the {k8s-openapi-deepmerge}[k8s-openapi docs{external-link-icon}^], which basically tries to mimic the way Kubernetes merges patches onto objects.
163+
For every resource it creates, the operator processes the list of overrides from top to bottom.
164+
It first checks if an override matches the resource being created by comparing the `apiVersion`, `kind`, `name` and if applicable `namespace` (cluster-scoped resources may omit the namespace).
165+
If an override matches, it is merged using the same mechanism as Pod overrides, using the merge algorithm described in the {k8s-openapi-deepmerge}[k8s-openapi docs{external-link-icon}^], which closely mimics the way Kubernetes applies patches to resources.
166166

167-
A consequence of this is, that you can only modify objects the operator creates, and not deploy any additional arbitrary objects.
167+
As a result, you can only modify resources created by the operator. This mechanism does not work to deploy any additional arbitrary Kubernetes resources.
168168

169169
[source,yaml]
170170
----

0 commit comments

Comments
 (0)