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
OWLS-90955 - Document expected file merge order for auxiliary images defined at various scopes (#2478)
* Document expected file merge order for auxiliary images at a particular scope and at different scopes.
Co-authored-by: Tom Barnes <tom.barnes@oracle.com>
Copy file name to clipboardExpand all lines: documentation/staging/content/userguide/managing-domains/model-in-image/model-files.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ For a description of model file macro references to secrets and environment vari
90
90
91
91
Refer to this section if you need to control the order in which your model files are loaded. The order is important when two or more model files refer to the same configuration, because the last model that's loaded has the highest precedence.
92
92
93
-
During domain home creation, model, and property files are first loaded from the `configuration.models.modelHome` directory within the image, which defaults to `/u01/wdt/models`, and are then loadedfrom the optional WDT ConfigMap, described in [Optional WDT model ConfigMap]({{< relref "/userguide/managing-domains/model-in-image/usage/_index.md#optional-wdt-model-configmap" >}}).
93
+
During domain home creation, model and property files are first loaded from the `configuration.models.modelHome` directory within the image, which defaults to `/u01/wdt/models`. After the `modelHome` files are all loaded, the domain home creation then loads files from the optional WDT ConfigMap, described in [Optional WDT model ConfigMap]({{< relref "/userguide/managing-domains/model-in-image/usage/_index.md#optional-wdt-model-configmap" >}}). If a `modelHome` file and ConfigMap file both have the same name, then both files are loaded.
94
94
95
95
The loading order within each of these locations is first determined using the convention `filename.##.yaml` and `filename.##.properties`, where `##` are digits that specify the desired order when sorted numerically. Additional details:
96
96
@@ -101,7 +101,11 @@ The loading order within each of these locations is first determined using the c
101
101
* File names that don't include `.##.` sort _before_ other files as if they implicitly have the lowest possible `.##.`
102
102
* If two files share the same number, the loading order is determined alphabetically as a tie-breaker.
103
103
104
-
If an image file and ConfigMap file both have the same name, then both files are loaded.
104
+
> Note: If `configuration.models.modelHome` files are supplied by combining multiple
For example, if you have these files in the model home directory `/u01/wdt/models`:
107
111
@@ -129,6 +133,8 @@ Property files (ending in `.properties`) use the same sorting algorithm, but the
129
133
130
134
### Model file macros
131
135
136
+
WDT models can have macros that reference secrets or environment variables.
137
+
132
138
#### Using secrets in model files
133
139
134
140
You can use WDT model `@@SECRET` macros to reference the WebLogic administrator `username` and `password` keys that are stored in a Kubernetes Secret and to optionally reference additional secrets. Here is the macro pattern for accessing these secrets:
0 commit comments