Skip to content

Commit c9aeb30

Browse files
Merge pull request #1056 from oracle/prepare-model-doc-updates
updating the prepare model docs for recent changes
2 parents ec21285 + e85d912 commit c9aeb30

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

documentation/2.0/content/userguide/target_env.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Here is an example of a target environment file:
5050
"validation_method" : "lax",
5151
"credentials_method" : "secrets",
5252
"credentials_output_method" : "script",
53+
"exclude_domain_bin_contents": true,
5354
"wls_credentials_name" : "__weblogic-credentials__",
5455
"additional_secrets": "runtime-encryption-secret",
5556
"additional_output" : "vz-application.yaml"
@@ -79,6 +80,10 @@ This field specifies how credentials in the model should be handled. There are t
7980

8081
In both these cases, the script to create the Kubernetes secrets is written to `<output-directory>/create_k8s_secrets.sh`. You will need to update this script with credential values before executing
8182

83+
#### `exclude_domain_bin_contents`
84+
85+
This field specifies how the domain's bin directory contents should be handled. If set to `true`, discovery will skip over the domain's bin directory resulting in a model and archive file without any references to any scripts that might normally be collected (e.g., `setUserOverrides.sh`).
86+
8287
#### `wls_credentials_name`
8388

8489
This field specifies a name for use with the WDT_MODEL_SECRETS_NAME_DIR_PAIRS environment variable to identify administration credential Secrets for the domain. This is useful when those Secrets are stored in a directory that does not follow the `<directory>/<name>/<key>` convention. For more information about using the WDT_MODEL_SECRETS_NAME_DIR_PAIRS environment variable, see [Model tokens]({{< relref "/concepts/model#model-tokens" >}}).

documentation/2.0/content/userguide/tools/prepare.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ description: "Prepares model files for deploying to WebLogic Kubernetes Operator
99

1010
The Prepare Model Tool prepares WDT model files for deploying to specific target environments. These customizations include:
1111
- Removing sections from the model that are not compatible with the environment
12+
- Removing files from the archive that are not compatible with the environment
13+
- Updating model file(s) to set parameters required by the environment
1214
- Replacing credential and attribute values with WDT macros
1315
- Generating a UNIX shell script that will help with creating any required Kubernetes secrets
1416
- Generating a variable properties file to customize attribute values
1517
- Generating any additional configuration files to configure the target environment
16-
- Updating the model file(s)
1718

1819

1920
To use the Prepare Model Tool, simply run the `prepareModel` shell script with the correct arguments. To see the list of valid arguments, simply run the shell script with the `-help` option (or with no arguments) for usage information.
@@ -25,11 +26,11 @@ $ $WLSDEPLOY_HOME/bin/prepareModel.sh -oracle_home /u01/wls12213 -model_file mod
2526

2627
In the output directory, you will find:
2728
```
28-
model.yaml
2929
model1.yaml
3030
model2.yaml
31-
create_k8s_secrets.sh
3231
wko_variable.properties
32+
create_k8s_secrets.sh
33+
wko-domain.yaml
3334
```
3435

3536

0 commit comments

Comments
 (0)