Skip to content

Commit ba359b5

Browse files
Tom Barnesrjeberhard
authored andcommitted
Custom overrides doc update.
1 parent 31eb6f3 commit ba359b5

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

site/config-overrides.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ You can use overrides to customize domains as they are moved from QA to producti
3131
* Override templates (also known as situational configuration templates), with names and syntax as described in [Override template names and syntax](#override-template-names-and-syntax).
3232
* A file named `version.txt` that contains the string `2.0`.
3333
* Set your domain resource `configOverrides` to the name of this configuration map.
34-
* Create Kubernetes secrets that contain template macro values.
35-
* Set your domain `configOverrideSecrets` to reference the aforementioned secrets.
34+
* If templates leverage 'secret macros':
35+
* Create Kubernetes secrets that contain template macro values.
36+
* Set your domain `configOverrideSecrets` to reference the aforementioned secrets.
3637
* Stop all running WebLogic Server pods in your domain. (See [Server Lifecycle](server-lifecycle.md).)
3738
* Start or restart your domain. (See [Server Lifecycle](server-lifecycle.md).)
39+
* Verify your overrides are taking effect. (See [Debugging](#debugging)).
3840

3941
For a detailed walk-through of these steps, see the [Step-by-step guide](#step-by-step-guide).
4042

@@ -144,19 +146,18 @@ _`jdbc-MODULENAME.xml`_
144146
_`jms-MODULENAME.xml`_
145147
```
146148
<jms:weblogic-jms xmlns:jms="http://xmlns.oracle.com/weblogic/weblogic-jms"
147-
xmlns:f="http://xmlns.oracle.com/weblogic/weblogic-jms-fragment"
148-
xmlns:s="http://xmlns.oracle.com/weblogic/situational-config" >
149+
xmlns:f="http://xmlns.oracle.com/weblogic/weblogic-jms-fragment"
150+
xmlns:s="http://xmlns.oracle.com/weblogic/situational-config" >
149151
...
150152
</jms:weblogic-jms>
151153
```
152154

153155
_`wldf-MODULENAME.xml`_
154156
```
155157
<?xml version='1.0' encoding='UTF-8'?>
156-
<wldf:wldf-resource
157-
xmlns:wldf="http://xmlns.oracle.com/weblogic/weblogic-diagnostics"
158-
xmlns:f="http://xmlns.oracle.com/weblogic/weblogic-diagnostics-fragment"
159-
xmlns:s="http://xmlns.oracle.com/weblogic/situational-config" >
158+
<wldf:wldf-resource xmlns:wldf="http://xmlns.oracle.com/weblogic/weblogic-diagnostics"
159+
xmlns:f="http://xmlns.oracle.com/weblogic/weblogic-diagnostics-fragment"
160+
xmlns:s="http://xmlns.oracle.com/weblogic/situational-config" >
160161
...
161162
</wldf:wldf-resource>
162163
```
@@ -271,7 +272,7 @@ The following `jdbc-testDS.xml` override template demonstrates setting the URL,
271272
kubectl -n MYNAMESPACE create cm MYCMNAME --from-file ./mydir
272273
kubectl -n MYNAMESPACE label cm MYCMNAME weblogic.domainUID=DOMAIN_UID
273274
```
274-
* Create any Kubernetes secrets referenced by a template macro.
275+
* Create any Kubernetes secrets referenced by a template 'secret macro'.
275276
* Secrets can have multiple keys (files) that can hold either cleartext or base64 values. We recommend that you use base64 values for passwords via `Opaque` type secrets in their `data` field, so that they can't be easily read at a casual glance. For more information, see https://kubernetes.io/docs/concepts/configuration/secret/.
276277
* Secrets must be in the same Kubernetes namespace as the domain.
277278
* If a secret is going to be used by a single `DOMAIN_UID`, we recommend adding the `weblogic.domainUID=<mydomainuid>` label to help track the resource.
@@ -289,10 +290,6 @@ The following `jdbc-testDS.xml` override template demonstrates setting the URL,
289290
* To stop all running WebLogic Server pods in your domain, and then start/restart the domain:
290291
* Set your domain resource serverRestartPolicy to NEVER, wait, and restore back to ALWAYS or IF_NEEDED (see [Server Lifecycle](server-lifecycle.md).)
291292
* Or delete your domain resource, wait, and then reapply it.
292-
* Verify overrides take effect after any change to overrides or to your domain home configuration.
293-
* Stop all running WebLogic Server pods in your domain, and then start/restart the domain.
294-
* Set your domain resource serverRestartPolicy to NEVER, wait, and restore back to ALWAYS or IF_NEEDED (see [Server Lifecycle](server-lifecycle.md).)
295-
* Or delete your domain resource, wait, and then reapply it.
296293
* See [Debugging](#debugging) for ways to check if the situational configuration is taking effect or if there are errors.
297294
298295
Example domain resource yaml:
@@ -335,7 +332,7 @@ Incorrectly formatted override files may be accepted without warnings or errors,
335332
* This line indicates a situational configuration file has been loaded.
336333
* If the search yields Warning or Error lines, then the format of the custom situational configuration template is incorrect, and the Warning or Error text should describe the problem.
337334
* Note: The following exception may show up in your server logs when overriding JDBC modules. It is not expected to affect runtime behavior, and can be ignored (a fix is pending for them):
338-
```
335+
* ```
339336
java.lang.NullPointerException
340337
at weblogic.management.provider.internal.situationalconfig.SituationalConfigManag
341338
erImpl.registerListener(SituationalConfigManagerImpl.java:227)

0 commit comments

Comments
 (0)