Skip to content

Commit 12d10a2

Browse files
authored
JIRA WDT-488 - Revised for updated WKO schema (#774)
1 parent 452ca17 commit 12d10a2

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

site/kubernetes.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here is an example command line for the Extract Domain Resource Tool:
1515

1616
For the simplest case, the Extract Domain Resource Tool will create a sparse domain file. This is what is generated when there is not a `kubernetes` section in the model, or that section is empty.
1717
```yaml
18-
apiVersion: weblogic.oracle/v6
18+
apiVersion: weblogic.oracle/v8
1919
kind: Domain
2020
metadata:
2121
name: DemoDomain
@@ -25,6 +25,9 @@ spec:
2525
imagePullSecrets:
2626
- name: '--FIX ME--'
2727
webLogicCredentialsSecret: '--FIX ME--'
28+
configuration:
29+
model:
30+
domainType: WLS
2831
clusters:
2932
- clusterName: mycluster
3033
replicas: 2
@@ -48,6 +51,13 @@ kubernetes:
4851
WEBLOGIC_IMAGE_PULL_SECRET_NAME:
4952
webLogicCredentialsSecret:
5053
name: '@@PROP:mySecret@@'
54+
configuration:
55+
model:
56+
domainType: 'WLS'
57+
secrets: [
58+
'secret1',
59+
'secret2'
60+
]
5161
serverPod:
5262
env:
5363
USER_MEM_ARGS:
@@ -59,6 +69,8 @@ This example uses `@@PROP:mySecret@@` to pull the value for `webLogicCredentials
5969

6070
For this example, the resulting domain resource file would contain:
6171
```yaml
72+
apiVersion: weblogic.oracle/v8
73+
kind: Domain
6274
metadata:
6375
name: myName
6476
namespace: myNamespace
@@ -75,13 +87,17 @@ spec:
7587
- name: JAVA_OPTIONS
7688
value: '-Dmydir=/home/me'
7789
domainHome: /u01/mine/domain
90+
configuration:
91+
model:
92+
domainType: WLS
93+
secrets:
94+
- secret1
95+
- secret2
7896
clusters:
7997
- clusterName: mycluster
8098
replicas: 2
8199
- clusterName: mycluster3
82100
replicas: 4
83-
apiVersion: weblogic.oracle/v6
84-
kind: Domain
85101
```
86102

87103
The syntax of the `spec/serverPod/env` and other list sections in the WDT model are different from the syntax in the target file. The WDT tools do not recognize the hyphenated list syntax, so these elements are specified in a similar manner to other model lists.

0 commit comments

Comments
 (0)