Skip to content

Commit 165ab92

Browse files
committed
resource -> object
1 parent f58df33 commit 165ab92

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

modules/concepts/pages/overrides.adoc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,17 @@ They will *not* be applied to:
155155
== Object overrides
156156

157157
Sometimes you need to override Kubernetes objects that are not covered by e.g. `podOverrides` or `configOverrides` like ServiceAccounts or the StatefulSet/Deployment/DaemonSet.
158-
Object overrides let you modify any Kubernetes resource that the operator creates as part of its reconciliation loop, which essentially includes all objects associated with a given stacklet.
158+
Object overrides let you modify any Kubernetes object that the operator creates as part of its reconciliation loop, which essentially includes all objects associated with a given stacklet.
159159

160160
On every Stackable CRD that is reconciled into a set of Kubernetes objects we provide the field `.spec.objectOverrides`.
161-
This field accepts a list of arbitrary YAML objects, each of which must be a valid Kubernetes resource.
161+
This field accepts a list of arbitrary YAML objects, each of which must be a valid Kubernetes object.
162162

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.
163+
For every object it creates, the operator processes the list of overrides from top to bottom.
164+
It first checks if an override matches the object being created by comparing the `apiVersion`, `kind`, `name` and if applicable `namespace` (cluster-scoped objects 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 object.
166166

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.
167+
As a result, you can only modify object created by the operator.
168+
This mechanism does not work to deploy any additional arbitrary Kubernetes object.
168169

169170
[source,yaml]
170171
----

0 commit comments

Comments
 (0)