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
Each of the fields in this example is optional, and can be customized.
@@ -68,22 +69,29 @@ This field specifies how credentials in the model should be handled. There are t
68
69
69
70
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
70
71
72
+
#### `wls_credentials_name`
73
+
74
+
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](../model.md#model-tokens).
75
+
71
76
#### `additional_output`
72
77
73
-
This field can be used to create additional output for use in the target environment. The key `vz` is currently the only valid value for this field. It indicates that the tool should create additional Kubernetes resource files for use with the Verrazzano product.
78
+
This field can be used to create additional output for use in the target environment. The value is a comma-separated list of template files in the `$WLSDEPLOY_HOME/lib/target/<target-name>` directory. These templates are populated with information derived from the model, and written to a file with the same name in the specified output directory.
79
+
80
+
Template files can be customized for specific environments. The recommended method is to copy the original template to a custom configuration directory as described above, such as `$WDT_CUSTOM_CONFIG/target/<target-name>/model.yaml`. The copied file can then be edited as needed, while maintaining the original for reference.
74
81
75
82
### Pre-configured Target Environments
76
83
77
84
These target environment configurations are included in the WebLogic Deploy Tooling installation.
78
85
79
-
#### The Oracle Weblogic Server Kubernetes Operator Target
86
+
#### The Oracle WebLogic Server Kubernetes Operator Target
80
87
81
88
This target environment can be applied by providing the command-line argument `-target wko`. It will provide this additional processing:
82
89
83
90
- The `wko_operator_filter.py` filter will be applied to remove model elements that are not compatible with the Kubernetes environment
84
91
- Variables will be injected into the model for port, host, and URL attributes
85
92
-`lax` validation will be applied for the resulting model
86
93
- Credentials in the model will be replaced with references to Kubernetes secrets, and a script to create those secrets will be produced
94
+
- An additional Kubernetes resource file, `model.yaml`, will be produced, with cluster and naming information derived from the model
87
95
88
96
#### The Verrazzano Target
89
97
This target environment can be applied by providing the command-line argument `-target vz`. It will provide this additional processing:
Copy file name to clipboardExpand all lines: site/prepare.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,26 +6,28 @@ The Prepare Model Tool prepares WDT model files for deploying to specific target
6
6
- Replacing credential and attribute values with WDT macros
7
7
- Generating a UNIX shell script that will help with creating any required Kubernetes secrets
8
8
- Generating a variable properties file to customize attribute values
9
+
- Generating any additional configuration files to configure the target environment
9
10
- Updating the model file(s)
10
11
11
12
12
13
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.
13
14
14
-
For example, to prepare model files for use with Oracle Weblogic Server Kubernetes Operator, run the tool with `-target k8s` as follows:
15
+
For example, to prepare model files for use with Oracle Weblogic Server Kubernetes Operator, run the tool with `-target wko` as follows:
0 commit comments